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

Name:parse_action

Proto:static int parse_action(char *str, struct hist_trigger_attrs *attrs)

Type:int

Parameter:

TypeParameterName
char *str
struct hist_trigger_attrs *attrs
2077  ret = -EINVAL
2079  If n_actions >= HIST_ACTIONS_MAX Then Return ret
2082  If str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to || str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to || str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to Then
2085  action_str[n_actions] = kstrdup(str, GFP_KERNEL)
2086  If Not action_str[n_actions] Then
2087  ret = -ENOMEM
2088  Return ret
2090  n_actions++
2091  ret = 0
2093  Return ret
Caller
NameDescribe
parse_hist_trigger_attrs