Mir
lttng_utils.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Andreas Pokorny <andreas.pokorny@canonical.com>
17  */
18 
19 #include <lttng/tracepoint.h>
20 #include <stdint.h>
21 
22 #ifndef _MIR_LTTNG_UTILS_H_
23 #define _MIR_LTTNG_UTILS_H_
24 
25 #define MIR_LTTNG_VOID_TRACE_CALL(klass, comp, name) \
26  void mir::report::lttng::klass::name() \
27  { \
28  mir_tracepoint(comp, name, 0); \
29  }
30 
31 #define MIR_LTTNG_VOID_TRACE_CLASS(comp) \
32  TRACEPOINT_EVENT_CLASS(comp, dummy_event, TP_ARGS(int,empty), TP_FIELDS(ctf_integer(int,empty,empty)))
33 #define MIR_LTTNG_VOID_TRACE_POINT(comp, name) \
34  TRACEPOINT_EVENT_INSTANCE(comp, dummy_event, name, TP_ARGS(int,empty))
35 
36 #endif

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015