1*4ea9b977Schristos /* $NetBSD: ktrace.h,v 1.21 2020/04/02 17:41:33 christos Exp $ */ 29d225a17Stls 311424948Scgd /*- 411424948Scgd * Copyright (c) 1988, 1993 511424948Scgd * The Regents of the University of California. All rights reserved. 611424948Scgd * 711424948Scgd * Redistribution and use in source and binary forms, with or without 811424948Scgd * modification, are permitted provided that the following conditions 911424948Scgd * are met: 1011424948Scgd * 1. Redistributions of source code must retain the above copyright 1111424948Scgd * notice, this list of conditions and the following disclaimer. 1211424948Scgd * 2. Redistributions in binary form must reproduce the above copyright 1311424948Scgd * notice, this list of conditions and the following disclaimer in the 1411424948Scgd * documentation and/or other materials provided with the distribution. 1589aaa1bbSagc * 3. Neither the name of the University nor the names of its contributors 1611424948Scgd * may be used to endorse or promote products derived from this software 1711424948Scgd * without specific prior written permission. 1811424948Scgd * 1911424948Scgd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2011424948Scgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2111424948Scgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2211424948Scgd * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2311424948Scgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2411424948Scgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2511424948Scgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2611424948Scgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2711424948Scgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2811424948Scgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2911424948Scgd * SUCH DAMAGE. 3011424948Scgd * 31de46de4cSmikel * @(#)ktrace.h 8.1 (Berkeley) 6/6/93 3211424948Scgd */ 3311424948Scgd 3411424948Scgd #define DEF_POINTS (KTRFAC_SYSCALL | KTRFAC_SYSRET | KTRFAC_NAMEI | \ 355e6a27ebSjoerg KTRFAC_GENIO | KTRFAC_PSIG | KTRFAC_EMUL | KTRFAC_USER) 3611424948Scgd 37fde07830Sdsl #define ALL_POINTS KTRFAC_MASK 3811424948Scgd 3911424948Scgd #define DEF_TRACEFILE "ktrace.out" 40de46de4cSmikel 41de46de4cSmikel #include <sys/cdefs.h> 42de46de4cSmikel 43fde07830Sdsl int getpoints(int, char *); 4458fc70c4Schristos const char *ioctlname(u_long); 452b189231Smatt const char *siginfocodename(int, int); 46fde07830Sdsl void dumpfile(const char *, int, int); 47*4ea9b977Schristos 48*4ea9b977Schristos struct ioctlinfo { 49*4ea9b977Schristos const char *name; 50*4ea9b977Schristos const char *expr; 51*4ea9b977Schristos unsigned long value; 52*4ea9b977Schristos }; 53*4ea9b977Schristos 54*4ea9b977Schristos extern const struct ioctlinfo ioctlinfo[]; 55