1*64a93525Sbluhm /* $OpenBSD: db_interface.h,v 1.28 2024/09/05 08:52:27 bluhm Exp $ */ 2d724e01aSderaadt /* $NetBSD: db_interface.h,v 1.1 1996/02/05 01:57:03 christos Exp $ */ 33ed44a89Smickey 43ed44a89Smickey /* 53ed44a89Smickey * Copyright (c) 1995 Christos Zoulas. All rights reserved. 63ed44a89Smickey * 73ed44a89Smickey * Redistribution and use in source and binary forms, with or without 83ed44a89Smickey * modification, are permitted provided that the following conditions 93ed44a89Smickey * are met: 103ed44a89Smickey * 1. Redistributions of source code must retain the above copyright 113ed44a89Smickey * notice, this list of conditions and the following disclaimer. 123ed44a89Smickey * 2. Redistributions in binary form must reproduce the above copyright 133ed44a89Smickey * notice, this list of conditions and the following disclaimer in the 143ed44a89Smickey * documentation and/or other materials provided with the distribution. 153ed44a89Smickey * 3. All advertising materials mentioning features or use of this software 163ed44a89Smickey * must display the following acknowledgement: 173ed44a89Smickey * This product includes software developed by Christos Zoulas. 183ed44a89Smickey * 4. The name of the author may not be used to endorse or promote products 193ed44a89Smickey * derived from this software without specific prior written permission. 203ed44a89Smickey * 213ed44a89Smickey * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 223ed44a89Smickey * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 233ed44a89Smickey * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 243ed44a89Smickey * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 253ed44a89Smickey * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 263ed44a89Smickey * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 273ed44a89Smickey * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 283ed44a89Smickey * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 293ed44a89Smickey * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 303ed44a89Smickey * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 313ed44a89Smickey */ 323ed44a89Smickey #ifndef _DDB_DB_INTERFACE_H_ 333ed44a89Smickey #define _DDB_DB_INTERFACE_H_ 343ed44a89Smickey 353ed44a89Smickey /* arch/<arch>/<arch>/db_trace.c */ 36332a70d3Sart void db_stack_trace_print(db_expr_t, int, db_expr_t, char *, 37332a70d3Sart int (*)(const char *, ...)); 383ed44a89Smickey 393ed44a89Smickey /* arch/<arch>/<arch>/db_disasm.c */ 4008f058f8Smpi vaddr_t db_disasm(vaddr_t, int); 413ed44a89Smickey 42f7342a4bSmickey /* kern/kern_proc.c */ 43a00d4ff8Smpi void db_kill_cmd(db_expr_t, int, db_expr_t, char *); 44c4071fd1Smillert void db_show_all_procs(db_expr_t, int, db_expr_t, char *); 453ed44a89Smickey 46329e3480Scheloha /* kern/kern_clockintr.c */ 47329e3480Scheloha void db_show_all_clockintr(db_expr_t, int, db_expr_t, char *); 48329e3480Scheloha 49f7342a4bSmickey /* kern/kern_timeout.c */ 50c4071fd1Smillert void db_show_callout(db_expr_t, int, db_expr_t, char *); 513ed44a89Smickey 52336db846Sderaadt struct mount; 53336db846Sderaadt 5476726696Smickey /* kern/vfs_subr.c */ 55da59dcaeSjasper void vfs_buf_print(void *, int, int (*)(const char *, ...)); 564c6830d6Sthib void vfs_vnode_print(void *, int, int (*)(const char *, ...)); 5776726696Smickey void vfs_mount_print(struct mount *, int, int (*)(const char *, ...)); 5876726696Smickey 594db979bcSmickey /* kern/subr_pool.c */ 604db979bcSmickey void db_show_all_pools(db_expr_t, int, db_expr_t, char *); 614db979bcSmickey 6276262c1dSclaudio /* kern/uipc_mbuf.c */ 6376262c1dSclaudio void m_print(void *, int (*)(const char *, ...)); 64*64a93525Sbluhm void m_print_chain(void *, int, int (*)(const char *, ...)); 65*64a93525Sbluhm void m_print_packet(void *, int, int (*)(const char *, ...)); 6676262c1dSclaudio 67ce5376a6Sdlg /* kern/uipc_socket.c */ 68ce5376a6Sdlg void so_print(void *, int (*)(const char *, ...)); 69ce5376a6Sdlg 70d06d27a7Sbluhm struct rtentry; 71d06d27a7Sbluhm int db_show_rtentry(struct rtentry *, void *, unsigned int); 72d06d27a7Sbluhm int db_show_rtable(int, unsigned int); 73d06d27a7Sbluhm 74cecbdfb6Sthib /* nfs/nfs_debug.c */ 75cecbdfb6Sthib void db_show_all_nfsreqs(db_expr_t, int, db_expr_t, char *); 76bfe91d83Sthib void nfs_request_print(void *, int, int (*)(const char *, ...)); 77bfe91d83Sthib void db_show_all_nfsnodes(db_expr_t, int, db_expr_t, char *); 78bfe91d83Sthib void nfs_node_print(void *, int, int (*)(const char *, ...)); 79cecbdfb6Sthib 8002de433dSsemarie /* uvm/uvm_swap.c */ 8102de433dSsemarie void swap_print_all(int (*)(const char *, ...)); 8202de433dSsemarie 833ed44a89Smickey /* arch/<arch>/<arch>/db_interface.c */ 84c4071fd1Smillert void db_machine_init(void); 853ed44a89Smickey 863ed44a89Smickey #endif /* _DDB_DB_INTERFACE_H_ */ 87