Re: KPROBES: Instrumenting a function's call site

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ananth N Mavinakayanahalli <ananth@...>
Cc: Avishay Traeger <atraeger@...>, <prasanna@...>, <anil.s.keshavamurthy@...>, <davem@...>, <linux-kernel@...>
Date: Wednesday, September 26, 2007 - 1:28 pm

On Wed, Sep 26, 2007 at 10:09:33AM +0530, Ananth N Mavinakayanahalli wrote:

So what you are really measuring is the latency of just that single 
instruction where you have inserted the probe i.e. because your
pre-handler is called just before the probed instruction is executed and
your post-handler is called right after you probed instruction is single-stepped.

When you insert a probe, you are inserting  probe on an instruction boundary
and not at function level.

Hence the above looks like

pre-handler()
Probed-instruction; // most likely the first instruction in the foo();
post-hanlder()
rest-of-foo()

As I mentioned above what you are seeing is the latency of just the
probed instruction and hence it is very very low compared to
the latency of the function foo().

I agree with Ananth, you can try the below approaches
for your measurements.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
KPROBES: Instrumenting a function's call site, Avishay Traeger, (Tue Sep 25, 6:12 pm)
Re: KPROBES: Instrumenting a function's call site, Abhishek Sagar, (Wed Sep 26, 12:37 pm)
Re: KPROBES: Instrumenting a function's call site, Ananth N Mavinakayanahalli..., (Wed Sep 26, 12:39 am)
Re: KPROBES: Instrumenting a function's call site, Avishay Traeger, (Thu Nov 8, 3:42 pm)
Re: KPROBES: Instrumenting a function's call site, Ananth N Mavinakayanahalli..., (Mon Nov 12, 6:27 am)
Re: KPROBES: Instrumenting a function's call site, Keshavamurthy, Anil S, (Wed Sep 26, 1:28 pm)
Re: KPROBES: Instrumenting a function's call site, Avishay Traeger, (Wed Sep 26, 1:37 pm)
Re: KPROBES: Instrumenting a function's call site, Abhishek Sagar, (Wed Sep 26, 12:52 pm)
Re: KPROBES: Instrumenting a function's call site, Ananth N Mavinakayanahalli..., (Wed Sep 26, 5:03 am)
Re: KPROBES: Instrumenting a function's call site, Avishay Traeger, (Wed Sep 26, 12:09 pm)
Re: KPROBES: Instrumenting a function's call site, Ananth N Mavinakayanahalli..., (Wed Sep 26, 1:27 pm)
Re: KPROBES: Instrumenting a function's call site, Avishay Traeger, (Wed Sep 26, 1:35 pm)