kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #64253
[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 -
/home/tacy/linux-lts-trusty-3.13.0/tools/perf
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
support.
--
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
References