summaryrefslogtreecommitdiffstats
path: root/20150505/trace.h
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2015-05-10 20:02:26 +0000
committersjg <sjg@FreeBSD.org>2015-05-10 20:02:26 +0000
commit168edd726ad8a54339e142aec8bee10c893b7326 (patch)
tree1e70dc5e5574c3e64ad07c94b7275fae0b638a40 /20150505/trace.h
parent6b3bd5224a01da593382e075c1de2696c3261ebe (diff)
downloadFreeBSD-src-168edd726ad8a54339e142aec8bee10c893b7326.zip
FreeBSD-src-168edd726ad8a54339e142aec8bee10c893b7326.tar.gz
Tag bmake-20150505
Diffstat (limited to '20150505/trace.h')
-rw-r--r--20150505/trace.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/20150505/trace.h b/20150505/trace.h
new file mode 100644
index 0000000..dc0fc6c
--- /dev/null
+++ b/20150505/trace.h
@@ -0,0 +1,49 @@
+/* $NetBSD: trace.h,v 1.3 2008/04/28 20:24:14 martin Exp $ */
+
+/*-
+ * Copyright (c) 2000 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Bill Sommerfeld
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*-
+ * trace.h --
+ * Definitions pertaining to the tracing of jobs in parallel mode.
+ */
+
+typedef enum {
+ MAKESTART,
+ MAKEEND,
+ MAKEERROR,
+ JOBSTART,
+ JOBEND,
+ MAKEINTR
+} TrEvent;
+
+void Trace_Init(const char *);
+void Trace_Log(TrEvent, Job *);
+void Trace_End(void);
+
OpenPOWER on IntegriCloud