<div dir="ltr"><div><div class="gmail-post-text">

<p>Hi,<br></p><p>I am sampling Linux kernel using perf&#39;s perf_event_open functionality. The instruction pointers(IP) associated with PEBS events(PERF_RECORD_MISC_KERNEL), cannot be mapped back to kernel source code using addr2line while events generated from user-space (PERF_RECORD_MISC_USER) can be mapped back to application code.</p>

<p>I am using appropriate vmlinux for kernel code attribution. Samples collected from existing perf tool can attribute to the kernel code. addr2line also works for those samples collected using perf tool. My question is why samples collected using perf_event_open fails to attribute to kernel code. Do I need to prepare the samples otherwise for the attribution?</p>
    </div><br clear="all"><br></div>Thanks,<br><div><div class="gmail_signature"><div style="margin:0in 0in 10pt"><font size="3"><font face="Calibri">Probir</font></font><br></div></div>
</div></div>