lkml.org 
[lkml]   [2016]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC] perf record: missing buildid for callstack modules -- again
Date
Hi folks!

As mentioned by this discussion https://lkml.org/lkml/2016/1/7/661, perf
does not record the build id for modules, which are hit on the way down
the callstack.
Sadly that issue is not completely fixed by the cmd argument --buildid-all.
In my case, I have my own kernel module starting a kernel thread. It
does some stuff, and calls schedule from time to time.
If I start perf like this

perf record -e sched:sched_stat_sleep -e sched:sched_switch -a -g -o
perf.data.raw -p <pid> -- sleep 10

, it records the callstacks for those three events.
Afterwards I want to do some post processing to generate a cold graph:

perf inject -v -s -i perf.data.raw -o perf.data

That step fails ('failed to write feature 2') due to the lack of a
build-id for my module, which isn't included in perf.data.raw.

Can anyone confirm that this is a bug?
Does anyone have a workaround for it?

Thanks in advance!

Cheers,
Alex

P.S.: Pls put me in CC, because I'm not subscribed to the mailinglist.
--
Technische Universität Dortmund
Alexander Lochmann PGP key: 0xBC3EF6FD
Otto-Hahn-Str. 16 phone: +49.231.7556141
D-44227 Dortmund fax: +49.231.7556116
http://ess.cs.tu-dortmund.de/Staff/al

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-06-25 19:21    [W:0.029 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site