mapping perf sample events(PEBS) to kernel code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am sampling Linux kernel using perf'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.

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?



Thanks,
Probir
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux