← Back to team overview

kernel-packages team mailing list archive

[Bug 1248289] Re: Missing libunwind support in perf


Hi Julian

Below is my test.

tacy@tacy:~$ sudo perf record --call-graph dwarf -a
callchain: Unknown --call-graph option value: dwarf

 usage: perf record [<options>] [<command>]
    or: perf record [<options>] -- <command> [<options>]

        --call-graph <mode[,dump_size]>
                          setup and enables call-graph (stack chain/backtrace) recording: fp
tacy@tacy:~$ uname -a
Linux tacy 3.13.0-27-generic #50~precise1-Ubuntu SMP Fri May 16 20:47:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

tacy@tacy:~$ cd -
tacy@tacy:~/linux-lts-trusty-3.13.0/tools/perf$ sudo ./perf record --call-graph dwarf -a
^C[ perf record: Woken up 63 times to write data ]
[ perf record: Captured and wrote 17.352 MB perf.data (~758127 samples) ]

tacy@tacy:~/linux-lts-trusty-3.13.0/tools/perf$ ./perf --version
perf version 3.13.11
tacy@tacy:~/linux-lts-trusty-3.13.0/tools/perf$ perf --version
perf version 3.13.11

Yes,  After manually compiling can support, but default perf don't

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  Missing libunwind support in perf

Status in “linux” package in Ubuntu:
  In Progress

Bug description:

  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:


  Let me know if I can provide any other information.

To manage notifications about this bug go to: