fe27da2b11e1c44aad99c10c0d8d22e89810bf13
2 * Copyright (C) 2009 Steven Rostedt <srostedt@redhat.com>
3 * Copyright (C) 2010 Nils Carlson <nils.carlson@ericsson.com>
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation;
9 * version 2.1 of the License.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 * This whole file is currently a dummy.
27 #undef TRACEPOINT_EVENT
28 #define TRACEPOINT_EVENT(name, proto, args, fields) \
29 TRACEPOINT_EVENT_CLASS(name, \
33 TRACEPOINT_EVENT_INSTANCE(name, name, TP_PARAMS(proto), \
36 #undef TRACEPOINT_EVENT_NOARGS
37 #define TRACEPOINT_EVENT_NOARGS(name, fields) \
38 TRACEPOINT_EVENT_CLASS_NOARGS(name, \
40 TRACEPOINT_EVENT_INSTANCE_NOARGS(name, name);
43 #define tp_field(type, item, src) type item;
46 #define TP_FIELDS(args...) args
48 #undef TRACEPOINT_EVENT_INSTANCE
49 #define TRACEPOINT_EVENT_INSTANCE(template, name, proto, args)
51 #undef TRACEPOINT_EVENT_INSTANCE_NOARGS
52 #define TRACEPOINT_EVENT_INSTANCE_NOARGS(template, name)
54 #undef TRACEPOINT_EVENT_CLASS
55 #define TRACEPOINT_EVENT_CLASS(name, proto, args, fields) \
56 struct trace_raw_##name { \
59 static void trace_printf_##name(void *dummy, proto) \
62 struct trace_event __event_##name = { \
65 static struct trace_event * const __event_ptrs_##name \
66 __attribute__((used, section("__trace_events_ptrs"))) = \
69 static void __attribute__((constructor)) init_##name() \
72 __register_tracepoint(name, trace_printf_##name, dummy);\
75 #undef TRACEPOINT_EVENT_CLASS_NOARGS
76 #define TRACEPOINT_EVENT_CLASS_NOARGS(name, fields) \
77 struct trace_raw_##name { \
80 static void trace_printf_##name(void *dummy) \
83 struct trace_event __event_##name = { \
86 static struct trace_event * const __event_ptrs_##name \
87 __attribute__((used, section("__trace_events_ptrs"))) = \
90 static void __attribute__((constructor)) init_##name() \
93 __register_tracepoint(name, trace_printf_##name, dummy);\
96 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
This page took 0.030241 seconds and 4 git commands to generate.