/* * Do not use outside of architecture code which knows its limitations. * * sched_clock() has no promise of monotonicity or bounded drift between * CPUs, use (which you should not) requires disabling IRQs. * * Please use one of the three interfaces below.
*/ extern u64 sched_clock(void);
/* * When sched_clock_stable(), __sched_clock_offset provides the offset * between local_clock() and sched_clock().
*/ extern u64 __sched_clock_offset;
/* * As outlined in clock.c, provides a fast, high resolution, nanosecond * time source that is monotonic per cpu argument and has bounded drift * between cpus. * * ######################### BIG FAT WARNING ########################## * # when comparing cpu_clock(i) to cpu_clock(j) for i != j, time can # * # go backwards !! # * ####################################################################
*/ staticinline u64 cpu_clock(int cpu)
{ return sched_clock_cpu(cpu);
}
#ifdef CONFIG_IRQ_TIME_ACCOUNTING /* * An i/f to runtime opt-in for irq time accounting based off of sched_clock. * The reason for this explicit opt-in is not to have perf penalty with * slow sched_clocks.
*/ externvoid enable_sched_clock_irqtime(void); externvoid disable_sched_clock_irqtime(void); #else staticinlinevoid enable_sched_clock_irqtime(void) {} staticinlinevoid disable_sched_clock_irqtime(void) {} #endif
#endif/* _LINUX_SCHED_CLOCK_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.