]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf evsel: tp_format accessing improvements
authorIan Rogers <irogers@google.com>
Fri, 28 Feb 2025 22:23:00 +0000 (14:23 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 12 Mar 2025 01:55:37 +0000 (18:55 -0700)
commiteb7e83a7ca2dba01671c711e1711705e1a15626d
tree40ba12ea2b125d557b27c277c5e3fd34a75ffe39
parentfe0ce8a9d85a48642880c9b78944cb0d23e779c5
perf evsel: tp_format accessing improvements

Ensure evsel__clone copies the tp_sys and tp_name variables.
In evsel__tp_format, if tp_sys isn't set, use the config value to find
the tp_format. This succeeds in python code where pyrf__tracepoint has
already found the format.

Reviewed-by: Howard Chu <howardchu95@gmail.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250228222308.626803-4-irogers@google.com
Fixes: 6c8310e8380d472c ("perf evsel: Allow evsel__newtp without libtraceevent")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/evsel.c