Em Wed, Jul 31, 2013 at 11:58:20AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Jul 31, 2013 at 12:13:50AM +0300, Adrian Hunter escreveu: > > Using the information in mmap events, perf tools can read object > > code associated with sampled addresses. A test is added that > > compares bytes read by perf with the same bytes read using > > objdump. > > investigating... > > (gdb) run test 21 > Starting program: /root/bin/perf test 21 > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib64/libthread_db.so.1". > 21: Test object code reading : > Program received signal SIGSEGV, Segmentation fault. > 0x000000000045a2d3 in xyarray__entry (xy=0x0, x=0, y=0) at util/xyarray.h:17 > 17 return &xy->contents[x * xy->row_size + y * xy->entry_size]; Still investigating, but the attached patch is needed to handle such failure cases: [root@zoo ~]# perf test 21 21: Test object code reading : FAILED! [root@zoo ~]# perf test -v 21 21: Test object code reading : --- start --- Looking at the vmlinux_path (6 entries long) symsrc__init: cannot get elf header. Using /lib/modules/3.11.0-rc2+/build/vmlinux for symbols Parsing event 'cycles' Parsing event 'cycles:u' perf_evlist__open failed ---- end ---- Test object code reading: FAILED! [root@zoo ~]# - Arnaldo