Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1287412

Re: [Questions] perf c2c: What's the current status of perf c2c?

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [Questions] perf c2c: What's the current status of perf c2c?
Date 2015-12-09 12:00 +0100
Message-ID <qDKDv-7j2-3@gated-at.bofh.it> (permalink)
References <qDEop-3mU-5@gated-at.bofh.it> <qDHYZ-5KQ-7@gated-at.bofh.it> <qDJo6-6xK-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Dec 09, 2015 at 10:34:02AM +0100, Peter Zijlstra wrote:
> Which we can imagine could result in code like:
> 
> foobar:
> 	mov (%rax), %rax	# load bar::foo
> 	mov (%rax,1,4), %rax	# load foo::val
> 
> 
> And DWARFs should know this, so by knowing the instruction we can know
> which load missed the cache.
> 
> Once you have this information, you can use pahole like structure output
> and heat colour them or whatnot. Bright red if you miss lots etc..
> 
> Now currently this is possible but a bit of work because the DWARF
> annotations are not exactly following these data types, that is you
> might need to decode previous instructions and infer some bits.

To clarify, current DWARFs might only know the argument to foobar is of
type struct bar *, and we'll have to infer the rest.

> I think Stephane was working with GCC people to allow more/better DWARF
> annotations and allow easier retrieval of this information.

And even if that gets sorted, it might still make sense to implement the
hard case as per the above, because it'll take a long time before
everything is build with the fancy new GCC/dwarf output.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[Questions] perf c2c: What's the current status of perf c2c? Yunlong Song <yunlong.song@huawei.com> - 2015-12-09 05:20 +0100
  Re: [Questions] perf c2c: What's the current status of perf c2c? Jiri Olsa <jolsa@redhat.com> - 2015-12-09 09:10 +0100
    Re: [Questions] perf c2c: What's the current status of perf c2c? "Wangnan (F)" <wangnan0@huawei.com> - 2015-12-09 09:20 +0100
      Re: [Questions] perf c2c: What's the current status of perf c2c? Jiri Olsa <jolsa@redhat.com> - 2015-12-09 10:20 +0100
    Re: [Questions] perf c2c: What's the current status of perf c2c? Peter Zijlstra <peterz@infradead.org> - 2015-12-09 10:40 +0100
      Re: [Questions] perf c2c: What's the current status of perf c2c? Peter Zijlstra <peterz@infradead.org> - 2015-12-09 12:00 +0100
      Re: [Questions] perf c2c: What's the current status of perf c2c? Joe Mario <jmario@redhat.com> - 2015-12-09 12:10 +0100
      Re: [Questions] perf c2c: What's the current status of perf c2c? Peter Zijlstra <peterz@infradead.org> - 2015-12-09 15:10 +0100
      Re: [Questions] perf c2c: What's the current status of perf c2c? Andi Kleen <andi@firstfloor.org> - 2015-12-09 18:00 +0100
        Re: [Questions] perf c2c: What's the current status of perf c2c? Stephane Eranian <eranian@google.com> - 2015-12-09 18:20 +0100
          Re: [Questions] perf c2c: What's the current status of perf c2c? Andi Kleen <andi@firstfloor.org> - 2015-12-09 18:30 +0100
            Re: [Questions] perf c2c: What's the current status of perf c2c? Stephane Eranian <eranian@google.com> - 2015-12-09 20:50 +0100
          Re: [Questions] perf c2c: What's the current status of perf c2c? Joe Mario <jmario@redhat.com> - 2015-12-09 21:50 +0100
            Re: [Questions] perf c2c: What's the current status of perf c2c? Yunlong Song <yunlong.song@huawei.com> - 2015-12-10 03:40 +0100

csiph-web