Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct sysinfo * | val |
| 2494 | uptime = ktime_get_mono_fast_ns() |
| 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 |
| Name | Describe |
|---|---|
| kdb_summary | kdb_summary - This function implements the 'summary' command. |
| 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 |