Hi,
> > Or How can i add a exit tracepoint for handle_mm_fault()? so I can
> > calculate the latency of that fault handle function?
> Try "perf probe -a entry=handle_mm_fault -a exit=handle_mm_fault%return"
That's works nicely for me!
Thanks a lot!!
> On Tue, 2 Apr 2013 17:11:01 +0800,
> >> For some reason, do_page_fault() is marked as __kprobe on some arch
> >> which means it cannot be probed.
> >
> > My kernel is runing on X86_64 arch, is there any chance for me to get the
> > do_page_fault() entry/exit work?
> nope, AFAIK.
Is there any guide for us to decide which tracepoint (or other kernel symbol)
canbe used, and which cannot?
For some of the kallsyms cannot be used directly. Such as do_raw_spin_lock.
perf probe -a test=do_raw_spin_lock
Fatal: Kernel symbol 'do_raw_spin_lock' not found - probe not added.
Best,
Chen
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html