aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2022-06-24 23:13:09 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-06-28 14:45:45 +0000
commit49c692b7dfc9b6c06a1dc11359a8780575b16d4a (patch)
treed4312d6d454aca7a01d1469a314d8c5cdda57fd7 /scripts/clang-tools/gen_compile_commands.py
parentperf offcpu: Fix build failure on old kernels (diff)
downloadkernel-49c692b7dfc9b6c06a1dc11359a8780575b16d4a.tar.gz
kernel-49c692b7dfc9b6c06a1dc11359a8780575b16d4a.zip
perf offcpu: Accept allowed sample types only
As offcpu-time event is synthesized at the end, it could not get the all the sample info. Define OFFCPU_SAMPLE_TYPES for allowed ones and mask out others in evsel__config() to prevent parse errors. Because perf sample parsing assumes a specific ordering with the sample types, setting unsupported one would make it fail to read data like perf record -d/--data. Fixes: edc41a1099c2d08c ("perf record: Enable off-cpu analysis with BPF") Signed-off-by: Namhyung Kim <[email protected]> Cc: Blake Jones <[email protected]> Cc: Hao Luo <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Milian Wolff <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Song Liu <[email protected]> Cc: [email protected] Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions