aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-05-24 20:52:27 +0000
committerNamhyung Kim <[email protected]>2024-05-30 17:05:57 +0000
commitaf752016340021d433a962063067e819dba889b1 (patch)
tree4cfbd4d243d26cffcf9955d15c72f3ad2d278805 /tools/perf/scripts/python
parentperf bpf filter: Add uid and gid terms (diff)
downloadkernel-af752016340021d433a962063067e819dba889b1.tar.gz
kernel-af752016340021d433a962063067e819dba889b1.zip
perf top: Allow filters on events
Allow filters to be added to perf top events. One use is to workaround issues with: ``` $ perf top --uid="$(id -u)" ``` which tries to scan /proc find processes belonging to the uid and can fail in such a pid terminates between the scan and the perf_event_open reporting: ``` Error: The sys_perf_event_open() syscall returned with 3 (No such process) for event (cycles:P). /bin/dmesg | grep -i perf may provide additional information. ``` A similar filter: ``` $ perf top -e cycles:P --filter "uid == $(id -u)" ``` doesn't fail this way. Signed-off-by: Ian Rogers <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: John Fastabend <[email protected]> Cc: Changbin Du <[email protected]> Cc: Yang Jihong <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: [email protected] Signed-off-by: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions