diff options
author | 2022-09-22 23:32:05 -0700 | |
---|---|---|
committer | 2022-09-26 10:05:50 -0300 | |
commit | e42c9c54f2e731885ea2bd92c478c85d879637a6 (patch) | |
tree | 79fac289f3aa836d6f3b827bbc7d190003c4308a /scripts/generate_rust_analyzer.py | |
parent | Linux 6.0-rc7 (diff) | |
download | wireguard-linux-e42c9c54f2e731885ea2bd92c478c85d879637a6.tar.xz wireguard-linux-e42c9c54f2e731885ea2bd92c478c85d879637a6.zip |
perf tools: Get a perf cgroup more portably in BPF
The perf_event_cgrp_id can be different on other configurations.
To be more portable as CO-RE, it needs to get the cgroup subsys id using
the bpf_core_enum_value() helper.
Suggested-by: Ian Rogers <irogers@google.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Hao Luo <haoluo@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: bpf@vger.kernel.org
Link: https://lore.kernel.org/r/20220923063205.772936-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions