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

Name:track_data_parse

Proto:static struct action_data *track_data_parse(struct hist_trigger_data *hist_data, char *str, enum handler_id handler)

Type:struct action_data

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
char *str
enum handler_idhandler
4079  ret = -EINVAL
4082  data = 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).
4083  If Not data Then Return ERR_PTR( - ENOMEM)
4086  var_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
4087  If Not var_str || Not str Then
4088  ret = -EINVAL
4089  Go to free
4092  var_str = kstrdup(var_str, GFP_KERNEL)
4093  If Not var_str Then
4094  ret = -ENOMEM
4095  Go to free
4098  ret = action_parse(tr, str, data, handler)
4099  If ret Then Go to free
4101  out :
4102  Return data
4103  free :
4104  track_data_destroy(hist_data, data)
4105  data = ERR_PTR(ret)
4106  Go to out
Caller
NameDescribe
parse_actions