函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-27 13:38:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:parse_assignment

函数原型:static int parse_assignment(struct trace_array *tr, char *str, struct hist_trigger_attrs *attrs)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
char *str
struct hist_trigger_attrs *attrs
2099  ret等于0
2101  如果len等于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 len等于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
2103  keys_str等于kstrdup(str + len, GFP_KERNEL)
2104  如果非keys_str
2105  ret等于负ENOMEM
2106  转到:out
2108  否则如果len等于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 len等于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 len等于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
2111  vals_str等于kstrdup(str + len, GFP_KERNEL)
2112  如果非vals_str
2113  ret等于负ENOMEM
2114  转到:out
2116  否则如果len等于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
2117  sort_key_str等于kstrdup(str + len, GFP_KERNEL)
2118  如果非sort_key_str
2119  ret等于负ENOMEM
2120  转到:out
2122  否则如果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
2123  name等于kstrdup(str, GFP_KERNEL)
2124  如果非name
2125  ret等于负ENOMEM
2126  转到:out
2128  否则如果len等于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
2129  str加等于len
2131  str等于strstrip(str)
2132  clock等于kstrdup(str, GFP_KERNEL)
2133  如果非clock
2134  ret等于负ENOMEM
2135  转到:out
2137  否则如果len等于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
2138  map_bits等于parse_map_size(str + len)
2140  如果map_bits小于0则
2141  ret等于map_bits
2142  转到:out
2144  map_bits等于map_bits
2145  否则
2148  如果n_assignments恒等于TRACING_MAP_VARS_MAX
2150  ret等于负EINVAL
2151  转到:out
2154  assignment等于kstrdup(str, GFP_KERNEL)
2155  如果非assignment
2156  ret等于负ENOMEM
2157  转到:out
2160  assignment_str[n_assignments++]等于assignment
2162  out :
2163  返回:ret
调用者
名称描述
parse_hist_trigger_attrs