函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_set_options

函数原型:static int trace_set_options(struct trace_array *tr, char *option)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
char *option
4748  neg等于0
4750  orig_len等于strlen - Find the length of a string*@s: The string to be sized
4753  cmp等于strstrip(option)
4755  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
4756  如果lenneg等于1
4759  cmp加等于len
4761  mutex_lock( & event_mutex)
4762  mutex_lock( & race_types_lock is used to protect the trace_types list.)
4764  ret等于match_string - matches given string in an array*@array: array of strings*@n: number of strings in the array or -1 for NULL terminated arrays*@string: string to match with* Return:* index of a @string in the @array if matches, or %-EINVAL otherwise.
4766  如果ret小于0则ret等于Try to assign a tracer specific option
4768  否则ret等于set_tracer_flag(tr, 1 << ret, !neg)
4771  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
4772  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
4778  如果orig_len大于strlen - Find the length of a string*@s: The string to be sizedoption[strlen - Find the length of a string*@s: The string to be sized]等于' '
4781  返回:ret
调用者
名称描述
apply_trace_boot_options
tracing_trace_options_write