OSDN Git Service

perf dlfilter: Add machine_pid and vcpu
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 11 Jul 2022 09:31:59 +0000 (12:31 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Jul 2022 14:08:13 +0000 (11:08 -0300)
commit2273e46b98377f563628d694a1ad49b5d11afb43
treed66def86407453a194a7730ab745600f28456f27
parente28fb159f1163e76811b9b9024564c33027d9a44
perf dlfilter: Add machine_pid and vcpu

Add machine_pid and vcpu to struct perf_dlfilter_sample. The 'size' can be
used to determine if the values are present, however machine_pid is zero if
unused in any case. vcpu should be ignored if machine_pid is zero.

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-17-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-dlfilter.txt
tools/perf/include/perf/perf_dlfilter.h
tools/perf/util/dlfilter.c