Re: Question using get_cycles for function breakdown

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

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux