/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1994-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Includes
*/
#include "tnf_buf.h"
#include "tnf_types.h"
#include "tnf_trace.h"
#ifndef NPROBE
/*
* Globals
*/
/*
* tnf_trace_on
*/
void
tnf_trace_on(void)
{
tnf_tracing_active = 1;
/* Enable system call tracing for all processes */
}
/*
* tnf_trace_off
*/
void
tnf_trace_off(void)
{
tnf_tracing_active = 0;
/* System call tracing is automatically disabled */
}
/*
* tnf_trace_init
* Not reentrant: only called from tnf_allocbuf(), which is
* single-threaded.
*/
void
tnf_trace_init(void)
{
int stopped;
/*
* Initialize the buffer
*/
/*
* Mark allocator running (not stopped). Luckily,
* tnf_trace_alloc() first checks tnf_tracing_active, so no
* trace data will be written.
*/
/*
* 1195835: Write out some tags now. The stopped bit needs
* to be clear while we do this.
*/
/* LINTED pointer cast may result in improper alignment */
}
/* Restore stopped bit */
tnfw_b_state |= stopped;
}
#endif /* NPROBE */