lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151105065240.GA30271@krava.brq.redhat.com>
Date:	Thu, 5 Nov 2015 07:52:40 +0100
From:	Jiri Olsa <jolsa@...hat.com>
To:	Andi Kleen <andi@...stfloor.org>
Cc:	jolsa@...nel.org, acme@...nel.org, mingo@...nel.org,
	linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH 3/9] perf, tools, stat: Abstract stat metrics printing

On Thu, Nov 05, 2015 at 03:43:07AM +0100, Andi Kleen wrote:
> On Wed, Nov 04, 2015 at 09:42:48AM +0100, Jiri Olsa wrote:
> > 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?
> 
> There can be stuff after the metric, need to print spaces then to get
> the correct indentation.

what stuff?

jirka

> 
> Also it's needed for the metrics only patch (posted separately) so
> that it can catch all column headers, even if some are missing initially.
> 
> -Andi
> 
> -- 
> ak@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ