lkml.org 
[lkml]   [2015]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/9] perf, tools, stat: Abstract stat metrics printing
On Mon, Nov 02, 2015 at 05:50:22PM -0800, Andi Kleen wrote:

SNIP

> evsel->attr.type == PERF_TYPE_HW_CACHE &&
> evsel->attr.config == ( PERF_COUNT_HW_CACHE_L1D |
> ((PERF_COUNT_HW_CACHE_OP_READ) << 8) |
> - ((PERF_COUNT_HW_CACHE_RESULT_MISS) << 16)) &&
> - runtime_l1_dcache_stats[ctx][cpu].n != 0) {
> - print_l1_dcache_misses(out, cpu, evsel, avg);
> + ((PERF_COUNT_HW_CACHE_RESULT_MISS) << 16))) {
> + if (runtime_l1_dcache_stats[ctx][cpu].n != 0)
> + print_l1_dcache_misses(cpu, evsel, avg, out);
> + else
> + print_metric(ctxp, NULL, NULL, "of all L1-dcache hits", 0);

hum, what's the reason for all those else cases
ending up printing nothing?

we have one metric per line anyway right?

jirka


\
 
 \ /
  Last update: 2015-11-04 10:01    [W:0.126 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site