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:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Most of this code has been lifted from kernel/timer.c::sys_sysinfo().* I cannot call that code directly from kdb, it has an unconditional* cli()/sti() and calls routines that take locks which can stop the debugger.

Proto:static void kdb_sysinfo(struct sysinfo *val)

Type:void

Parameter:

TypeParameterName
struct sysinfo *val
2494  uptime = ktime_get_mono_fast_ns()
2496  memset(val, 0, size of val )
2497  Seconds since boot = div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
2498  1, 5, and 15 minute load averages [0] = avenrun[0]
2499  1, 5, and 15 minute load averages [1] = avenrun[1]
2500  1, 5, and 15 minute load averages [2] = avenrun[2]
2501  Number of current processes = counter of threads - 1
2502  si_meminfo(val)
2504  Return
Caller
NameDescribe
kdb_summarykdb_summary - This function implements the 'summary' command.