Hi, there was a question on the performance call today about how to use dwarf symbols in perf. Roughly:

1) Make sure during the kernel/perf compile that libunwind is used. This can be tricky depending on how you build the kernel, but theoretically should work.

2) invoke perf using something like:

"perf record -g dwarf -F 100 -a"

This tells perf to use dwarf symbols but limit the sampling rate. perf can generate a *lot* of data with dwarf symbols and default sampling.

3) Look at results in perf report as normal.

4) Profit!

Theoretically if you have frame pointers enabled when you compile ceph you should get good symbol resolution without dwarf but I've never gotten it to work well. Perf+Dwarf seems to give much better symbol resolution than anything else I've tried with Ceph. There's some new LBR functionality for profiling on Haswell in perf that might work too, but I haven't tried it:

https://lkml.org/lkml/2014/10/19/166

Mark
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to