summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2025-10-25 13:28:34 -0700
committerNamhyung Kim <namhyung@kernel.org>2025-10-25 16:44:21 -0700
commitbe806f06adfb2ec587b3b1076d1812b1f1032ac2 (patch)
tree4d84a89fb797f9ab7a8b89480f652a3891ac0a34 /tools/perf/scripts/python/flamegraph.py
parent3e98f0203e10bc9d379852faf424f769ef5049a6 (diff)
downloadlinux-be806f06adfb2ec587b3b1076d1812b1f1032ac2.tar.gz
linux-be806f06adfb2ec587b3b1076d1812b1f1032ac2.zip
perf stat: Add/fix bperf cgroup max events workarounds
Commit b8308511f6e0 bumped the max events to 1024 but this results in BPF verifier issues if the number of command line events is too large. Workaround this by: 1) moving the constants to a header file to share between BPF and perf C code, 2) testing that the maximum number of events doesn't cause BPF verifier issues in debug builds, 3) lower the max events from 1024 to 128, 4) in perf stat, if there are more events than the BPF counters can support then disable BPF counter usage. The rodata setup is factored into its own function to avoid duplicating it in the testing code. Signed-off-by: Ian Rogers <irogers@google.com> Fixes: b8308511f6e0 ("perf stat bperf cgroup: Increase MAX_EVENTS from 32 to 1024") Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions