perf record: Always record id index
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 10 Jun 2022 11:33:13 +0000 (14:33 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 23 Jun 2022 14:54:22 +0000 (11:54 -0300)
commit6b080312fc821658a479e74bdb0c3f7d9ac5838f
treeb352ced9650c1bc008eae0ba0e8e0a923a7b45ad
parentf42c0ce573df79d1b8bd169008c994dcdd43585a
perf record: Always record id index

In preparation for recording sideband events in a virtual machine guest so
that they can be injected into a host perf.data file.

Adjust the logic so that if there are IDs then the id index is recorded.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20220610113316.6682-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/synthetic-events.c