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:31:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:find_synthetic_field_var

Proto:static struct hist_field *find_synthetic_field_var(struct hist_trigger_data *target_hist_data, char *system, char *event_name, char *field_name)

Type:struct hist_field

Parameter:

TypeParameterName
struct hist_trigger_data *target_hist_data
char *system
char *event_name
char *field_name
3246  synthetic_name = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
3247  If Not synthetic_name Then Return ERR_PTR( - ENOMEM)
3250  strcpy(synthetic_name, "synthetic_")
3251  strcat(synthetic_name, field_name)
3253  event_var = find_event_var(target_hist_data, system, event_name, synthetic_name)
3255  kfree(synthetic_name)
3257  Return event_var
Caller
NameDescribe
create_field_var_histreate_field_var_hist - Automatically create a histogram and var for a field*@target_hist_data: The target hist trigger*@subsys_name: Optional subsystem name*@event_name: Optional event name*@field_name: The name of the field (and the resulting variable)*