aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2025-07-10 23:51:24 +0000
committerNamhyung Kim <[email protected]>2025-07-11 19:36:40 +0000
commit6183afcba9c1c810656ddb36170106aaf3cf778c (patch)
tree46956e7999b29cd82c16edc9acf7b3f8d3b40076 /tools/perf/scripts/python/flamegraph.py
parentperf python: Fix thread check in pyrf_evsel__read (diff)
downloadkernel-6183afcba9c1c810656ddb36170106aaf3cf778c.tar.gz
kernel-6183afcba9c1c810656ddb36170106aaf3cf778c.zip
perf python: Correct pyrf_evsel__read for tool PMUs
Tool PMUs assume that stat's process_counter_values is being used to read the counters. Specifically they hold onto old values in evsel->prev_raw_counts and give the cumulative count based off of this value. Update pyrf_evsel__read to allocate counts and prev_raw_counts, use evsel__read_counter rather than perf_evsel__read so tool PMUs are read from not just perf_event_open events, make the returned pyrf_counts_values contain the delta value rather than the cumulative value. Fixes: 739621f65702 ("perf python: Add evsel read method") Signed-off-by: Ian Rogers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions