diff options
author | Ian Rogers <irogers@google.com> | 2025-06-04 10:45:38 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-06-09 11:18:17 -0700 |
commit | 1151208e702267ad1ce2f24aa9d21deb47fa17f9 (patch) | |
tree | 4bf5e1d3d56114cf67eb58a4be026d1336d2b82d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 466db4275edd35b7a9af7c82575bcb3289f2c9c0 (diff) |
perf record: Switch user option to use BPF filter
Finding user processes by scanning /proc is inherently racy and
results in perf_event_open failures. Use a BPF filter to drop samples
where the uid doesn't match. Ensure adding the BPF filter forces
system-wide.
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250604174545.2853620-5-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions