xref: /titanic_44/usr/src/lib/libtnfctl/kernel_int.h (revision 95efa359b507db290a2484b8f615822b1e06096f)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1994, by Sun Microsytems, Inc.
24  */
25 
26 #ifndef _KERNEL_INT_H
27 #define	_KERNEL_INT_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 #include "tnfctl_int.h"
36 
37 /*
38  * interfaces to control kernel tracing and kernel probes
39  */
40 
41 tnfctl_errcode_t _tnfctl_prbk_init(tnfctl_handle_t *);
42 tnfctl_errcode_t _tnfctl_prbk_close(tnfctl_handle_t *);
43 void _tnfctl_prbk_get_other_funcs(uintptr_t *allocp, uintptr_t *commitp,
44 	uintptr_t *rollbackp, uintptr_t *endp);
45 void _tnfctl_prbk_test_func(uintptr_t *);
46 tnfctl_errcode_t _tnfctl_prbk_buffer_alloc(tnfctl_handle_t *, int);
47 tnfctl_errcode_t _tnfctl_prbk_buffer_dealloc(tnfctl_handle_t *);
48 tnfctl_errcode_t _tnfctl_prbk_set_tracing(tnfctl_handle_t *, boolean_t);
49 tnfctl_errcode_t _tnfctl_prbk_set_pfilter_mode(tnfctl_handle_t *, boolean_t);
50 tnfctl_errcode_t _tnfctl_prbk_get_pfilter_list(tnfctl_handle_t *, pid_t **,
51 	int *);
52 tnfctl_errcode_t _tnfctl_prbk_pfilter_add(tnfctl_handle_t *, pid_t);
53 tnfctl_errcode_t _tnfctl_prbk_pfilter_delete(tnfctl_handle_t *, pid_t);
54 tnfctl_errcode_t _tnfctl_prbk_flush(tnfctl_handle_t *, prbctlref_t *);
55 tnfctl_errcode_t _tnfctl_refresh_kernel(tnfctl_handle_t *hndl);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* _KERNEL_INT_H */
62