From mboxrd@z Thu Jan 1 00:00:00 1970 From: OSDepend Subject: Re: Howto make perf probe work Date: Mon, 1 Apr 2013 23:20:31 +0800 Message-ID: <201304012320294652937@gmail.com> References: <201304010130139026692@gmail.com>, Reply-To: Linux Tools developer discussions Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4135655280669384524==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxtools-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org Sender: linuxtools-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org To: nelakurthi koteswararao , linux-perf-users Cc: linuxtools-dev List-Id: linux-perf-users.vger.kernel.org This is a multi-part message in MIME format. --===============4135655280669384524== Content-Type: multipart/alternative; boundary="=====003_Dragon155122461082_=====" This is a multi-part message in MIME format. --=====003_Dragon155122461082_===== Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit >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 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 --=====003_Dragon155122461082_===== Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit
>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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
--=====003_Dragon155122461082_=====-- --===============4135655280669384524== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4135655280669384524==--