Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kdb_cpu - This function implements the 'cpu' command.* cpu [<cpunum>]* Returns:* KDB_CMD_CPU for success, a kdb diagnostic if error

Proto:static void kdb_cpu_status(void)

Type:void

Parameter:Nothing

2209  first_print = 1
2210  prev_state = '?'
2212  kdb_printf("Currently on cpu %d\n", These macros fold the SMP functionality into a single CPU system())
2213  kdb_printf("Available cpus: ")
2214  When i < Places which use this should consider cpumask_var_t. cycle
2215  If Not cpu_online(i) Then
2216  state = 'F'
2217  Else if Not enter_kgdb Then
2218  state = 'D'
2219  Else
2220  state = ' '
2224  If state != prev_state Then
2225  If prev_state != '?' Then
2226  If Not first_print Then kdb_printf(", ")
2228  first_print = 0
2229  kdb_printf("%d", start_cpu)
2230  If start_cpu < i - 1 Then kdb_printf("-%d", i - 1)
2232  If prev_state != ' ' Then kdb_printf("(%c)", prev_state)
2235  prev_state = state
2236  start_cpu = i
2240  If prev_state != 'F' Then
2241  If Not first_print Then kdb_printf(", ")
2243  kdb_printf("%d", start_cpu)
2244  If start_cpu < i - 1 Then kdb_printf("-%d", i - 1)
2246  If prev_state != ' ' Then kdb_printf("(%c)", prev_state)
2249  kdb_printf("\n")
Caller
NameDescribe
kdb_cpu