]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf auxtrace: Add auxtrace_synth_id_range_start() helper
authortanze <tanze@kylinos.cn>
Fri, 24 Oct 2025 08:56:25 +0000 (16:56 +0800)
committerNamhyung Kim <namhyung@kernel.org>
Sun, 26 Oct 2025 00:44:57 +0000 (17:44 -0700)
commitab29ff9f6fe06d23c16b5565fcae96bad21be900
tree92338296f794b81715794711bd615022760f6850
parentbe806f06adfb2ec587b3b1076d1812b1f1032ac2
perf auxtrace: Add auxtrace_synth_id_range_start() helper

To avoid hardcoding the offset value for synthetic event IDs
in multiple auxtrace modules (arm-spe, cs-etm, intel-pt, etc.),
and to improve code reusability, this patch unifies
the handling of the ID offset via a dedicated helper function.

Signed-off-by: tanze <tanze@kylinos.cn>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/arm-spe.c
tools/perf/util/auxtrace.c
tools/perf/util/auxtrace.h
tools/perf/util/cs-etm.c
tools/perf/util/intel-bts.c
tools/perf/util/intel-pt.c
tools/perf/util/powerpc-vpadtl.c