Two questions on perf dwarf callchains
Hi all,
I have installed a textual Arch Linux guest (the hypervisor is KVM) and I am playing with perf and dwarf callchains. In particular, I am trying to get meaningful stacktraces for a simple command such as "ls -lR /".
Here is what I did.
* recompile the kernel with
CONFIG_DEBUG_INFO=y
CONFIG_FRAME_POINTER=Y
* recompile the C library with symbols (-g)
* recompile all other dependencies of "ls" (ldd /usr/bin/ls) with symbols (on my system, that would be libcap, libacl, libattr)
* recompile the coreutils package with symbols
After that, I executed the following commands:
perf record --call-graph dwarf -g -- ls -lR /
<wait 10s; hit CTRL-C>
perf report --call-graph --stdio
I hit two problems.
Problem n.1: perf report warns me about missing kernel symbols.
No kallsyms or vmlinux with build-id 4c6ab941f31dde04c2a481430218994849927c8d was found
[ext4] with build id 4c6ab941f31dde04c2a481430218994849927c8d not found, continuing without symbols
No kallsyms or vmlinux with build-id 21f163b0a8a8b924efdd173b8f83ad723d378958 was found
[drm] with build id 21f163b0a8a8b924efdd173b8f83ad723d378958 not found, continuing without symbols
No kallsyms or vmlinux with build-id d0bd7dd69886c2dccde18dee760b6d39cc0b5a55 was found[qxl] with build id d0bd7dd69886c2dccde18dee760b6d39cc0b5a55 not found, continuing without symbols No kallsyms or vmlinux with build-id 8d13e6f0c4d4f8b4628c8c4bd6c660b0a00576df was found[ttm] with build id 8d13e6f0c4d4f8b4628c8c4bd6c660b0a00576df not found, continuing without symbols
...
#
# Samples: 4K of event 'cpu-clock'
# Event count (approx.): 1201250000
#
# Overhead Command Shared Object
Symbol
# ........ ....... ................. .................................
...
7.12% ls [qxl] [k] 0x0000000000009b20 <--- HERE
|
|--4.09%-- 0xffffffffa048c2c2
| |
| |--42.86%-- 0xffffffffa048ee8b
| | 0xffffffffa048ba8f
| | bit_bmove
| | fbcon_redraw_blit.isra.22
| | fbcon_scroll
| | scrup
| | lf
| | do_con_trol
| | do_con_write.part.18
| | con_write
| | do_output_char
| | n_tty_write
| | tty_write
| | vfs_write
| | sys_write
| | system_call_fastpath
| | __GI___libc_writeFor example, the 0x0000000000009b20 address should refer to some function in the qxl module for which no symbol was generated. As far as I could understand, perf does not seem to be able to extract symbol information from compressed modules. I had to decompress the qxl.ko.gz file to get perf report to print the function names.
Is this expected behaviour? How do I get perf to automatically extract symbols from compressed files?
Problem n.2: sometimes perf prints bogus callchains (in particular when the various printf() variants are involved).
|--1.46%-- 0xffffffffa048a275
| 0xffffffffa048c110
| 0xffffffffa04909e7
| |
| |--80.00%-- 0xffffffffa0490afa
| | 0xffffffffa048ee8b
| | 0xffffffffa048ba8f
| | bit_bmove
| | fbcon_redraw_blit.isra.22
| | fbcon_scroll
| | scrup
| | lf
| | do_con_trol
| | do_con_write.part.18
| | con_write
| | do_output_char
| | n_tty_write
| | tty_write
| | vfs_write
| | sys_write
| | system_call_fastpath
| | __GI___libc_write
| | |
| | |--50.00%-- vfprintf
| | | 0x0 <---HERE
| | |
| | |--25.00%-- main
| | | __libc_start_main
| | | _start
| | | 0x0 <---HERE
| | |
| | --25.00%-- 0x7facc1df12a0 HERETo which function would 0x7facc1df12a0 match? It does not even seem to be in the mapped address space of "ls". I am clueless.
Thanks for your time.
Bye
Mauro
Quoted 3 lines · Mauro Andreolini
file to get perf report to print the function names.
Is this expected behaviour? How do I get perf to automatically extract symbols from compressed files?
Someone would need to write the code to do that I guess.
Quoted 3 lines
To which function would
0x7facc1df12a0match? It does not even seem to be in the mapped address space of "ls". I am clueless.
The unwinder got confused. A common cause is incomplete or partially broken dwarf unwind information. May be a compiler problem.
-Andi
Signature · 1 line
[email protected] -- Speaking for myself only
Il giorno ven, 17/01/2014 alle 12.11 -0800, Andi Kleen ha scritto:
Quoted 6 lines
Quoted 3 lines · Mauro Andreolini
file to get perf report to print the function names.
Is this expected behaviour? How do I get perf to automatically extract symbols from compressed files?Someone would need to write the code to do that I guess.
OK.
Quoted 6 lines
Quoted 3 lines
To which function would
0x7facc1df12a0match? It does not even seem to be in the mapped address space of "ls". I am clueless.The unwinder got confused. A common cause is incomplete or partially broken dwarf unwind information. May be a compiler problem.
Thanks for your time. Right now I am using gcc 4.8.2 20131219 (prerelease) and libunwind 1.1. I noticed the following compile flags: "-O2 -g -fvar-tracking-assignments". I thought that maybe optimizations like function inlining and the like would not play together with debugging info, so I changed them to "-Og -g3 -fvar-tracking-assignments" and recompiled anything, albeit with no luck. I must be missing something big here. How can I be sure to give correct dwarf unwind information?
Mauro
Quoted 8 lines
Thanks for your time. Right now I am using gcc 4.8.2 20131219 (prerelease) and libunwind 1.1. I noticed the following compile flags: "-O2 -g -fvar-tracking-assignments". I thought that maybe optimizations like function inlining and the like would not play together with debugging info, so I changed them to "-Og -g3 -fvar-tracking-assignments" and recompiled anything, albeit with no luck. I must be missing something big here. How can I be sure to give correct dwarf unwind information?
The dwarf information should be present unless explicitely disabled. It's either a libunwind or compiler problem. You could file a gcc bug I suppose. Also check if gdb can backtrace through it. If that works it's likely unwind.
unwind problems are unfortunately somewhat common (but most seem to be in handwritten assembler)
You'll also notice that dwarf unwind profiling is very expensive in overhead. I usually avoid it because of that.
If you have a Haswell system one alternative is the LBR callstack patchkit on Linux kernel (unfortunately not merged so far)
-Andi
Signature · 1 line
[email protected] -- Speaking for myself only.
Il giorno sab, 18/01/2014 alle 05.42 +0100, Andi Kleen ha scritto:
Quoted 4 lines
The dwarf information should be present unless explicitely disabled. It's either a libunwind or compiler problem. You could file a gcc bug I suppose. Also check if gdb can backtrace through it. If that works it's likely unwind.
gdb can backtrace perfectly through ls -lR /. Also, recompiling the whole system with -fno-omit-frame-pointer makes perf record & report work like a charm. So I guess it must be the unwinder.
Quoted 5 lines
unwind problems are unfortunately somewhat common (but most seem to be in handwritten assembler)
You'll also notice that dwarf unwind profiling is very expensive in overhead. I usually avoid it because of that.
Yes, I did, unfortunately.
I'll look into the other issue regarding the compressed kernel modules. Again, thanks for your time.
Cheers
Mauro
Quoted 6 lines · Mauro Andreolini
Il giorno sab, 18/01/2014 alle 05.42 +0100, Andi Kleen ha scritto:
Quoted 4 lines
The dwarf information should be present unless explicitely disabled. It's either a libunwind or compiler problem. You could file a gcc bug I suppose. Also check if gdb can backtrace through it. If that works it's likely unwind.
gdb can backtrace perfectly through ls -lR /. Also, recompiling the
You tested it on the same IP as perf failed on, correct? It will depend on the exact location.
Quoted 2 lines
whole system with -fno-omit-frame-pointer makes perf record & report work like a charm. So I guess it must be the unwinder.
Please report it to the libunwind developers.
-Andi
Il giorno mer, 22/01/2014 alle 18.55 +0100, Andi Kleen ha scritto:
Quoted 10 lines · Mauro Andreolini
Quoted 6 lines
Il giorno sab, 18/01/2014 alle 05.42 +0100, Andi Kleen ha scritto:
Quoted 4 lines
The dwarf information should be present unless explicitely disabled. It's either a libunwind or compiler problem. You could file a gcc bug I suppose. Also check if gdb can backtrace through it. If that works it's likely unwind.
gdb can backtrace perfectly through ls -lR /. Also, recompiling the
You tested it on the same IP as perf failed on, correct? It will depend on the exact location.
Yes, I did.
Quoted 5 lines
Quoted 3 lines
whole system with -fno-omit-frame-pointer makes perf record & report work like a charm. So I guess it must be the unwinder.
Please report it to the libunwind developers.
OK. Will do.
Mauro
Quoted 1 line · Mauro Andreolini
Hi all,
hi
Quoted 7 lines
No kallsyms or vmlinux with build-id
4c6ab941f31dde04c2a481430218994849927c8dwas found
[ext4] with build id4c6ab941f31dde04c2a481430218994849927c8dnot found, continuing without symbols
No kallsyms or vmlinux with build-id21f163b0a8a8b924efdd173b8f83ad723d378958was found
[drm] with build id21f163b0a8a8b924efdd173b8f83ad723d378958not found, continuing without symbols
No kallsyms or vmlinux with build-idd0bd7dd69886c2dccde18dee760b6d39cc0b5a55was found[qxl] with build idd0bd7dd69886c2dccde18dee760b6d39cc0b5a55not found, continuing without symbols No kallsyms or vmlinux with build-id8d13e6f0c4d4f8b4628c8c4bd6c660b0a00576dfwas found[ttm] with build id8d13e6f0c4d4f8b4628c8c4bd6c660b0a00576dfnot found, continuing without symbols
hum, do you have kernel-debuginfo* packages installed?
SNIP
Quoted 28 lines
Problem n.2: sometimes perf prints bogus callchains (in particular when the various
printf()variants are involved).|--1.46%-- 0xffffffffa048a275 | 0xffffffffa048c110 | 0xffffffffa04909e7 | | | |--80.00%-- 0xffffffffa0490afa | | 0xffffffffa048ee8b | | 0xffffffffa048ba8f | | bit_bmove | | fbcon_redraw_blit.isra.22 | | fbcon_scroll | | scrup | | lf | | do_con_trol | | do_con_write.part.18 | | con_write | | do_output_char | | n_tty_write | | tty_write | | vfs_write | | sys_write | | system_call_fastpath | | __GI___libc_write | | | | | |--50.00%-- vfprintf
Quoted 8 lines
| | | 0x0 <---HERE
| | |
| | |--25.00%-- main
| | | __libc_start_main
| | | _start
| | | 0x0 <---HERE
| | |
| | --25.00%-- 0x7facc1df12a0 HEREthis one could be caused by:
http://marc.info/?l=linux-kernel&m=134934717011451&w=2
I never managed to push this change through.. need to revisit it ;-)
if you want to try, I rebased the patch and put it in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
branch perf/rsp_fix1
it still fixies some of the backtraces for me
jirka
Il giorno mer, 29/01/2014 alle 12.18 +0100, Jiri Olsa ha scritto:
Quoted 4 lines
this one could be caused by:
http://marc.info/?l=linux-kernel&m=134934717011451&w=2
I never managed to push this change through.. need to revisit it ;-)
Quoted 8 lines
if you want to try, I rebased the patch and put it in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
branch perf/rsp_fix1it still fixies some of the backtraces for me
Hi, the patch improves things considerably. However, I still get several "0x0" on top of the _start() function, e.g.:
15.79% ls [kernel.kallsyms] [k]
_raw_spin_unlock_irqrestore
|
--- _raw_spin_unlock_irqrestore
|
|--33.33%-- console_unlock
| con_write
| n_tty_write
| tty_write
| vfs_write
| sys_write
| system_call
| __GI___libc_write
| _IO_file_write@@GLIBC_2.2.5
| new_do_write
| _IO_do_write@@GLIBC_2.2.5
| _IO_file_overflow@@GLIBC_2.2.5
| print_many_per_line
| print_current_files
| print_dir
| main
| __libc_start_main
| _start
| 0x0 <---- HEREI also get an occasional screw in the dynamic linker code path:
5.26% ls [kernel.kallsyms] [k]
lock_release
|
--- lock_release
__mem_cgroup_try_charge
mem_cgroup_charge_common
mem_cgroup_newpage_charge
do_wp_page
handle_mm_fault
__do_page_fault
do_page_fault
do_async_page_fault
async_page_fault
__init_cpu_features
0x7fd2357470de <---- HERE
_dl_relocate_object
dl_main
_dl_sysdep_start
_dl_start
_dl_start_userand in the exit() path:
5.26% ls [kernel.kallsyms] [k]
do_raw_spin_trylock
|
--- do_raw_spin_trylock
unmap_single_vma
unmap_vmas
exit_mmap
mmput
do_exit
do_group_exit
0xffffffff81068184
system_callOther than that, it looks perfect. Thanks a lot!
Mauro
Quoted 1 line · Mauro Andreolini
Il giorno mer, 29/01/2014 alle 12.18 +0100, Jiri Olsa ha scritto:
SNIP
Quoted 10 lines
| new_do_write
| _IO_do_write@@GLIBC_2.2.5
| _IO_file_overflow@@GLIBC_2.2.5
| print_many_per_line
| print_current_files
| print_dir
| main
| __libc_start_main
| _start
| 0x0 <---- HEREzero's are taken care by:
http://marc.info/?t=138909914500003&r=1&w=2
within following patchset:
http://marc.info/?l=linux-kernel&m=138909914404574&w=2
which implements libdw dwarf unwind.. you might actualy want to try it, it seems to be little faster than libunwind unwinder
Quoted 18 lines
I also get an occasional screw in the dynamic linker code path:
5.26% ls [kernel.kallsyms] [k] lock_release | --- lock_release __mem_cgroup_try_charge mem_cgroup_charge_common mem_cgroup_newpage_charge do_wp_page handle_mm_fault __do_page_fault do_page_fault do_async_page_fault async_page_fault __init_cpu_features 0x7fd2357470de <---- HERE
not sure if that's just untranslatable part (.plt .got?) or an error.. need to be checked some day ;-)
jirka
Quoted 8 lines
zero's are taken care by:
http://marc.info/?t=138909914500003&r=1&w=2
within following patchset:
http://marc.info/?l=linux-kernel&m=138909914404574&w=2which implements libdw dwarf unwind.. you might actualy want to try it, it seems to be little faster than libunwind unwinder
Since I do not yet have elfutils 0.158 installed, I tried
to apply the single patch both to linux-3.12 and to the kernel you pointed me at, and used perf with the libunwind unwinder. With the 3.12 kernel I get segfaults on perf report; with the 3.13 branch zeroes are still present. Maybe I messed up.
I think I'll wait for the newest elfutils and give a shot ad the libdw unwinder.
Quoted 19 lines
Quoted 18 lines
I also get an occasional screw in the dynamic linker code path:
5.26% ls [kernel.kallsyms] [k] lock_release | --- lock_release __mem_cgroup_try_charge mem_cgroup_charge_common mem_cgroup_newpage_charge do_wp_page handle_mm_fault __do_page_fault do_page_fault do_async_page_fault async_page_fault __init_cpu_features 0x7fd2357470de <---- HERE
Quoted 2 lines
not sure if that's just untranslatable part (.plt .got?) or an error.. need to be checked some day ;-)
OK. Thanks for your time.
Mauro
Quoted 8 lines · Mauro Andreolini
Quoted 8 lines
zero's are taken care by:
http://marc.info/?t=138909914500003&r=1&w=2
within following patchset:
http://marc.info/?l=linux-kernel&m=138909914404574&w=2which implements libdw dwarf unwind.. you might actualy want to try it, it seems to be little faster than libunwind unwinder
Quoted 7 lines
Since I do not yet have elfutils 0.158 installed, I tried
to apply the single patch both to linux-3.12 and to the kernel you pointed me at, and used perf with the libunwind unwinder. With the 3.12 kernel I get segfaults on perf report; with the 3.13 branch zeroes are still present. Maybe I messed up.
I think I'll wait for the newest elfutils and give a shot ad the libdw unwinder.
I use elfutils git tree ;-)git://git.fedorahosted.org/git/elfutils.git
and the latest patchset (recently rebased) is in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/core_libdw_unwind
jirka
Quoted 2 lines
I use elfutils git tree ;-)
git://git.fedorahosted.org/git/elfutils.git
Installed fine.
Quoted 3 lines
and the latest patchset (recently rebased) is in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/core_libdw_unwind
Pulled the repo, switched branch to core_libdw_unwind, recompiled the kernel and rebooted fine. When I try to compile perf (make tools/perf NO_LIBUNWIND=1 PYTHON=/usr/bin/python2) I get this error message, though:
CHK -fstack-protector-all
CHK -Wstack-protector
CHK -Wvolatile-register-var
CHK bionic
CHK libelf
CHK libdw
CHK -DLIBELF_MMAP
CHK libaudit
CHK libnewt
CHK gtk2
CHK -DHAVE_GTK_INFO_BAR
CHK perl
CHK python
CHK python version
CHK libbfd
CHK liberty
CHK libz
CHK demangle
CHK -DHAVE_STRLCPY
CHK -DHAVE_ON_EXIT
CHK -DBACKTRACE_SUPPORT
CHK libnuma
* new build flags or prefixPERF_VERSION = 3.9.rc2.g7c6baa
...
[SNIP make output]
...
In file included from util/scripting-engines/trace-event-perl.c:30:0:/usr/lib/perl5/core_perl/CORE/perl.h:548:5: error:
"SILENT_NO_TAINT_SUPPORT" is not defined [-Werror=undef]
#if SILENT_NO_TAINT_SUPPORT && !defined(NO_TAINT_SUPPORT)
^
/usr/lib/perl5/core_perl/CORE/perl.h:556:5: error: "NO_TAINT_SUPPORT" is
not defined [-Werror=undef]
#if NO_TAINT_SUPPORT
^In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3471:0,
from util/scripting-engines/trace-event-perl.c:30:/usr/lib/perl5/core_perl/CORE/sv.h:1455:5: error: "NO_TAINT_SUPPORT" is not defined [-Werror=undef]
#if NO_TAINT_SUPPORT
^In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3472:0,
from util/scripting-engines/trace-event-perl.c:30:/usr/lib/perl5/core_perl/CORE/regexp.h:436:5: error: "NO_TAINT_SUPPORT" is not defined [-Werror=undef]
#if NO_TAINT_SUPPORT
^
In file included from /usr/lib/perl5/core_perl/CORE/hv.h:593:0,
from /usr/lib/perl5/core_perl/CORE/perl.h:3480,
from util/scripting-engines/trace-event-perl.c:30:/usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_siphash_2_4’:/usr/lib/perl5/core_perl/CORE/hv_func.h:222:3: error: switch missing default case [-Werror=switch-default]
switch( left )
^/usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_superfast’:/usr/lib/perl5/core_perl/CORE/hv_func.h:274:5: error: switch missing default case [-Werror=switch-default]
switch (rem) { \
^/usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_murmur3’:/usr/lib/perl5/core_perl/CORE/hv_func.h:398:5: error: switch missing default case [-Werror=switch-default]
switch(bytes_in_carry) { /* how many bytes in carry */ ^
cc1: all warnings being treated as errors
make: *** [util/scripting-engines/trace-event-perl.o] Errore 1
Mauro
Quoted 6 lines
/usr/lib/perl5/core_perl/CORE/hv_func.h:398:5: error: switch missing default case [-Werror=switch-default]
switch(bytes_in_carry){ /* how many bytes in carry */ ^
cc1: all warnings being treated as errors
make: *** [util/scripting-engines/trace-event-perl.o] Errore 1
I solved this one by applying this:
https://lkml.org/lkml/2013/7/23/60
Wow! Unwinding is noticeably faster than libunwind! The trace is almost perfect. I think I found only one unresolved symbol (it's always the same one, maybe I screwed up the compilation):
0.01% ls [kernel.kallsyms] [k] do_raw_read_unlock
|
--- do_raw_read_unlock
_raw_read_unlock
0xffffffffa0154479 <--- HERE
jbd2__journal_start
__ext4_journal_start_sb
ext4_dirty_inode
__mark_inode_dirty
update_time
touch_atime
sys_readlinkat
sys_readlink
system_call
__GI___readlink
get_link_name
gobble_file
print_dir
main
__libc_start_main
_startIs this going into mainline soon?
Mauro
Quoted 13 lines · Mauro Andreolini
Quoted 6 lines
/usr/lib/perl5/core_perl/CORE/hv_func.h:398:5: error: switch missing default case [-Werror=switch-default]
switch(bytes_in_carry){ /* how many bytes in carry */ ^
cc1: all warnings being treated as errors
make: *** [util/scripting-engines/trace-event-perl.o] Errore 1I solved this one by applying this:
https://lkml.org/lkml/2013/7/23/60Wow! Unwinding is noticeably faster than libunwind! The trace is almost perfect. I think I found only one unresolved symbol (it's always the same one, maybe I screwed up the compilation):
Quoted 5 lines
0.01% ls [kernel.kallsyms] [k] do_raw_read_unlock
|
--- do_raw_read_unlock
_raw_read_unlock
0xffffffffa0154479 <--- HEREhum, is there any symbol around that address?
you can check /proc/kallsyms or vmlinux file from debug package
Quoted 17 lines
jbd2__journal_start
__ext4_journal_start_sb
ext4_dirty_inode
__mark_inode_dirty
update_time
touch_atime
sys_readlinkat
sys_readlink
system_call
__GI___readlink
get_link_name
gobble_file
print_dir
main
__libc_start_main
_startQuoted 1 line
Is this going into mainline soon?
hopefully ;-) it's on review now..
thanks a lot for testing! please let us know any issues you spot
jirka
Quoted 11 lines
I think I found only one unresolved symbol (it's always the
Quoted 7 lines
same one, maybe I screwed up the compilation):
0.01% ls [kernel.kallsyms] [k] do_raw_read_unlock | --- do_raw_read_unlock _raw_read_unlock 0xffffffffa0154479 <--- HEREhum, is there any symbol around that address?
you can check/proc/kallsymsor vmlinux file from debug package
[Damn sorry for using my other e-mail account, I made a mistake]. /proc/kallsyms shows this:
ffffffffa01780c0 R crc16_table [crc16]ffffffffa0178000 T crc16 [crc16]ffffffffa0154000 start_this_handle [jbd2]ffffffffa01669e0 b __key.27934 [jbd2]
I guess it's in start_this_handle()?
Quoted 5 lines
Quoted 1 line
Is this going into mainline soon?
hopefully ;-) it's on review now..
thanks a lot for testing! please let us know any issues you spot
You welcome!
Mauro
Il giorno mer, 29/01/2014 alle 12.18 +0100, Jiri Olsa ha scritto:
Quoted 7 lines · Mauro Andreolini
Quoted 1 line
Hi all,
hi
Quoted 2 lines
No kallsyms or vmlinux with build-id
4c6ab941f31dde04c2a481430218994849927c8d was found
Quoted 1 line
Quoted 1 line
[ext4] with build id
4c6ab941f31dde04c2a481430218994849927c8dnot
found, continuing without symbols
Quoted 1 line
Quoted 1 line
No kallsyms or vmlinux with build-id
21f163b0a8a8b924efdd173b8f83ad723d378958 was found
Quoted 1 line
Quoted 1 line
[drm] with build id
21f163b0a8a8b924efdd173b8f83ad723d378958not
found, continuing without symbols
Quoted 1 line
Quoted 1 line
No kallsyms or vmlinux with build-id
d0bd7dd69886c2dccde18dee760b6d39cc0b5a55 was found[qxl] with build id d0bd7dd69886c2dccde18dee760b6d39cc0b5a55 not found, continuing without symbols
Quoted 1 line
Quoted 1 line
No kallsyms or vmlinux with build-id
8d13e6f0c4d4f8b4628c8c4bd6c660b0a00576df was found[ttm] with build id 8d13e6f0c4d4f8b4628c8c4bd6c660b0a00576df not found, continuing without symbols
Quoted 2 lines
hum, do you have kernel-debuginfo* packages installed?
Hi, thanks for your time. I am using Arch Linux, which does not provide separate -debuginfo packages as Fedora. However, I have compiled the kernel with debug-info and with frame pointers. Now I am not seeing those messages anymore. Sorry for that noise.
Quoted 25 lines
SNIP
Quoted 21 lines
Problem n.2: sometimes perf prints bogus callchains (in particular when the various
printf()variants are involved).|--1.46%-- 0xffffffffa048a275 | 0xffffffffa048c110 | 0xffffffffa04909e7 | | | |--80.00%-- 0xffffffffa0490afa | | 0xffffffffa048ee8b | | 0xffffffffa048ba8f | | bit_bmove | | fbcon_redraw_blit.isra.22 | | fbcon_scroll | | scrup | | lf | | do_con_trol | | do_con_write.part.18 | | con_write | | do_output_char | | n_tty_write
Quoted 8 lines
Quoted 8 lines
| | tty_write | | vfs_write | | sys_write | | system_call_fastpath | | __GI___libc_write | | | | | |--50.00%-- vfprintf | | | 0x0
<---HERE
Quoted 5 lines
Quoted 5 lines
| | | | | |--25.00%-- main | | | __libc_start_main | | | _start | | | 0x0
<---HERE
Quoted 2 lines
Quoted 2 lines
| | | | | --25.00%-- 0x7facc1df12a0
HERE
Quoted 11 lines
this one could be caused by:
http://marc.info/?l=linux-kernel&m=134934717011451&w=2
I never managed to push this change through.. need to revisit it ;-)if you want to try, I rebased the patch and put it in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
branch perf/rsp_fix1commit:
Quoted 2 lines
it still fixies some of the backtraces for me
Oh, thanks a lot. I will try this ASAP. Meanwhile, using the frame pointer
for kernel, libraries and executables works like a charm.
Thanks for your time.
Mauro