Function report |
Source Code:kernel\debug\kdb\kdb_main.c |
Create Date:2022-07-28 11:42:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kdb_summary - This function implements the 'summary' command.
Proto:static int kdb_summary(int argc, const char **argv)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | argc | |
| const char ** | argv |
| 2516 | If argc Then Return KDB_ARGCOUNT |
| 2519 | kdb_printf("sysname %s\n", sysname) |
| 2520 | kdb_printf("release %s\n", release) |
| 2521 | kdb_printf("version %s\n", version) |
| 2522 | kdb_printf("machine %s\n", machine) |
| 2523 | kdb_printf("nodename %s\n", nodename) |
| 2524 | kdb_printf("domainname %s\n", domainname) |
| 2526 | now = __ktime_get_real_seconds - The same as ktime_get_real_seconds* but without the sequence counter protect. This internal function* is called just when timekeeping lock is already held. |
| 2535 | kdb_printf("uptime ") |
| 2536 | If Seconds since boot > 24 * 60 * 60 Then |
| 2537 | days = Seconds since boot / 24 * 60 * 60 |
| 2538 | Seconds since boot %= 24 * 60 * 60 |
| 2539 | kdb_printf("%d day%s ", days, days == 1 ? "" : "s") |
| 2541 | kdb_printf("%02ld:%02ld\n", Seconds since boot / (60 * 60), ( Seconds since boot / 60) % 60) |
| 2543 | kdb_printf("load avg %ld.%02ld %ld.%02ld %ld.%02ld\n", LOAD_INT( 1, 5, and 15 minute load averages [0]), LOAD_FRAC( 1, 5, and 15 minute load averages [0]), LOAD_INT( 1, 5, and 15 minute load averages [1]), LOAD_FRAC( 1, 5, and 15 minute load averages [1]), LOAD_INT( 1, 5, and 15 minute load averages [2]), LOAD_FRAC( 1, 5, and 15 minute load averages [2])) |
| 2550 | kdb_printf("\nMemTotal: %8lu kB\nMemFree: %8lu kB\nBuffers: %8lu kB\n", Display in kilobytes ( Total usable main memory size ), Display in kilobytes ( Available memory size ), Display in kilobytes ( Memory used by buffers )) |
| 2553 | Return 0 |
| 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 |