Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-28 12:29:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hist_field_name

Proto:static const char *hist_field_name(struct hist_field *field, unsigned int level)

Type:char

Parameter:

TypeParameterName
struct hist_field *field
unsigned intlevel
1967  field_name = ""
1969  If level > 1 Then Return field_name
1972  If field Then field_name = name
1974  Else if flags & HIST_FIELD_FL_LOG2 || flags & HIST_FIELD_FL_ALIAS Then field_name = hist_field_name(operands[0], ++level)
1977  Else if flags & HIST_FIELD_FL_CPU Then field_name = "cpu"
1979  Else if flags & HIST_FIELD_FL_EXPR || flags & HIST_FIELD_FL_VAR_REF Then
1981  If system Then
1985  strcat(full_name, ".")
1987  strcat(full_name, ".")
1990  Else field_name = * The name field is used for EXPR and VAR_REF fields. VAR * fields contain the variable name in var.name.
1992  Else if flags & HIST_FIELD_FL_TIMESTAMP Then field_name = "common_timestamp"
1995  If (field_name == NULL) Then field_name = ""
1998  Return field_name
Caller
NameDescribe
hist_field_name
expr_field_str
create_sort_keys
hist_trigger_print_key
hist_trigger_entry_print
hist_field_print