函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\sched_clock.c Create Date:2022-07-27 11:51:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sched_clock

函数原型:unsigned long long notrace sched_clock(void)

返回类型:unsigned long long

参数:

102  循环
103  seq等于aw_read_seqcount - Read the raw seqcount*@s: pointer to seqcount_t* Returns: count to be passed to read_seqcount_retry* raw_read_seqcount opens a read critical section of the given* seqcount without any lockdep checking and without checking or
104  rd等于read_dataseq按位与1的值
106  cyc等于read_sched_clock()减epoch_cyc按位与sched_clock_mask
108  res等于epoch_nscyc_to_ns(cyc, mult, shift)
109 ad_seqcount_retry - end a seq-read critical section*@s: pointer to seqcount_t*@start: count, from read_seqcount_begin* Returns: 1 if retry is required, else 0* read_seqcount_retry closes a read critical section of the given seqcount循环
111  返回:res
调用者
名称描述
nmi_handle
tsc_save_sched_clock_state
tsc_restore_sched_clock_stateEven on processors with invariant TSC, TSC gets reset in some the* ACPI system sleep states. And in some systems BIOS seem to reinit TSC to* arbitrary value (still sync'd across cpu's) during resume from such sleep* states
sched_clock_cpu
sched_debug_header
group_init
psi_avgs_work
psi_poll_work
psi_show
trace_clock_localrace_clock_local(): the simplest and least coherent tracing clock.* Useful for tracing that does not cross to other CPUs nor* does it go through idle events.
__bpf_prog_enterThe logic is similar to BPF_PROG_RUN, but with explicit rcu and preempt that* are needed for trampoline. The macro is split into* call _bpf_prog_enter* call prog->bpf_func* call __bpf_prog_exit
__bpf_prog_exit
cpu_clock
local_clock