perf bpf filter: Support pre-5.16 kernels where 'mem_hops' isn't in 'union perf_mem_d...
authorIan Rogers <irogers@google.com>
Sat, 8 Apr 2023 05:52:08 +0000 (22:52 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Apr 2023 21:57:17 +0000 (18:57 -0300)
commit3a8b8fc3174891c4c12f5766d82184a82d4b2e3e
tree0c727e50b32d55247cc6bdad0a228978a38aaa48
parent0c1228486befa3d6e943488406f1e3c05679721b
perf bpf filter: Support pre-5.16 kernels where 'mem_hops' isn't in 'union perf_mem_data_src'

The 'mem_hops' bits were added in 5.16 with no prior equivalent.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: bpf@vger.kernel.org
Link: https://lore.kernel.org/r/20230408055208.1283832-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf_skel/sample_filter.bpf.c