HomeFreeBSD

Use a deterministic hash for USDT symbol names.

Description

Use a deterministic hash for USDT symbol names.

Previously libdtrace used ftok(3), which hashes the inode number of the
input object file. To increase reproducibility of builds that embed
USDT probes, include a hash of the object file path in the symbol name
instead.

Reported and tested by: bdrewery
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

Details

Provenance
markjAuthored on
Parents
rS356476: libjail: Handle an error from reallocarray() when trimming the buffer.
Branches
Unknown
Tags
Unknown