函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This gets called in a loop recording the time it took to write* the tracepoint

函数原型:static void trace_do_benchmark(void)

返回类型:void

参数:

46  std等于0
49  如果非trace_benchmark_event_enabled()或非racing_is_on - show state of ring buffers enabled则返回
52  禁止中断()
53  start等于race_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.
54  trace_benchmark_event(bm_str)
55  stop等于race_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.
56  开中断()
58  bm_cnt自加
60  delta等于stopstart
66  如果bm_cnt恒等于1则
67  bm_first等于delta
68  格式化输出字符串
70  返回
73  bm_last等于delta
75  如果delta大于bm_maxbm_max等于delta
77  如果非bm_mindelta小于bm_minbm_min等于delta
85  如果bm_cnt大于UINT_MAX
86  格式化输出字符串
89  返回
92  bm_total加等于delta
93  bm_totalsq加等于deltadelta
96  如果bm_cnt大于1则
101  stddev等于bm_cntbm_totalsqbm_totalbm_total
102  do_div() is NOT a C function(stddev, (u32)bm_cnt)
103  do_div() is NOT a C function(stddev, (u32)bm_cnt - 1)
104  否则stddev等于0
107  delta等于bm_total
108  do_div() is NOT a C function(delta, bm_cnt)
109  avg等于delta
111  如果stddev大于0则
112  i等于0
124  seed等于avg
125  循环
126  last_seed等于seed
127  seed等于stddev
128  如果非last_seed退出
131  seed加等于last_seed
133 i自加小于10且last_seed不等于seed循环
135  std等于seed
138  格式化输出字符串
142  bm_std等于std
143  bm_avg等于avg
144  bm_stddev等于stddev
调用者
名称描述
benchmark_event_kthread