1 #ifndef _UST_TRACEPOINT_INTERNAL_H
2 #define _UST_TRACEPOINT_INTERNAL_H
5 * tracepoint-internal.h
7 * Tracepoint internal header.
9 * Copyright (C) 2008 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
10 * Copyright (C) 2009 Pierre-Marc Fournier
11 * Copyright (C) 2009 Steven Rostedt <rostedt@goodmis.org>
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation;
16 * version 2.1 of the License.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27 * Heavily inspired from the Linux Kernel Markers.
29 * Ported to userspace by Pierre-Marc Fournier.
34 #include <urcu/list.h>
35 #include <ust/tracepoint.h>
37 extern int tracepoint_probe_register_noupdate(const char *name
, void *probe
,
39 extern int tracepoint_probe_unregister_noupdate(const char *name
, void *probe
,
41 extern void tracepoint_probe_update_all(void);
43 struct tracepoint_iter
{
44 struct tracepoint_lib
*lib
;
45 struct tracepoint
* const *tracepoint
;
48 extern void tracepoint_iter_start(struct tracepoint_iter
*iter
);
49 extern void tracepoint_iter_next(struct tracepoint_iter
*iter
);
50 extern void tracepoint_iter_stop(struct tracepoint_iter
*iter
);
51 extern void tracepoint_iter_reset(struct tracepoint_iter
*iter
);
52 extern int tracepoint_get_iter_range(struct tracepoint
* const **tracepoint
,
53 struct tracepoint
* const *begin
, struct tracepoint
* const *end
);
56 * tracepoint_synchronize_unregister must be called between the last tracepoint
57 * probe unregistration and the end of module exit to make sure there is no
58 * caller executing a probe when it is freed.
60 static inline void tracepoint_synchronize_unregister(void)
65 struct trace_event_iter
{
66 struct trace_event_lib
*lib
;
67 struct trace_event
* const *trace_event
;
70 extern void trace_event_iter_start(struct trace_event_iter
*iter
);
71 extern void trace_event_iter_next(struct trace_event_iter
*iter
);
72 extern void trace_event_iter_stop(struct trace_event_iter
*iter
);
73 extern void trace_event_iter_reset(struct trace_event_iter
*iter
);
75 extern void trace_event_update_process(void);
76 extern int is_trace_event_enabled(const char *channel
, const char *name
);
78 extern void init_tracepoint(void);
80 #endif /* _UST_TRACEPOINT_INTERNAL_H */
This page took 0.033802 seconds and 6 git commands to generate.