函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hist_field_name

函数原型:static const char *hist_field_name(struct hist_field *field, unsigned int level)

返回类型:char

参数:

类型参数名称
struct hist_field *field
unsigned intlevel
1967  field_name等于""
1969  如果level大于1则返回:field_name
1972  如果fieldfield_name等于name
1974  否则如果flags按位与HIST_FIELD_FL_LOG2flags按位与HIST_FIELD_FL_ALIASfield_name等于hist_field_name(operands[0], ++level)
1977  否则如果flags按位与HIST_FIELD_FL_CPUfield_name等于"cpu"
1979  否则如果flags按位与HIST_FIELD_FL_EXPRflags按位与HIST_FIELD_FL_VAR_REF
1981  如果system
1985  strcat(full_name, ".")
1987  strcat(full_name, ".")
1989  field_name等于full_name
1990  否则field_name等于* The name field is used for EXPR and VAR_REF fields. VAR * fields contain the variable name in var.name.
1992  否则如果flags按位与HIST_FIELD_FL_TIMESTAMPfield_name等于"common_timestamp"
1995  如果(field_name == NULL)则field_name等于""
1998  返回:field_name
调用者
名称描述
hist_field_name
expr_field_str
create_sort_keys
hist_trigger_print_key
hist_trigger_entry_print
hist_field_print