[lkml]   [2017]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectProcess context of perf sample from interrupt handler

I'm writing a Linux kernel module that uses debug-register to sample
Linux kernel using perf interface "register_wide_hw_breakpoint". I am
interested to get the "callchain" of the process context at the sample
handler. For this I have set PERF_SAMPLE_CALLCHAIN as a sample type.

One issue is that the associated instruction pointer(IP) and
callchain(perf_callchain) of the samples belongs to nmi context rather
than process context. How can I collect the information associated
with process context rather than nmi context? Previously, I have done
sampling from user-space which gave me correct callchain. But I cannot
make it work from kernel space. Any help would be appreciated.


 \ /
  Last update: 2017-10-04 15:54    [W:0.015 / U:1.716 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site