]> git.itanic.dy.fi Git - linux-stable/commit
perf tools: Convert to perf_record_header_attr_id()
authorNamhyung Kim <namhyung@kernel.org>
Fri, 25 Aug 2023 15:25:51 +0000 (08:25 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 29 Aug 2023 17:16:14 +0000 (14:16 -0300)
commitf174341d0da1cb2fb8888e1fa228c31523eaec90
treed10762eecd2ca10e64412f2624c3b74085a45f62
parentbaec60800dd4a379546f3ba311574d907a01a77d
perf tools: Convert to perf_record_header_attr_id()

Instead of accessing the attr.id directly, use the
perf_record_header_attr_id() helper to handle old versions.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230825152552.112913-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c
tools/perf/util/session.c
tools/perf/util/synthetic-events.c