]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
perf c2c report: Add llc and remote loads related dimension keys
authorJiri Olsa <jolsa@kernel.org>
Wed, 4 May 2016 08:27:51 +0000 (10:27 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Oct 2016 16:18:31 +0000 (13:18 -0300)
Add 2 LLC load related dimension key wrappers.

They are to be displayed in the main cachelines overall output:

  ld_lclhit, ld_rmthit

They display bare numbers of LLC and remote loads for cacheline.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Joe Mario <jmario@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-ahjg0voaufefboemjuj9yefh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-c2c.c

index 2b9d24fdcaeeb32d58c2a7e04fc14bf563b10507..6b601836b0312a4b0332958317fbe0b4db89bdcb 100644 (file)
@@ -418,6 +418,8 @@ STAT_FN(st_l1miss)
 STAT_FN(ld_fbhit)
 STAT_FN(ld_l1hit)
 STAT_FN(ld_l2hit)
+STAT_FN(ld_llchit)
+STAT_FN(rmt_hit)
 
 #define HEADER_LOW(__h)                        \
        {                               \
@@ -582,6 +584,22 @@ static struct c2c_dimension dim_ld_l2hit = {
        .width          = 7,
 };
 
+static struct c2c_dimension dim_ld_llchit = {
+       .header         = HEADER_SPAN("-- LLC Load Hit --", "Llc", 1),
+       .name           = "ld_lclhit",
+       .cmp            = ld_llchit_cmp,
+       .entry          = ld_llchit_entry,
+       .width          = 8,
+};
+
+static struct c2c_dimension dim_ld_rmthit = {
+       .header         = HEADER_SPAN_LOW("Rmt"),
+       .name           = "ld_rmthit",
+       .cmp            = rmt_hit_cmp,
+       .entry          = rmt_hit_entry,
+       .width          = 8,
+};
+
 static struct c2c_dimension *dimensions[] = {
        &dim_dcacheline,
        &dim_offset,
@@ -599,6 +617,8 @@ static struct c2c_dimension *dimensions[] = {
        &dim_ld_fbhit,
        &dim_ld_l1hit,
        &dim_ld_l2hit,
+       &dim_ld_llchit,
+       &dim_ld_rmthit,
        NULL,
 };