summaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2023-03-15 22:51:06 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-03-15 16:47:33 -0300
commit41f1138e5c1cf11c5b469c3f891960b4ad05e886 (patch)
tree16e362e155719b6cd62e76667798155d1cc3703f /tools/perf/util
parentebf39d29b985b0c0f75c2e752781a9a80daadc0e (diff)
downloadlinux-stable-41f1138e5c1cf11c5b469c3f891960b4ad05e886.tar.gz
linux-stable-41f1138e5c1cf11c5b469c3f891960b4ad05e886.tar.bz2
linux-stable-41f1138e5c1cf11c5b469c3f891960b4ad05e886.zip
perf kvm: Add dimensions for KVM event statistics
To support KVM event statistics, this patch firstly registers histograms columns and sorting fields; every column or field has its own format structure, the format structure is dereferenced to access the dimension, finally the dimension provides the comparison callback for sorting result. Signed-off-by: Leo Yan <leo.yan@linaro.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: John Garry <john.g.garry@oracle.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-arm-kernel@lists.infradead.org Link: https://lore.kernel.org/r/20230315145112.186603-2-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/kvm-stat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/kvm-stat.h b/tools/perf/util/kvm-stat.h
index 0cf704333c4c..fc30a72dfac1 100644
--- a/tools/perf/util/kvm-stat.h
+++ b/tools/perf/util/kvm-stat.h
@@ -46,6 +46,8 @@ struct kvm_event {
#define DEFAULT_VCPU_NUM 8
int max_vcpu;
struct kvm_event_stats *vcpu;
+
+ struct hist_entry he;
};
typedef int64_t (*key_cmp_fun)(struct kvm_event*, struct kvm_event*, int);