diff options
| author | Ian Rogers <[email protected]> | 2024-05-24 20:52:26 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2024-05-30 17:05:57 +0000 |
| commit | d92aa899fe0a66350303a1986d6dc7ec4b3a1ea7 (patch) | |
| tree | a57346e02167583943c079105dfa62e3c33d7fb9 /tools/perf/scripts/python/netdev-times.py | |
| parent | perf bpf filter: Give terms their own enum (diff) | |
| download | kernel-d92aa899fe0a66350303a1986d6dc7ec4b3a1ea7.tar.gz kernel-d92aa899fe0a66350303a1986d6dc7ec4b3a1ea7.zip | |
perf bpf filter: Add uid and gid terms
Allow the BPF filter to use the uid and gid terms determined by the
bpf_get_current_uid_gid BPF helper. For example, the following will
record the cpu-clock event system wide discarding samples that don't
belong to the current user.
$ perf record -e cpu-clock --filter "uid == $(id -u)" -a sleep 0.1
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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
