← Back to team overview

kernel-packages team mailing list archive

[Bug 1248289] Re: Missing libunwind support in perf

 

Presics + trusty lts kernel (3.13.0-27)

~$ sudo perf record -g dwarf -a
dwarf: No such file or directory

strace output:

11268 10647 execve("/usr/local/sbin/dwarf", ["dwarf", "-a"], [/* 28 vars */]) = -1 ENOENT (No such file or directory)
11269 10647 execve("/usr/local/bin/dwarf", ["dwarf", "-a"], [/* 28 vars */]) = -1 ENOENT (No such file or directory)
11270 10647 execve("/usr/sbin/dwarf", ["dwarf", "-a"], [/* 28 vars */]) = -1 ENOENT (No such file or directory)
11271 10647 execve("/usr/bin/dwarf", ["dwarf", "-a"], [/* 28 vars */]) = -1 ENOENT (No such file or directory)
11272 10647 execve("/sbin/dwarf", ["dwarf", "-a"], [/* 28 vars */]) = -1 ENOENT (No such file or directory)
11273 10647 execve("/bin/dwarf", ["dwarf", "-a"], [/* 28 vars */]) = -1 ENOENT (No such file or directory)
11274 10647 dup(2)                            = 4

can't find dwarf ?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1248289

Title:
  Missing libunwind support in perf

Status in “linux” package in Ubuntu:
  In Progress

Bug description:
  Hi,

  I'm trying to use perf's libunwind support in 13.04 with kernel
  3.11.0-12-generic on amd64.  Typically you can do this by using the
  "-g dwarf" flag, but it appears the perf command included in linux-
  tools-3.11.0-12-generic was not compiled with libunwind.  This may be
  as simple as the build machine didn't have libunwind installed.
  Having dwarf support in perf with default Ubuntu kernels would be very
  useful as it provides a way to get profiling information when
  -fomitframepointer is used.

  Relevant upstream code:

  https://github.com/torvalds/linux/blob/v3.11/tools/perf/Makefile#L459
  https://github.com/torvalds/linux/blob/v3.11/tools/perf/builtin-record.c#L758

  Let me know if I can provide any other information.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1248289/+subscriptions


Follow ups

References