Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\sched_clock.c Create Date:2022-07-28 10:51:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sched_clock

Proto:unsigned long long notrace sched_clock(void)

Type:unsigned long long

Parameter:Nothing

102  Do
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_data + (seq & 1)
106  cyc = read_sched_clock() - epoch_cyc & sched_clock_mask
108  res = epoch_ns + cyc_to_ns(cyc, mult, shift)
109  When 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 cycle
111  Return res
Caller
NameDescribe
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