函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_clock_global

函数原型:u64 notrace trace_clock_global(void)

返回类型:u64

参数:

100  raw_local_irq_save(flags)
102  this_cpu等于These macros fold the SMP functionality into a single CPU system()
103  now等于sched_clock_cpu(this_cpu)
108  如果此条件成立可能性小(为编译器优化)(in_nmi())则转到:out
111  r sched/core.c and kernel_lock.c: ( & lock)
118  如果nowprev_time小于0则now等于prev_time加1
121  prev_time等于now
123  arch_spin_unlock( & lock)
125  out :
126  raw_local_irq_restore(flags)
128  返回:now