1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/*
* Copyright (C) 2009 Novell Inc.
*
* Author: Jan Blunck <jblunck@suse.de>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*/
#include <ust/marker.h>
#include <ust/tracepoint.h>
/* FIXME: We have to define at least one trace_mark and
* one tracepoint here. If we don't, the __start... and
* __stop... symbols won't be defined and the constructors
* won't be compilable. We should find a linker trick to
* avoid this.
*/
DECLARE_TRACE(ust_dummytp, TP_PROTO(void), TP_ARGS());
DEFINE_TRACE(ust_dummytp);
void dummy_libust_initializer_func(void)
{
trace_mark(ust, dummymark, MARK_NOARGS);
trace_ust_dummytp();
}
MARKER_LIB;
TRACEPOINT_LIB;
|