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]
Date:   Wed, 1 Mar 2017 23:56:39 +0900
From:   Namhyung Kim <namhyung@...nel.org>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     Taeung Song <treeze.taeung@...il.com>,
        Arnaldo Carvalho de Melo <acme@...nel.org>,
        linux-kernel@...r.kernel.org, Jiri Olsa <jolsa@...nel.org>,
        Ingo Molnar <mingo@...nel.org>, Wang Nan <wangnan0@...wei.com>,
        Masami Hiramatsu <mhiramat@...nel.org>,
        Jiri Olsa <jolsa@...hat.com>, kernel-team@....com
Subject: Re: [PATCH v2 2/3] perf annotate: Introduce the new source code view

On Wed, Mar 01, 2017 at 03:30:11PM +0100, Peter Zijlstra wrote:
> On Wed, Mar 01, 2017 at 11:21:33PM +0900, Namhyung Kim wrote:
> 
> > > What's the point of source-only? You can't even see what it is that is
> > > expensive.
> > 
> > ???
> 
> From a line like:
> 
> 		a = b ? ptr->c : 0;
> 
> How do you tell what it is that causes the problem, the branch miss or
> the pointer deref?

I can't.  But I think it's a problem of granularity.  If someone wants
to see the cause, he/she will need to dig into the asm.  But before
that, looking at the source level can give a hint or clue for the
problem IMHO.

> 
> Typically looking at the asm this is fairly clear; even without
> recording with more specific events.

But I think there're many developers don't see asm code at least
usually.  And even for someone who is familiar with the asm, it's
easier to see the source code to try to identify the problem IMHO.


> 
> > This is to show source code + overhead (for each line).  People can
> > see which line of their source is expensive.  I think it's way more
> > intuitive for most developers..
> 
> And how pray are you going to write better code if you have no clue what
> the problem is?
> 
> I'm really wondering how you can even think about performance if you're
> scared of asm.

I'm not saying I'm scared of asm. :)

For extreme performance, we need to see the asm.  But I guess
sometimes it's enough to see it in the source level.

It's a kind of user experience issue.  We provide the asm-only and
asm+source annotation, and I think it'd be nice to add source-only
option.  And I remember that it was requested some time ago..

Thanks,
Namhyung

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ