Messages in this thread | | | Date | Wed, 30 Apr 2008 18:06:11 +0200 | From | Andi Kleen <> | Subject | Re: [patch] x86, ptrace: in-kernel BTS interface |
| |
> > >I'm not quite sure on the kernel interface. How would a in kernel > >subsystem use it for tracing itself for example? > > The task parameter would be current. > > Apart from that, you would use it the same way it is used in > arch/x86/kernel/ptrace.c.
Hmm, sounds a little too complicated. Surely that could be easier?
> > You would want to bts_configure() it to disable tracing before you start > reading your own BTS buffer.
I would suggest to write a simple example and put it with some overview into Documentation
-Andi
| |