Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
shared_library_prober_report_tp.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
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * 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 Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
17  */
18 
19 #undef TRACEPOINT_PROVIDER
20 #define TRACEPOINT_PROVIDER mir_client_shared_library_prober
21 
22 #undef TRACEPOINT_INCLUDE
23 #define TRACEPOINT_INCLUDE "./shared_library_prober_report_tp.h"
24 
25 #if !defined(MIR_CLIENT_LTTNG_SHARED_LIBRARY_PROBER_REPORT_TP_H_) || defined(TRACEPOINT_HEADER_MULTI_READ)
26 #define MIR_CLIENT_LTTNG_SHARED_LIBRARY_PROBER_REPORT_TP_H_
27 
28 #include <lttng/tracepoint.h>
29 #include <stdint.h>
30 
31 #ifdef __clang__
32 /*
33  * TRACEPOINT_EVENT defines functions; since we disable tracepoints under clang
34  * these functions are unused and so generate fatal warnings.
35  * (see mir_tracepoint.h and http://sourceware.org/bugzilla/show_bug.cgi?id=13974)
36  */
37 #pragma clang diagnostic push
38 #pragma clang diagnostic warning "-Wunused-function"
39 #endif
40 
42  mir_client_shared_library_prober,
43  probing_path,
44  TP_ARGS(const char*, path),
45  TP_FIELDS(
46  ctf_string(path, path)
47  )
48 )
49 
51  mir_client_shared_library_prober,
53  TP_ARGS(const char*, path, const char*, message),
54  TP_FIELDS(
55  ctf_string(path, path)
56  ctf_string(message, message)
57  )
58 )
59 
61  mir_client_shared_library_prober,
63  TP_ARGS(const char*, path),
64  TP_FIELDS(
65  ctf_string(path, path)
66  )
67 )
68 
70  mir_client_shared_library_prober,
72  TP_ARGS(const char*, path, const char*, message),
73  TP_FIELDS(
74  ctf_string(path, path)
75  ctf_string(message, message)
76  )
77 )
78 
79 #ifdef __clang__
80 #pragma clang diagnostic pop
81 #endif
82 
83 #endif /* MIR_CLIENT_LTTNG_SHARED_LIBRARY_PROBER_REPORT_TP_H_ */
84 
85 #include <lttng/tracepoint-event.h>
probing_failed
Definition: shared_library_prober_report_tp.h:52
TP_ARGS(const char *, path, const char *, message)
loading_failed
Definition: shared_library_prober_report_tp.h:71
TRACEPOINT_EVENT(mir_client_shared_library_prober, probing_path, TP_ARGS(const char *, path), TP_FIELDS(ctf_string(path, path))) TRACEPOINT_EVENT(mir_client_shared_library_prober
loading_library
Definition: shared_library_prober_report_tp.h:62
TP_FIELDS(ctf_string(path, path) ctf_string(message, message))) TRACEPOINT_EVENT(mir_client_shared_library_prober

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014