Add functions and command line for listing trace_events v3
[ust.git] / libust-initializer.c
1 /*
2 * Copyright (C) 2009 Novell Inc.
3 *
4 * Author: Jan Blunck <jblunck@suse.de>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License version 2.1 as
8 * published by the Free Software Foundation.
9 */
10
11 #include <ust/marker.h>
12 #include <ust/tracepoint.h>
13
14 /* FIXME: We have to define at least one trace_mark and
15 * one tracepoint here. If we don't, the __start... and
16 * __stop... symbols won't be defined and the constructors
17 * won't be compilable. We should find a linker trick to
18 * avoid this.
19 */
20
21 DECLARE_TRACE(ust_dummytp, TP_PROTO(int anint), TP_ARGS(anint));
22 DEFINE_TRACE(ust_dummytp);
23
24 #define CREATE_TRACE_POINTS
25 #include "libust-initializer.h"
26
27 void dummy_libust_initializer_func(void)
28 {
29 int i;
30 trace_mark(ust, dummymark, MARK_NOARGS);
31 trace_ust_dummytp(i);
32 trace_ust_dummy_event(i);
33 }
34
35 MARKER_LIB;
36 TRACEPOINT_LIB;
37 TRACE_EVENT_LIB;
This page took 0.030241 seconds and 4 git commands to generate.