[clang] [compiler-rt] [profile] Add `%b` `LLVM_PROFILE_FILE` option for binary ID (PR #123963)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 6 00:37:14 PST 2025


================
@@ -2916,6 +2917,12 @@ instrumentation:
 
      $ LLVM_PROFILE_FILE="code-%m.profraw" ./code
 
+   Although rare, binary signatures used by the ``%m`` specifier can have
+   collisions. In this case, the ``%b`` specifier, which expands to the binary
+   ID (build ID), can be added. To use it, the program should be compiled with
----------------
petrhosek wrote:

```suggestion
   ID (build ID in ELF and COFF), can be added. To use it, the program should be compiled with
```

https://github.com/llvm/llvm-project/pull/123963


More information about the llvm-commits mailing list