diff options
author | 2023-01-08 14:23:59 +0800 | |
---|---|---|
committer | 2023-01-10 10:52:49 -0300 | |
commit | b3719108ae60169eda5c941ca5e1be1faa371c57 (patch) | |
tree | f849bba5eaf20193dd9ecfac51f73a8635838f56 /tools/perf/examples/bpf/5sec.c | |
parent | perf build: Properly guard libbpf includes (diff) | |
download | linux-b3719108ae60169eda5c941ca5e1be1faa371c57.tar.gz linux-b3719108ae60169eda5c941ca5e1be1faa371c57.tar.bz2 linux-b3719108ae60169eda5c941ca5e1be1faa371c57.zip |
perf kmem: Support legacy tracepoints
Commit 11e9734bcb6a7361 ("mm/slab_common: unify NUMA and UMA version of
tracepoints") removed tracepoints 'kmalloc_node' and
'kmem_cache_alloc_node', we need to consider the tool should be backward
compatible.
If it detect the tracepoint "kmem:kmalloc_node", this patch enables the
legacy tracepoints, otherwise, it will ignore them.
Fixes: 11e9734bcb6a7361 ("mm/slab_common: unify NUMA and UMA version of tracepoints")
Reported-by: Ravi Bangoria <ravi.bangoria@amd.com>
Reviewed-by: James Clark <james.clark@arm.com>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Link: https://lore.kernel.org/r/20230108062400.250690-1-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/examples/bpf/5sec.c')
0 files changed, 0 insertions, 0 deletions