perf auxtrace: Add machine_pid and vcpu to auxtrace_error
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 11 Jul 2022 09:32:00 +0000 (12:32 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Jul 2022 14:08:17 +0000 (11:08 -0300)
commit7151c1d17820c0cfcda0c890f55a868cb4336afc
tree24aa52abbbbc5e37c29c889b02a510a871287eba
parent2273e46b98377f563628d694a1ad49b5d11afb43
perf auxtrace: Add machine_pid and vcpu to auxtrace_error

Add machine_pid and vcpu to struct perf_record_auxtrace_error. The existing
fmt member is used to identify the new format.

The new members make it possible to easily differentiate errors from guest
machines.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: kvm@vger.kernel.org
Link: https://lore.kernel.org/r/20220711093218.10967-18-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/include/perf/event.h
tools/perf/util/auxtrace.c
tools/perf/util/auxtrace.h
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/session.c