函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\profile.c Create Date:2022-07-27 11:37:12
Last Modify:2020-03-17 15:11:09 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:profile_setup

函数原型:int profile_setup(char *str)

返回类型:int

参数:

类型参数名称
char *str
58  schedstr[]等于"schedule"
59  sleepstr[]等于"sleep"
60  kvmstr[]等于"kvm"
63  如果非字符串指定长度比较
74  打印警告信息("kernel sleep profiling requires CONFIG_SCHEDSTATS\n")
76  否则如果非字符串指定长度比较
77  prof_on等于SCHED_PROFILING
78  如果str[strlen - Find the length of a string*@s: The string to be sized]恒等于','则str加等于strlen - Find the length of a string*@s: The string to be sized加1
80  如果get_option - Parse integer from an option string*@str: option string*@pint: (output) integer value parsed from @str* Read an int from an option string; if available accept a subsequent* comma as wellprof_shift等于par
82  打印信息("kernel schedule profiling enabled (shift: %ld)\n", prof_shift)
84  否则如果非字符串指定长度比较
85  prof_on等于KVM_PROFILING
86  如果str[strlen - Find the length of a string*@s: The string to be sized]恒等于','则str加等于strlen - Find the length of a string*@s: The string to be sized加1
88  如果get_option - Parse integer from an option string*@str: option string*@pint: (output) integer value parsed from @str* Read an int from an option string; if available accept a subsequent* comma as wellprof_shift等于par
90  打印信息("kernel KVM profiling enabled (shift: %ld)\n", prof_shift)
92  否则如果get_option - Parse integer from an option string*@str: option string*@pint: (output) integer value parsed from @str* Read an int from an option string; if available accept a subsequent* comma as well
93  prof_shift等于par
94  prof_on等于CPU_PROFILING
95  打印信息("kernel profiling enabled (shift: %ld)\n", prof_shift)
98  返回:1