diff options
| author | Adrian Hunter <[email protected]> | 2022-07-11 09:31:56 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-07-20 14:08:04 +0000 |
| commit | 3461b65da7d48c57080d40e6b545f1360f0b195b (patch) | |
| tree | ea4762a432508775fb7bd222ba6a816f84832751 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
| parent | perf tools: Add guest_cpu to hypervisor threads (diff) | |
| download | kernel-3461b65da7d48c57080d40e6b545f1360f0b195b.tar.gz kernel-3461b65da7d48c57080d40e6b545f1360f0b195b.zip | |
perf tools: Add machine_pid and vcpu to perf_sample
When parsing a sample with a sample ID, copy machine_pid and vcpu from
perf_sample_id to perf_sample.
Note, machine_pid will be zero when unused, so only a non-zero value
represents a guest machine. vcpu should be ignored if machine_pid is zero.
Note also, machine_pid is used with events that have come from injecting a
guest perf.data file, however guest events recorded on the host (i.e. using
perf kvm) have the (QEMU) hypervisor process pid to identify them - refer
machines__find_for_cpumode().
Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions
