Function report |
Source Code:kernel\debug\kdb\kdb_main.c |
Create Date:2022-07-28 11:42:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Initialize the kdb command table.
Proto:static void __init kdb_inittab(void)
Type:void
Parameter:Nothing
2779 | for_each_kdbcmd(kp, i) |
2780 | Command name = NULL |
2782 | kdb_register_flags("md", kdb_md, "<vaddr>", "Display Memory Contents, also mdWcN, e.g. md8c1", 1, KDB_ENABLE_MEM_READ | Repeat the command w/o arguments ) |
2785 | kdb_register_flags("mdr", kdb_md, "<vaddr> <bytes>", "Display Raw Memory", 0, KDB_ENABLE_MEM_READ | Repeat the command w/o arguments ) |
2788 | kdb_register_flags("mdp", kdb_md, "<paddr> <bytes>", "Display Physical Memory", 0, KDB_ENABLE_MEM_READ | Repeat the command w/o arguments ) |
2791 | kdb_register_flags("mds", kdb_md, "<vaddr>", "Display Memory Symbolically", 0, KDB_ENABLE_MEM_READ | Repeat the command w/o arguments ) |
2794 | kdb_register_flags("mm", kdb_mm - This function implements the 'mm' command.* mm address-expression new-value* Remarks:* mm works on machine words, mmW works on bytes., "<vaddr> <contents>", "Modify Memory Contents", 0, KDB_ENABLE_MEM_WRITE | Repeat the command w/o arguments ) |
2797 | kdb_register_flags("go", kdb_go - This function implements the 'go' command.* go [address-expression], "[<vaddr>]", "Continue Execution", 1, KDB_ENABLE_REG_WRITE | KDB_ENABLE_ALWAYS_SAFE_NO_ARGS) |
2800 | kdb_register_flags("rd", kdb_rd - This function implements the 'rd' command., "", "Display Registers", 0, KDB_ENABLE_REG_READ) |
2803 | kdb_register_flags("rm", kdb_rm - This function implements the 'rm' (register modify) command.* rm register-name new-contents* Remarks:* Allows register modification with the same restrictions as gdb, "<reg> <contents>", "Modify Registers", 0, KDB_ENABLE_REG_WRITE) |
2809 | kdb_register_flags("bt", kdb_bt, "[<vaddr>]", "Stack traceback", 1, KDB_ENABLE_MEM_READ | KDB_ENABLE_INSPECT_NO_ARGS) |
2812 | kdb_register_flags("btp", kdb_bt, "<pid>", "Display stack for process <pid>", 0, KDB_ENABLE_INSPECT) |
2815 | kdb_register_flags("bta", kdb_bt, "[D|R|S|T|C|Z|E|U|I|M|A]", "Backtrace all processes matching state flag", 0, KDB_ENABLE_INSPECT) |
2818 | kdb_register_flags("btc", kdb_bt, "", "Backtrace current process on each cpu", 0, KDB_ENABLE_INSPECT) |
2821 | kdb_register_flags("btt", kdb_bt, "<vaddr>", "Backtrace process given its struct task address", 0, KDB_ENABLE_MEM_READ | KDB_ENABLE_INSPECT_NO_ARGS) |
2824 | kdb_register_flags("env", kdb_env - This function implements the 'env' command. Display the* current environment variables., "", "Show environment variables", 0, KDB_ENABLE_ALWAYS_SAFE) |
2827 | kdb_register_flags("set", kdb_set - This function implements the 'set' command. Alter an* existing environment variable or create a new one., "", "Set environment variables", 0, KDB_ENABLE_ALWAYS_SAFE) |
2830 | kdb_register_flags("help", kdb_help - This function implements the 'help' and '?' commands., "", "Display Help Message", 1, KDB_ENABLE_ALWAYS_SAFE) |
2833 | kdb_register_flags("?", kdb_help - This function implements the 'help' and '?' commands., "", "Display Help Message", 0, KDB_ENABLE_ALWAYS_SAFE) |
2836 | kdb_register_flags("cpu", kdb_cpu, "<cpunum>", "Switch to new cpu", 0, KDB_ENABLE_ALWAYS_SAFE_NO_ARGS) |
2839 | kdb_register_flags("kgdb", kdb_kgdb, "", "Enter kgdb mode", 0, 0) |
2841 | kdb_register_flags("ps", kdb_ps, "[<flags>|A]", "Display active task list", 0, KDB_ENABLE_INSPECT) |
2844 |
kdb_register_flags("pid", kdb_pid - This function implements the 'pid' command which switches* the currently active process.* pid [ |
2847 | kdb_register_flags("reboot", kdb_reboot - This function implements the 'reboot' command. Reboot* the system immediately, or loop for ever on failure., "", "Reboot the machine immediately", 0, KDB_ENABLE_REBOOT) |
2851 | kdb_register_flags("lsmod", kdb_lsmod - This function implements the 'lsmod' command. Lists* currently loaded kernel modules.* Mostly taken from userland lsmod., "", "List loaded kernel modules", 0, KDB_ENABLE_INSPECT) |
2861 | kdb_register_flags("dmesg", kdb_dmesg - This function implements the 'dmesg' command to display* the contents of the syslog buffer.* dmesg [lines] [adjust], "[lines]", "Display syslog buffer", 0, KDB_ENABLE_ALWAYS_SAFE) |
2865 | If enable_nmi Then |
2866 | kdb_register_flags("disable_nmi", kdb_disable_nmi, "", "Disable NMI entry to KDB", 0, KDB_ENABLE_ALWAYS_SAFE) |
2870 | kdb_register_flags("defcmd", kdb_defcmd, "name \"usage\" \"help\"", "Define a set of commands, down to endefcmd", 0, KDB_ENABLE_ALWAYS_SAFE) |
2873 | kdb_register_flags("kill", kdb_kill - This function implements the 'kill' commands., "<-signal> <pid>", "Send a signal to a process", 0, KDB_ENABLE_SIGNAL) |
2876 | kdb_register_flags("summary", kdb_summary - This function implements the 'summary' command., "", "Summarize the system", 4, KDB_ENABLE_ALWAYS_SAFE) |
2879 | kdb_register_flags("per_cpu", kdb_per_cpu - This function implements the 'per_cpu' command., "<sym> [<bytes>] [<cpu>]", "Display per_cpu variables", 3, KDB_ENABLE_MEM_READ) |
2882 | kdb_register_flags("grephelp", display help for the use of cmd | grep pattern, "", "Display help on | grep", 0, KDB_ENABLE_ALWAYS_SAFE) |
Name | Describe |
---|---|
kdb_init | Initialize kdb_printf, breakpoint tables and kdb state |
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 |