diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-05-04 04:27:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-10-19 12:18:31 -0400 |
commit | 4d08910c94c5b460c1e0623b47ec2abc0ab0d1a6 (patch) | |
tree | f199d9141d4dc8b9aa34d4e3c1c6d986f3e74820 /tools/perf/builtin-c2c.c | |
parent | 1295f6854095d0f9537afb99516b6b30b208d227 (diff) |
perf c2c report: Add llc and remote loads related dimension keys
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>
Diffstat (limited to 'tools/perf/builtin-c2c.c')
-rw-r--r-- | tools/perf/builtin-c2c.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 2b9d24fdcaee..6b601836b031 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c | |||
@@ -418,6 +418,8 @@ STAT_FN(st_l1miss) | |||
418 | STAT_FN(ld_fbhit) | 418 | STAT_FN(ld_fbhit) |
419 | STAT_FN(ld_l1hit) | 419 | STAT_FN(ld_l1hit) |
420 | STAT_FN(ld_l2hit) | 420 | STAT_FN(ld_l2hit) |
421 | STAT_FN(ld_llchit) | ||
422 | STAT_FN(rmt_hit) | ||
421 | 423 | ||
422 | #define HEADER_LOW(__h) \ | 424 | #define HEADER_LOW(__h) \ |
423 | { \ | 425 | { \ |
@@ -582,6 +584,22 @@ static struct c2c_dimension dim_ld_l2hit = { | |||
582 | .width = 7, | 584 | .width = 7, |
583 | }; | 585 | }; |
584 | 586 | ||
587 | static struct c2c_dimension dim_ld_llchit = { | ||
588 | .header = HEADER_SPAN("-- LLC Load Hit --", "Llc", 1), | ||
589 | .name = "ld_lclhit", | ||
590 | .cmp = ld_llchit_cmp, | ||
591 | .entry = ld_llchit_entry, | ||
592 | .width = 8, | ||
593 | }; | ||
594 | |||
595 | static struct c2c_dimension dim_ld_rmthit = { | ||
596 | .header = HEADER_SPAN_LOW("Rmt"), | ||
597 | .name = "ld_rmthit", | ||
598 | .cmp = rmt_hit_cmp, | ||
599 | .entry = rmt_hit_entry, | ||
600 | .width = 8, | ||
601 | }; | ||
602 | |||
585 | static struct c2c_dimension *dimensions[] = { | 603 | static struct c2c_dimension *dimensions[] = { |
586 | &dim_dcacheline, | 604 | &dim_dcacheline, |
587 | &dim_offset, | 605 | &dim_offset, |
@@ -599,6 +617,8 @@ static struct c2c_dimension *dimensions[] = { | |||
599 | &dim_ld_fbhit, | 617 | &dim_ld_fbhit, |
600 | &dim_ld_l1hit, | 618 | &dim_ld_l1hit, |
601 | &dim_ld_l2hit, | 619 | &dim_ld_l2hit, |
620 | &dim_ld_llchit, | ||
621 | &dim_ld_rmthit, | ||
602 | NULL, | 622 | NULL, |
603 | }; | 623 | }; |
604 | 624 | ||