/Linux-v6.6/include/linux/sched/ |
D | clock.h | 15 extern u64 sched_clock(void); 22 return sched_clock(); in sched_clock_noinstr() 54 return sched_clock(); in cpu_clock() 64 return sched_clock(); in local_clock()
|
/Linux-v6.6/Documentation/timers/ |
D | timekeeping.rst | 2 Clock sources, Clock events, sched_clock() and delay timers 12 architecture-specific overrides of the sched_clock() function and some 18 sched_clock() is used for scheduling and timestamping, and delay timers 108 sched_clock() 112 function in the kernel called sched_clock(). This function shall return the 114 may not provide an implementation of sched_clock() on its own. If a local 116 sched_clock(). 118 As the name suggests, sched_clock() is used for scheduling the system, 123 Compared to clock sources, sched_clock() has to be very fast: it is called 126 for speed in sched_clock(). It however requires some of the same basic [all …]
|
/Linux-v6.6/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 251 t0 = sched_clock(); 253 t1 = sched_clock(); 255 t2 = sched_clock(); 260 t0 = sched_clock(); 262 t1 = sched_clock(); 264 t2 = sched_clock();
|
/Linux-v6.6/kernel/sched/ |
D | clock.c | 62 notrace unsigned long long __weak sched_clock(void) in sched_clock() function 67 EXPORT_SYMBOL_GPL(sched_clock); 114 scd->tick_raw = sched_clock(); in __scd_stamp() 394 return sched_clock() + __sched_clock_offset; in sched_clock_cpu() 397 return sched_clock(); in sched_clock_cpu() 489 return sched_clock(); in sched_clock_cpu()
|
D | psi.c | 186 group->avg_last_update = sched_clock(); in group_init() 576 now = sched_clock(); in psi_avgs_work() 648 now = sched_clock(); in psi_rtpoll_work() 1244 now = sched_clock(); in psi_show() 1334 window_reset(&t->win, sched_clock(), in psi_trigger_create()
|
D | cputime.c | 656 clock = sched_clock(); in vtime_delta() 805 vtime->starttime = sched_clock(); in vtime_task_switch_generic() 818 vtime->starttime = sched_clock(); in vtime_init_idle()
|
/Linux-v6.6/kernel/locking/ |
D | qspinlock_stat.h | 110 u64 start = sched_clock(); in __pv_kick() 114 this_cpu_add(EVENT_COUNT(pv_latency_kick), sched_clock() - start); in __pv_kick() 128 sched_clock() - *pkick_time); in __pv_wait()
|
/Linux-v6.6/drivers/clocksource/ |
D | hyperv_timer.c | 501 static __always_inline void hv_setup_sched_clock(void *sched_clock) in hv_setup_sched_clock() argument 508 sched_clock_register(sched_clock, 64, NSEC_PER_SEC); in hv_setup_sched_clock() 511 static __always_inline void hv_setup_sched_clock(void *sched_clock) in hv_setup_sched_clock() argument 514 paravirt_set_sched_clock(sched_clock); in hv_setup_sched_clock() 517 static __always_inline void hv_setup_sched_clock(void *sched_clock) {} in hv_setup_sched_clock() argument
|
/Linux-v6.6/arch/arm/mach-omap2/ |
D | pm-debug.c | 60 t = sched_clock(); in pm_dbg_update_time() 180 t = sched_clock(); in pwrdms_setup()
|
/Linux-v6.6/arch/m68k/coldfire/ |
D | dma_timer.c | 77 unsigned long long sched_clock(void) in sched_clock() function
|
/Linux-v6.6/kernel/trace/ |
D | trace_clock.c | 42 clock = sched_clock(); in trace_clock_local()
|
/Linux-v6.6/arch/powerpc/lib/ |
D | qspinlock.c | 65 u64 delta = sched_clock() - seen; in recently_sleepy() 238 this_cpu_write(sleepy_lock_seen_clock, sched_clock()); in seen_sleepy_owner() 247 this_cpu_write(sleepy_lock_seen_clock, sched_clock()); in seen_sleepy_lock() 254 this_cpu_write(sleepy_lock_seen_clock, sched_clock()); in seen_sleepy_node()
|
/Linux-v6.6/kernel/time/ |
D | Makefile | 17 obj-$(CONFIG_GENERIC_SCHED_CLOCK) += sched_clock.o
|
D | sched_clock.c | 101 unsigned long long notrace sched_clock(void) in sched_clock() function
|
/Linux-v6.6/arch/mips/cavium-octeon/ |
D | csrc-octeon.c | 114 unsigned long long notrace sched_clock(void) in sched_clock() function
|
/Linux-v6.6/arch/x86/kernel/ |
D | nmi.c | 148 delta = sched_clock(); in nmi_handle() 151 delta = sched_clock() - delta; in nmi_handle()
|
D | tsc.c | 279 notrace u64 sched_clock(void) in sched_clock() function 961 cyc2ns_suspend = sched_clock(); in tsc_save_sched_clock_state() 992 offset = cyc2ns_suspend - sched_clock(); in tsc_restore_sched_clock_state()
|
/Linux-v6.6/arch/microblaze/kernel/ |
D | timer.c | 212 timecounter_init(&xilinx_tc, &xilinx_cc, sched_clock()); in init_xilinx_timecounter()
|
/Linux-v6.6/sound/soc/mediatek/common/ |
D | mtk-btcvsd.c | 649 t1 = sched_clock(); in wait_for_bt_irq() 660 t2 = sched_clock(); in wait_for_bt_irq() 764 bt->rx->time_stamp = sched_clock(); in mtk_btcvsd_snd_read() 788 bt->tx->time_stamp = sched_clock(); in mtk_btcvsd_snd_write()
|
/Linux-v6.6/arch/s390/kernel/ |
D | time.c | 113 unsigned long long notrace sched_clock(void) in sched_clock() function 117 NOKPROBE_SYMBOL(sched_clock);
|
/Linux-v6.6/drivers/perf/ |
D | arm_pmu.c | 435 start_clock = sched_clock(); in armpmu_dispatch_irq() 437 finish_clock = sched_clock(); in armpmu_dispatch_irq()
|
/Linux-v6.6/kernel/ |
D | smp.c | 232 ts2 = sched_clock(); in csd_lock_wait_toolong() 284 ts1 = ts0 = sched_clock(); in __csd_lock_wait()
|
/Linux-v6.6/drivers/acpi/apei/ |
D | ghes.c | 751 now = sched_clock(); in ghes_estatus_cached() 786 cache->time_in = sched_clock(); in ghes_estatus_cache_alloc() 816 now = sched_clock(); in ghes_estatus_cache_add()
|
/Linux-v6.6/arch/arm/probes/kprobes/ |
D | test-core.c | 508 t0 = sched_clock(); in benchmark() 511 t = sched_clock() - t0; in benchmark()
|
/Linux-v6.6/kernel/bpf/ |
D | trampoline.c | 828 start = sched_clock(); in bpf_prog_start_time() 880 u64_stats_add(&stats->nsecs, sched_clock() - start); in update_prog_stats()
|