Re: [PATCH 1/2] tracing/function-return-tracer: Make the function return tracer lockless

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frédéric Weisbecker
Date: Thursday, November 13, 2008 - 1:50 am

2008/11/12 Ingo Molnar <mingo@elte.hu>:


BTW I'm wondering about consistency in time capturing.
When I look into kernel/sched_clock.c I see this in introduction:

"The clock: sched_clock_cpu() is monotonic per cpu, and should be somewhat
consistent between cpus (never more than 2 jiffies difference)."

Two Jiffies, that could result in a lot of inconsistency in the way of
nanosec capturing. The current task
can be preempted between the call time and the return time and I'm
doing a cpu_clock(raw_smp_processor_id)
on these two times.
Should I keep the same processor_id for these two captures? But what
would happen if this cpu is shut
down between these two times?
One other solution would be to plan time capture in usec but I would
mostly lose the interest of function cost measuring....

What do you think?
Thanks.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] tracing/function-return-tracer: Make the funct ..., Frederic Weisbecker, (Wed Nov 12, 2:47 pm)
Re: [PATCH 1/2] tracing/function-return-tracer: Make the f ..., Frédéric Weisbecker, (Thu Nov 13, 1:50 am)
Re: [PATCH 1/2] tracing/function-return-tracer: Make the f ..., Frédéric Weisbecker, (Thu Nov 13, 2:16 am)
Re: [PATCH 1/2] tracing/function-return-tracer: Make the f ..., Frédéric Weisbecker, (Thu Nov 13, 2:27 am)
Re: [PATCH 1/2] tracing/function-return-tracer: Make the f ..., Frédéric Weisbecker, (Thu Nov 13, 5:36 am)
Re: [PATCH 1/2] tracing/function-return-tracer: Make the f ..., Frédéric Weisbecker, (Thu Nov 13, 10:01 am)
Re: [PATCH 1/2] tracing/function-return-tracer: Make the f ..., Frédéric Weisbecker, (Thu Nov 13, 10:26 am)
Re: [PATCH 1/2] tracing/function-return-tracer: Make the f ..., Frédéric Weisbecker, (Thu Nov 13, 10:46 am)
Re: [PATCH 1/2] tracing/function-return-tracer: Make the f ..., Frédéric Weisbecker, (Thu Nov 13, 1:06 pm)