Add libtool to .gitignore
[ust.git] / libust-initializer.c
CommitLineData
25123621
JB
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
d57c0d75
PMF
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
9dec086e 21DECLARE_TRACE(ust_dummytp, TP_PROTO(int anint), TP_ARGS(anint));
d57c0d75
PMF
22DEFINE_TRACE(ust_dummytp);
23
3c6eae02
NC
24#define CREATE_TRACE_POINTS
25#include "libust-initializer.h"
26
d57c0d75
PMF
27void dummy_libust_initializer_func(void)
28{
9dec086e 29 int i;
d57c0d75 30 trace_mark(ust, dummymark, MARK_NOARGS);
9dec086e 31 trace_ust_dummytp(i);
3c6eae02 32 trace_ust_dummy_event(i);
d57c0d75
PMF
33}
34
25123621
JB
35MARKER_LIB;
36TRACEPOINT_LIB;
3c6eae02 37TRACE_EVENT_LIB;
This page took 0.029622 seconds and 4 git commands to generate.