diff options
author | Ian Rogers <irogers@google.com> | 2024-05-24 13:52:26 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-05-30 10:05:57 -0700 |
commit | d92aa899fe0a66350303a1986d6dc7ec4b3a1ea7 (patch) | |
tree | a57346e02167583943c079105dfa62e3c33d7fb9 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 63b9cbd7941aa9ec5cb61567042176c4ce04b020 (diff) |
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 <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Changbin Du <changbin.du@huawei.com>
Cc: Yang Jihong <yangjihong1@huawei.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: bpf@vger.kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240524205227.244375-3-irogers@google.com
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions