perf script python: Add machine_pid and vcpu
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 11 Jul 2022 09:32:01 +0000 (12:32 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Jul 2022 14:08:21 +0000 (11:08 -0300)
commit6de306b7a5304e873fd6fc014121bd8f19ec418f
tree85d52c79999b3f83db00c3d3a3f9e95f0a572885
parent7151c1d17820c0cfcda0c890f55a868cb4336afc
perf script python: Add machine_pid and vcpu

Add machine_pid and vcpu to python sample events and context switch events.

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-19-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/scripting-engines/trace-event-python.c