aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2023-03-14 23:42:29 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-03-15 13:34:33 +0000
commit56ec9457a4a20c5e07ad94bfb6e23077d54cb28e (patch)
treecafe1144949eb53e95bfbbfc4e2ce9fb87e04c1f /tools/perf/util/python.c
parentperf bpf filter: Introduce basic BPF filter expression (diff)
downloadkernel-56ec9457a4a20c5e07ad94bfb6e23077d54cb28e.tar.gz
kernel-56ec9457a4a20c5e07ad94bfb6e23077d54cb28e.zip
perf bpf filter: Implement event sample filtering
The BPF program will be attached to a perf_event and be triggered when it overflows. It'd iterate the filters map and compare the sample value according to the expression. If any of them fails, the sample would be dropped. Also it needs to have the corresponding sample data for the expression so it compares data->sample_flags with the given value. To access the sample data, it uses the bpf_cast_to_kern_ctx() kfunc which was added in v6.2 kernel. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Hao Luo <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Kan Liang <[email protected]> Cc: Leo Yan <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ravi Bangoria <[email protected]> Cc: Song Liu <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions