linux/tools/perf
Ian Rogers d9f2ecbc5e perf dso: Move build_id to dso_id
The dso_id previously contained the major, minor, inode and inode
generation information from a mmap2 event - the inode generation would
be zero when reading from /proc/pid/maps. The build_id was in the
dso. With build ID mmap2 events these fields wouldn't be initialized
which would largely mean the special empty case where any dso would
match for equality. This isn't desirable as if a dso is replaced we
want the comparison to yield a difference.

To support detecting the difference between DSOs based on build_id,
move the build_id out of the DSO and into the dso_id. The dso_id is
also stored in the DSO so nothing is lost. Capture in the dso_id what
parts have been initialized and rename dso_id__inject to
dso_id__improve_id so that it is clear the dso_id is being improved
upon with additional information. With the build_id in the dso_id, use
memcmp to compare for equality.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250724163302.596743-7-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2025-07-25 10:37:56 -07:00
..
Documentation perf parse-events: Allow the cpu term to be a PMU or CPU range 2025-07-24 13:41:35 -07:00
arch perf parse-events: Fix missing slots for Intel topdown metric events 2025-07-24 13:41:35 -07:00
bench perf build-id: Ensure struct build_id is empty before use 2025-07-25 10:37:55 -07:00
check-header_ignore_hunks/lib perf tools: update expected diff for lib/list_sort.c 2024-11-05 17:12:33 -08:00
dlfilters perf tools: Simplify evsel__add_modifier() 2024-10-22 09:52:11 -07:00
include/perf perf dso: Move build_id to dso_id 2025-07-25 10:37:56 -07:00
jvmti perf: Fix libjvmti.c sign compare error 2025-06-09 22:12:08 -07:00
pmu-events perf metricgroups: Add NO_THRESHOLD_AND_NMI constraint 2025-07-24 13:41:36 -07:00
python perf python: Add counting.py as example for counting perf events 2025-05-22 22:24:58 -03:00
scripts perf flamegraph: Fix minor pylint/type hint issues 2025-07-16 10:43:27 -07:00
tests perf dso: Move build_id to dso_id 2025-07-25 10:37:56 -07:00
trace perf build: Specify shellcheck should use bash 2025-06-30 09:43:06 -07:00
ui perf ui scripts: Switch FILENAME_MAX to NAME_MAX 2025-07-22 18:17:53 -07:00
util perf dso: Move build_id to dso_id 2025-07-25 10:37:56 -07:00
.gitignore perf tools: Add the empty-pmu-events build to .gitignore 2024-11-07 10:51:56 -08:00
Build perf build: Specify shellcheck should use bash 2025-06-30 09:43:06 -07:00
CREDITS
MANIFEST perf tools: Fix arm64 source package build 2025-05-13 17:26:35 -03:00
Makefile
Makefile.config tools: Remove libcrypto dependency 2025-06-26 10:51:41 -07:00
Makefile.perf perf build: Always disable stack protection for BPF skeleton objects 2025-07-20 20:49:35 -07:00
builtin-annotate.c perf annotate: Add --code-with-type option. 2025-03-13 00:19:51 -07:00
builtin-bench.c
builtin-buildid-cache.c perf build-id: Ensure struct build_id is empty before use 2025-07-25 10:37:55 -07:00
builtin-buildid-list.c perf dso: Move build_id to dso_id 2025-07-25 10:37:56 -07:00
builtin-c2c.c perf hist: Set levels in output_field_add() 2025-04-25 12:31:54 -03:00
builtin-check.c tools: Remove libcrypto dependency 2025-06-26 10:51:41 -07:00
builtin-config.c perf config: Add a function to set one variable in .perfconfig 2025-01-14 15:05:56 -03:00
builtin-daemon.c perf daemon: Fix the build on more 32-bit architectures 2024-08-19 21:44:30 -03:00
builtin-data.c
builtin-diff.c perf stream: Use evsel rather than evsel->idx 2024-12-23 13:53:08 -03:00
builtin-evlist.c perf evlist: Print hint for group 2024-09-11 13:08:45 -03:00
builtin-ftrace.c perf: ftrace: add graph tracer options args/retval/retval-hex/retaddr 2025-07-22 17:47:22 -07:00
builtin-help.c perf tools: Remove dependency on libaudit 2025-01-10 10:59:42 -03:00
builtin-inject.c perf dso: Move build_id to dso_id 2025-07-25 10:37:56 -07:00
builtin-kallsyms.c
builtin-kmem.c perf evsel: Add/use accessor for tp_format 2024-12-09 17:52:42 -03:00
builtin-kvm.c perf target: Remove uid from target 2025-06-09 11:18:18 -07:00
builtin-kwork.c perf kwork: Make perf_kwork_add_work a callback 2024-12-18 16:24:33 -03:00
builtin-list.c perf list: Display the PMU name associated with a perf metric in JSON 2025-05-13 17:06:14 -03:00
builtin-lock.c perf lock contention: Reject more than 10ms delays for safety 2025-05-31 08:45:24 -03:00
builtin-mem.c perf mem: Don't leak mem event names 2025-03-10 14:26:45 -07:00
builtin-probe.c perf build: Rename HAVE_DWARF_SUPPORT to HAVE_LIBDW_SUPPORT 2024-10-18 10:17:40 -07:00
builtin-record.c perf record: collect BPF metadata from new programs 2025-06-20 14:48:49 -07:00
builtin-report.c perf dso: Move build_id to dso_id 2025-07-25 10:37:56 -07:00
builtin-sched.c perf sched timehist: decode process names of processes in zombie state 2025-07-17 17:05:07 -07:00
builtin-script.c perf stat: Move metric list from config to evlist 2025-07-11 12:36:40 -07:00
builtin-stat.c perf stat: Don't size aggregation ids from user_requested_cpus 2025-07-24 13:41:34 -07:00
builtin-timechart.c perf timechart: Remove redundant variable assignment 2024-11-13 16:27:35 -03:00
builtin-top.c perf top: populate PMU capabilities data in perf_env 2025-06-26 10:51:40 -07:00
builtin-trace.c perf trace: Split BPF skel code to util/bpf_trace_augment.c 2025-06-26 10:31:05 -07:00
builtin-version.c perf check: Share the feature status printing routine with 'perf version' 2025-04-10 10:44:04 -03:00
builtin.h perf check: Allow showing a tip for opt-in features not built into perf 2025-04-10 10:44:42 -03:00
check-headers.sh perf tools: Remove excess variable declarations 2025-06-24 11:06:02 -07:00
command-list.txt
design.txt
perf-archive.sh tools/perf: Add --exclude-buildids option to perf archive command 2025-06-26 15:40:19 -07:00
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c perf tools: Remove dependency on libaudit 2025-01-10 10:59:42 -03:00
perf.h perf: Increase MAX_NR_CPUS to 4096 2024-12-09 17:52:41 -03:00