tnf.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 (c) 1994, by Sun Microsytems, Inc.
* All rights reserved.
*/
#ifndef _SYS_TNF_H
#define _SYS_TNF_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef NPROBE
#ifdef __cplusplus
extern "C" {
#endif
/*
*
*/
typedef struct {
int enabled;
int traced;
int attrsize;
/*
*
*/
typedef struct {
enum {
} buffer_state;
int buffer_size;
int trace_stopped;
int pidfilter_mode;
int pidfilter_size;
typedef struct {
char *dst_addr;
int block_num;
typedef struct {
long *dst_addr;
int start;
int slots;
} tifiocgfw_t;
/*
* ioctl codes
*/
#ifdef _KERNEL
extern volatile int tnf_tracing_active;
extern void tnf_thread_create(kthread_t *);
extern void tnf_thread_switch(kthread_t *);
extern void tnf_thread_exit(void);
extern void tnf_thread_free(kthread_t *);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* NPROBE */
#endif /* _SYS_TNF_H */