diff options
author | Namhyung Kim <namhyung@kernel.org> | 2022-10-11 07:28:08 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-14 15:29:05 +0200 |
commit | f21cb52036373a108acde5853931facfea727a7b (patch) | |
tree | 42fc3816e66fe6d0d268ca190acfcbeef14b3188 /tools/testing | |
parent | Merge tag 'drm-next-2022-10-14' of git://anongit.freedesktop.org/drm/drm (diff) | |
download | linux-f21cb52036373a108acde5853931facfea727a7b.tar.xz linux-f21cb52036373a108acde5853931facfea727a7b.zip |
perf stat: Support old kernels for bperf cgroup counting
The recent change in the cgroup will break the backward compatiblity in
the BPF program. It should support both old and new kernels using BPF
CO-RE technique.
Like the task_struct->__state handling in the offcpu analysis, we can
check the field name in the cgroup struct.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: bpf@vger.kernel.org
Cc: cgroups@vger.kernel.org
Cc: zefan li <lizefan.x@bytedance.com>
Link: http://lore.kernel.org/lkml/20221011052808.282394-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions