Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_stack.c Create Date:2022-07-28 12:11:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:enable_stacktrace

Proto:static __init int enable_stacktrace(char *str)

Type:int

Parameter:

TypeParameterName
char *str
548  If 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 Then strncpy(stack_trace_filter_buf, str + len, COMMAND_LINE_SIZE)
551  stack_tracer_enabled = 1
552  Return 1