Function report |
Source Code:kernel\profile.c |
Create Date:2022-07-28 10:37:24 |
Last Modify:2020-03-17 15:11:09 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:profile_setup
Proto:int profile_setup(char *str)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
char * | str |
58 | schedstr[] = "schedule" |
59 | sleepstr[] = "sleep" |
60 | kvmstr[] = "kvm" |
63 | If Not strncmp(str, sleepstr, strlen - Find the length of a string*@s: The string to be sized) Then |
74 | pr_warn("kernel sleep profiling requires CONFIG_SCHEDSTATS\n") |
76 | Else if Not strncmp(str, schedstr, strlen - Find the length of a string*@s: The string to be sized) Then |
77 | prof_on = SCHED_PROFILING |
78 | If str[strlen - Find the length of a string*@s: The string to be sized] == ',' Then str += strlen - Find the length of a string*@s: The string to be sized + 1 |
82 | pr_info("kernel schedule profiling enabled (shift: %ld)\n", prof_shift) |
84 | Else if Not strncmp(str, kvmstr, strlen - Find the length of a string*@s: The string to be sized) Then |
85 | prof_on = KVM_PROFILING |
86 | If str[strlen - Find the length of a string*@s: The string to be sized] == ',' Then str += strlen - Find the length of a string*@s: The string to be sized + 1 |
90 | pr_info("kernel KVM profiling enabled (shift: %ld)\n", prof_shift) |
93 | prof_shift = par |
94 | prof_on = CPU_PROFILING |
95 | pr_info("kernel profiling enabled (shift: %ld)\n", prof_shift) |
98 | Return 1 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |