]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf bpf filter: Give terms their own enum
authorIan Rogers <irogers@google.com>
Fri, 24 May 2024 20:52:25 +0000 (13:52 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 30 May 2024 17:05:57 +0000 (10:05 -0700)
commit63b9cbd7941aa9ec5cb61567042176c4ce04b020
tree5c1e7e12fde31b93d663a77f7af56ac11b99cf6e
parentd163d60258c755845cbc9cfe0e45fca71e649488
perf bpf filter: Give terms their own enum

Give the term types their own enum so that additional terms can be
added that don't correspond to a PERF_SAMPLE_xx flag. The term values
are numerically ascending rather than bit field positions, this means
they need translating to a PERF_SAMPLE_xx bit field in certain places
using a shift.

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-2-irogers@google.com
tools/perf/util/bpf-filter.c
tools/perf/util/bpf-filter.h
tools/perf/util/bpf-filter.l
tools/perf/util/bpf-filter.y
tools/perf/util/bpf_skel/sample-filter.h
tools/perf/util/bpf_skel/sample_filter.bpf.c