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

Name:create_val_fields

Proto:static int create_val_fields(struct hist_trigger_data *hist_data, struct trace_event_file *file)

Type:int

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
struct trace_event_file *file
4547  j = 1
4550  ret = create_hitcount_val(hist_data)
4551  If ret Then Go to out
4554  fields_str = vals_str
4555  If Not fields_str Then Go to out
4558  When i < TRACING_MAP_VALS_MAX && j < TRACING_MAP_VALS_MAX cycle
4560  field_str = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function
4561  If Not field_str Then Break
4564  If strcmp(field_str, "hitcount") == 0 Then Continue
4567  ret = create_val_field(hist_data, j++, file, field_str)
4568  If ret Then Go to out
4572  If fields_str && strcmp(fields_str, "hitcount") != 0 Then ret = -EINVAL
4574  out :
4575  Return ret
Caller
NameDescribe
create_hist_fields