[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question using get_cycles for function breakdown



Hi

> This function usually sleeps a couple of times, so it may change cpu.
> If get_cycles is called the first time (function start) on one cpu and the
> second one on another one, will this difference of get_cycle values be
> meaningful?

IMHO, they are getting the same "jiffies" variable (or TSC?) I guess
and they are not something per-CPU defined. So, yes you still should
get  meaningful output.

regards,

Mulyadi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ