Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linuxtools-dev] Howto make perf probe work

>HI,
>Please enable kprobe_event config option in the kernel and build the same
>and boot the board using it. Then please try to add event using perf probe
>command
 
Thanks very much for your reply, and I already enable DEBUG_KPROBE_EVENT in kernel.
I did success in "perf probe handle_mm_fault".
 
But when i want to to "perf probe" other Kernel symbol, such as do_page_fault.
I came across other problems:
Added new event:
Failed to write event: Invalid argument
Error: Failed to add events. (-1)
And when i type perf probe page_fault_entry:
Kernel symbol 'page_fault_entry' not found.
Error: Failed to add events. (-2)
Please notice that "do_page_fault" and "page_fault_entry" are all Kernel symbols, which canbe find in  "/proc/kallsyms", but not recorgonized by perf (or even kprobe).
Any idea for that?
 
Best,
Chen
 
>>On Sun, Mar 31, 2013 at 11:00 PM, OSDepend <osdepend@xxxxxxxxx> wrote:
>>Hi all,
>>        Is there any way to use perf probe to add new tracepoint like pagefault enter/exit?
>>        When I type perf probe fault:10
>>       I always get the error as follow:
>>                Debuginfo-analysis is not supported.
>>                Error: Failed to add events. (-38)
>>        What exactly i miss to get the perf probe work correctly?
>>Best,
>>Chen

Back to the top