1*2e2caf59SThomas Veerman /* $NetBSD: trace.h,v 1.3 2008/04/28 20:24:14 martin Exp $ */ 2*2e2caf59SThomas Veerman 3*2e2caf59SThomas Veerman /*- 4*2e2caf59SThomas Veerman * Copyright (c) 2000 The NetBSD Foundation, Inc. 5*2e2caf59SThomas Veerman * All rights reserved. 6*2e2caf59SThomas Veerman * 7*2e2caf59SThomas Veerman * This code is derived from software contributed to The NetBSD Foundation 8*2e2caf59SThomas Veerman * by Bill Sommerfeld 9*2e2caf59SThomas Veerman * 10*2e2caf59SThomas Veerman * Redistribution and use in source and binary forms, with or without 11*2e2caf59SThomas Veerman * modification, are permitted provided that the following conditions 12*2e2caf59SThomas Veerman * are met: 13*2e2caf59SThomas Veerman * 1. Redistributions of source code must retain the above copyright 14*2e2caf59SThomas Veerman * notice, this list of conditions and the following disclaimer. 15*2e2caf59SThomas Veerman * 2. Redistributions in binary form must reproduce the above copyright 16*2e2caf59SThomas Veerman * notice, this list of conditions and the following disclaimer in the 17*2e2caf59SThomas Veerman * documentation and/or other materials provided with the distribution. 18*2e2caf59SThomas Veerman * 19*2e2caf59SThomas Veerman * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*2e2caf59SThomas Veerman * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*2e2caf59SThomas Veerman * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*2e2caf59SThomas Veerman * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*2e2caf59SThomas Veerman * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*2e2caf59SThomas Veerman * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*2e2caf59SThomas Veerman * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*2e2caf59SThomas Veerman * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*2e2caf59SThomas Veerman * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*2e2caf59SThomas Veerman * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*2e2caf59SThomas Veerman * POSSIBILITY OF SUCH DAMAGE. 30*2e2caf59SThomas Veerman */ 31*2e2caf59SThomas Veerman 32*2e2caf59SThomas Veerman /*- 33*2e2caf59SThomas Veerman * trace.h -- 34*2e2caf59SThomas Veerman * Definitions pertaining to the tracing of jobs in parallel mode. 35*2e2caf59SThomas Veerman */ 36*2e2caf59SThomas Veerman 37*2e2caf59SThomas Veerman typedef enum { 38*2e2caf59SThomas Veerman MAKESTART, 39*2e2caf59SThomas Veerman MAKEEND, 40*2e2caf59SThomas Veerman MAKEERROR, 41*2e2caf59SThomas Veerman JOBSTART, 42*2e2caf59SThomas Veerman JOBEND, 43*2e2caf59SThomas Veerman MAKEINTR 44*2e2caf59SThomas Veerman } TrEvent; 45*2e2caf59SThomas Veerman 46*2e2caf59SThomas Veerman void Trace_Init(const char *); 47*2e2caf59SThomas Veerman void Trace_Log(TrEvent, Job *); 48*2e2caf59SThomas Veerman void Trace_End(void); 49*2e2caf59SThomas Veerman 50