perf parse-events: Add parse_uid_filter helper
authorIan Rogers <irogers@google.com>
Wed, 4 Jun 2025 17:45:37 +0000 (10:45 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 9 Jun 2025 18:18:17 +0000 (11:18 -0700)
commit466db4275edd35b7a9af7c82575bcb3289f2c9c0
tree68672c6d65f5417afd2b733bcf39323d6c11466e
parent5ddf4c3a17dc499fcbaf35692bc894340062dee8
perf parse-events: Add parse_uid_filter helper

Add parse_uid_filter filter as a helper to parse_filter, that
constructs a uid filter string. As uid filters don't work with
tracepoint filters, add a is_possible_tp_filter function so the
tracepoint filter isn't attempted for tracepoint evsels.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250604174545.2853620-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h