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


Groups > linux.kernel > #1667679

Re: perf report: fix off-by-one for non-activation frames

From Jan Kratochvil <jan.kratochvil@redhat.com>
Newsgroups linux.kernel
Subject Re: perf report: fix off-by-one for non-activation frames
Date 2017-06-16 14:00 +0200
Message-ID <tSY4X-7Xg-39@gated-at.bofh.it> (permalink)
References <tHpNg-1m3-21@gated-at.bofh.it> <tSSLT-4KG-1@gated-at.bofh.it> <tSY4W-7Xg-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 16 Jun 2017 13:51:37 +0200, Milian Wolff wrote:
> > perf-4.12.0-0.rc5.git0.1.fc27.x86_64
> >                   39e32e gdb_main (/usr/libexec/gdb)
> >                   10b6fa main (/usr/libexec/gdb)
> >    0x000055555565f6f6 <+54>:    callq  0x5555558f17a0 <gdb_main(captured_main_args*)
> >    0x000055555565f6fb <+59>:    mov    0x18(%rsp),%rcx
[...]
> Excuse me, but I'm having trouble following you. The non-GDB backtraces you 
> are pasting do not show srcline information. So what exactly is broken?

There is broken that perf now reports address 10b6fa (corresponding to
relocated address 0x000055555565f6fa) but there is no instruction on address
0x000055555565f6fa.  If you 'objdump -d' it you cannot find any instruction on
adress 0x000055555565f6fa (or on address 0x10b6fa).  There is instruction on
address 0x000055555565f6fb.


> Maybe paste the perf output you get now and highlight what you'd expect
> instead?

Actual:
                  39e32e gdb_main (/usr/libexec/gdb)
                  10b6fa main (/usr/libexec/gdb)
Expected:
                  39e32f gdb_main (/usr/libexec/gdb)
                  10b6fb main (/usr/libexec/gdb)

I agree perf needs to calculate with 39e32e and 10b6fa.  But it should display
to user 39e32f and 10b6fb.


Jan

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


Thread

Re: perf report: fix off-by-one for non-activation frames Jan Kratochvil <jan.kratochvil@redhat.com> - 2017-06-16 08:20 +0200
  Re: perf report: fix off-by-one for non-activation frames Milian Wolff <milian.wolff@kdab.com> - 2017-06-16 14:00 +0200
    Re: perf report: fix off-by-one for non-activation frames Jan Kratochvil <jan.kratochvil@redhat.com> - 2017-06-16 14:00 +0200
      Re: perf report: fix off-by-one for non-activation frames Milian Wolff <milian.wolff@kdab.com> - 2017-06-16 22:00 +0200
        Re: perf report: fix off-by-one for non-activation frames Namhyung Kim <namhyung@kernel.org> - 2017-06-17 10:00 +0200
          Re: perf report: fix off-by-one for non-activation frames Jan Kratochvil <jan.kratochvil@redhat.com> - 2017-06-17 10:10 +0200
            Re: perf report: fix off-by-one for non-activation frames Milian Wolff <milian.wolff@kdab.com> - 2017-06-17 13:20 +0200
              Re: perf report: fix off-by-one for non-activation frames Arnaldo Carvalho de Melo <acme@redhat.com> - 2017-06-19 21:10 +0200

csiph-web