add_debugger_command
extern int add_debugger_command(const char *name,
add_debugger_command("btLocalDevices", &dump_bluetooth_devices,
add_debugger_command("inw", &display_io, "dump io words (32-bit)");
add_debugger_command("in32", &display_io, "dump io words (32-bit)");
add_debugger_command("ins", &display_io, "dump io shorts (16-bit)");
add_debugger_command("in16", &display_io, "dump io shorts (16-bit)");
add_debugger_command("inb", &display_io, "dump io bytes (8-bit)");
add_debugger_command("in8", &display_io, "dump io bytes (8-bit)");
add_debugger_command("outw", &write_io, "write io words (32-bit)");
add_debugger_command("out32", &write_io, "write io words (32-bit)");
add_debugger_command("outs", &write_io, "write io shorts (16-bit)");
add_debugger_command("out16", &write_io, "write io shorts (16-bit)");
add_debugger_command("outb", &write_io, "write io bytes (8-bit)");
add_debugger_command("out8", &write_io, "write io bytes (8-bit)");
add_debugger_command("pcistatus", &pcistatus, "dump and clear pci device status registers");
add_debugger_command("pcirefresh", &pcirefresh, "refresh and print all pci_info");
add_debugger_command("ps2republish", &ps2_republish, "republish a ps2 device (0-3 mouse, 4 keyb (default))");
add_debugger_command("get_usb_pipe_for_id",
add_debugger_command("usb_process_transfer",
add_debugger_command("usb_clear_stall",
add_debugger_command("kdlhangman", kdlhangman, KCMD_HELP);
add_debugger_command("kdlhangman", kdlhangman, KCMD_HELP);
add_debugger_command("qrencode", qrencode,
add_debugger_command("qrappend", qrappend,
add_debugger_command("qrclear", qrclear,
add_debugger_command("qrflush", qrflush,
add_debugger_command("qrconfig", qrconfig,
add_debugger_command("qrwebpost", qrwebpost,
add_debugger_command("cmedia", debug_cmedia, "cmedia [card# (1-n)]");
add_debugger_command("bth2generic", &dump_driver,
add_debugger_command("et6000dump", et6000dump, "dump ET6000 kernel driver persistant data");
add_debugger_command("ie_reg", getset_register,
add_debugger_command("ie_pipe", dump_pipe_info,
add_debugger_command("radeonhd_reg", getset_register,
add_debugger_command("get_usb_keyboard_config",
add_debugger_command (kDevName, etherpci, "Ethernet driver Info");
add_debugger_command("bfs_inode", dump_inode, "dump an Inode object");
add_debugger_command("bfs_allocator", dump_block_allocator,
add_debugger_command("bfs_allocator_blocks", dump_block_allocator_blocks,
add_debugger_command("bfs_journal", dump_journal,
add_debugger_command("bfs_btree_header", dump_bplustree_header,
add_debugger_command("bfs_btree_node", dump_bplustree_node,
add_debugger_command("bfs", dump_volume, "dump a BFS volume");
add_debugger_command("bfs_block_runs", dump_block_run_array,
add_debugger_command("fat", kprintf_volume, "dump a FAT private volume");
add_debugger_command("fat_node", kprintf_node, "dump a FAT private node");
add_debugger_command("nfs4", kprintf_volume, "dump an nfs4 volume");
add_debugger_command("nfs4_inode", kprintf_inode, "dump an nfs4 inode");
add_debugger_command("ufs_port", DebugPort,
add_debugger_command("ufs", DebugUFS, "prints general info about "
add_debugger_command("ufs_portpool", DebugPortPool,
return UserlandFS::KernelEmu::add_debugger_command(name, func, help);
add_debugger_command("bcache", do_dump, "dump the block cache list");
add_debugger_command("fblock", do_find_block, "find a block in the cache");
add_debugger_command("fdata", do_find_data, "find a data block ptr in the cache");
int add_debugger_command(char *name, int (*func)(int argc, char **argv),
add_debugger_command("tty", &dump_tty, "Dump info on a tty");
add_debugger_command("ipv4_multicast", dump_ipv4_multicast,
add_debugger_command("tcp_endpoints", dump_endpoints,
add_debugger_command("tcp_endpoint", dump_endpoint,
add_debugger_command("udp_endpoints", UdpEndpointManager::DumpEndpoints,
add_debugger_command("net_device_interface", &dump_device_interface,
add_debugger_command("net_device_interfaces", &dump_device_interfaces,
add_debugger_command("net_domains", &dump_domains,
add_debugger_command("net_interface", &dump_interface,
add_debugger_command("net_interfaces", &dump_interfaces,
add_debugger_command("net_local", &dump_local,
add_debugger_command("net_route", &dump_route,
add_debugger_command("sockets", dump_sockets, "lists all sockets");
add_debugger_command("socket", dump_socket, "dumps a socket");
add_debugger_command("net_timer", dump_timer,
add_debugger_command("where", &stack_trace, "Same as \"sc\"");
add_debugger_command("bt", &stack_trace, "Same as \"sc\" (as in gdb)");
add_debugger_command("sc", &stack_trace, "Stack crawl for current thread");
add_debugger_command("where", &stack_trace, "Same as \"sc\"");
add_debugger_command("bt", &stack_trace, "Same as \"sc\" (as in gdb)");
add_debugger_command("sc", &stack_trace, "Stack crawl for current thread");
add_debugger_command("iospace", &dump_iospace, "Shows info about the I/O space area.");
add_debugger_command("where", &stack_trace, "Same as \"sc\"");
add_debugger_command("bt", &stack_trace, "Same as \"sc\" (as in gdb)");
add_debugger_command("sc", &stack_trace, "Stack crawl for current thread");
add_debugger_command("where", &stack_trace, "Same as \"sc\"");
add_debugger_command("bt", &stack_trace, "Same as \"sc\" (as in gdb)");
add_debugger_command("sc", &stack_trace, "Stack crawl for current thread");
add_debugger_command("of_exit", &debug_command_of_exit,
add_debugger_command("of_enter", &debug_command_of_enter,
add_debugger_command("where", &stack_trace, "Same as \"sc\"");
add_debugger_command("bt", &stack_trace, "Same as \"sc\" (as in gdb)");
add_debugger_command("sc", &stack_trace,
add_debugger_command("iframe", &dump_iframes,
add_debugger_command("dump_page_table", &DumpPageTable, "Dump page table");
add_debugger_command("dump_virt_page", &DumpVirtPage, "Dump virtual page mapping");
add_debugger_command("where", &stack_trace, "Same as \"sc\"");
add_debugger_command("bt", &stack_trace, "Same as \"sc\" (as in gdb)");
add_debugger_command("sc", &stack_trace, "Stack crawl for current thread");
add_debugger_command("of_exit", &debug_command_of_exit,
add_debugger_command("of_enter", &debug_command_of_enter,
add_debugger_command("where", &stack_trace, "Same as \"sc\"");
add_debugger_command("bt", &stack_trace, "Same as \"sc\" (as in gdb)");
add_debugger_command("sc", &stack_trace,
add_debugger_command("iframe", &dump_iframes,
add_debugger_command("call", &show_call, "Show call with arguments");
add_debugger_command("cached_block", &dump_cached_block,
add_debugger_command("file_map_stats", &dump_file_map_stats,
add_debugger_command("paging", set_paging, "Enable or disable paging");
add_debugger_command("unset", &cmd_unset_variable,
add_debugger_command("unset_all", &cmd_unset_all_variables,
add_debugger_command("vars", &cmd_variables,
add_debugger_command("guarded_heap", &dump_guarded_heap,
add_debugger_command("io_request", &dump_io_request, "dump an I/O request");
add_debugger_command("io_operation", &dump_io_operation,
add_debugger_command("io_buffer", &dump_io_buffer, "dump an I/O buffer");
add_debugger_command("dma_buffer", &dump_dma_buffer, "dump a DMA buffer");
add_debugger_command("dm_tree", &dump_device_nodes,
add_debugger_command("legacy_driver", &dump_driver,
add_debugger_command("legacy_device", &dump_device,
add_debugger_command("ls", &dump_address_info,
add_debugger_command("symbols", &dump_symbols, "dump symbols for image");
add_debugger_command("symbol", &dump_symbol, "search symbol in images");
add_debugger_command("vnodes", &dump_vnodes,
add_debugger_command("vnode_caches", &dump_vnode_caches,
add_debugger_command("mount", &dump_mount,
add_debugger_command("mounts", &dump_mounts, "list all fs_mounts");
add_debugger_command("io_context", &dump_io_context,
add_debugger_command("vnode_usage", &dump_vnode_usage,
add_debugger_command("team_images", &dump_images_list, "Dump all registered images from the current team");
add_debugger_command("ints", &dump_int_statistics,
add_debugger_command("int_load", &dump_int_load,
add_debugger_command("daemons", dump_daemons,
add_debugger_command("low_resource", &dump_handlers,
add_debugger_command("modules", &dump_modules,
add_debugger_command("of_exit", &debug_command_of_exit,
add_debugger_command("of_enter", &debug_command_of_enter,
add_debugger_command("rtc", &rtc_debug, "Set and test the real-time clock");
add_debugger_command("slabs", dump_slabs, "list all object caches");
add_debugger_command("slab_cache", dump_cache_info,
add_debugger_command("slab_depot", dump_object_depot,
add_debugger_command("slab_magazine", dump_depot_magazine,
add_debugger_command("slab_object", dump_object_info,
add_debugger_command("info", &dump_info, "System info");
add_debugger_command("aspaces", &_DumpListCommand,
add_debugger_command("aspace", &_DumpCommand,
add_debugger_command("areas", &dump_area_list, "Dump a list of all areas");
add_debugger_command("area", &dump_area,
add_debugger_command("cache", &dump_cache, "Dump VMCache");
add_debugger_command("cache_tree", &dump_cache_tree, "Dump VMCache tree");
add_debugger_command("avail", &dump_available_memory,
add_debugger_command("dl", &display_mem, "dump memory long words (64-bit)");
add_debugger_command("dw", &display_mem, "dump memory words (32-bit)");
add_debugger_command("ds", &display_mem, "dump memory shorts (16-bit)");
add_debugger_command("db", &display_mem, "dump memory bytes (8-bit)");
add_debugger_command("string", &display_mem, "dump strings");
add_debugger_command("list_pages", &dump_page_list,
add_debugger_command("page_stats", &dump_page_stats,
add_debugger_command("page_queue", &dump_page_queue, "Dump page queue");
add_debugger_command("find_page", &find_page,