函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:track_data_print

函数原型:static void track_data_print(struct seq_file *m, struct hist_trigger_data *hist_data, struct tracing_map_elt *elt, struct action_data *data)

返回类型:void

参数:

类型参数名称
struct seq_file *m
struct hist_trigger_data *hist_data
struct tracing_map_elt *elt
struct action_data *data
3789  track_val等于get_track_val(hist_data, elt, data)
3792  如果handler恒等于HANDLER_ONMAXseq_printf(m, "\n\tmax: %10llu", track_val)
3794  否则如果handler恒等于HANDLER_ONCHANGEseq_printf(m, "\n\tchanged: %10llu", track_val)
3797  如果action恒等于ACTION_SNAPSHOT则返回
3800 i小于n_save_vars循环
3801  save_val等于val
3802  save_var等于var
3805  save_var_idx等于idx
3807  val等于racing_map_read_var - Return the value of a tracing_map_elt's variable field*@elt: The tracing_map_elt*@i: The index of the given variable associated with the tracing_map_elt* Retrieve the value of the variable i associated with the specified
3809  如果flags按位与HIST_FIELD_FL_STRING
3810  seq_printf(m, " %s: %-32s", name, (char * )(uintptr_t)(val))
3812  否则seq_printf(m, " %s: %10llu", name, val)
调用者
名称描述
print_actions