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

Name:create_key_fields

Proto:static int create_key_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
4644  key_offset = 0 , n_vals = n_vals
4646  ret = -EINVAL
4648  fields_str = keys_str
4649  If Not fields_str Then Go to out
4652  When i < n_vals + TRACING_MAP_KEYS_MAX cycle
4653  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
4654  If Not field_str Then Break
4656  ret = create_key_field(hist_data, i, key_offset, file, field_str)
4658  If ret < 0 Then Go to out
4660  key_offset += ret
4662  If fields_str Then
4663  ret = -EINVAL
4664  Go to out
4666  ret = 0
4667  out :
4668  Return ret
Caller
NameDescribe
create_hist_fields