Mir
compositor_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 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 #undef TRACEPOINT_PROVIDER
20 #define TRACEPOINT_PROVIDER mir_server_compositor
21 
22 #undef TRACEPOINT_INCLUDE
23 #define TRACEPOINT_INCLUDE "./compositor_report_tp.h"
24 
25 #if !defined(MIR_LTTNG_COMPOSITOR_REPORT_TP_H_) || defined(TRACEPOINT_HEADER_MULTI_READ)
26 #define MIR_LTTNG_COMPOSITOR_REPORT_TP_H_
27 
28 #include "lttng_utils.h"
29 
30 MIR_LTTNG_VOID_TRACE_CLASS(mir_server_compositor)
31 
32 #define COMPOSITOR_TRACE_POINT(name) MIR_LTTNG_VOID_TRACE_POINT(TRACEPOINT_PROVIDER, name)
33 
36 COMPOSITOR_TRACE_POINT(scheduled)
37 
38 #undef COMPOSITOR_TRACE_POINT
39 
41  mir_server_compositor,
42  added_display,
43  TP_ARGS(int, width, int, height, int, x, int, y, void const*, id),
44  TP_FIELDS(
45  ctf_integer(int, width, width)
46  ctf_integer(int, height, height)
47  ctf_integer(int, x, x)
48  ctf_integer(int, y, y)
49  ctf_integer_hex(uintptr_t, id, (uintptr_t)(id))
50  )
51 )
52 
54  mir_server_compositor,
56  TP_ARGS(void const*, id),
57  TP_FIELDS(
58  ctf_integer_hex(uintptr_t, id, (uintptr_t)(id))
59  )
60 )
61 
63  mir_server_compositor,
65  TP_ARGS(void const*, id),
66  TP_FIELDS(
67  ctf_integer_hex(uintptr_t, id, (uintptr_t)(id))
68  )
69 )
70 
72  mir_server_compositor,
74  TP_ARGS(void const*, id),
75  TP_FIELDS(
76  ctf_integer_hex(uintptr_t, id, (uintptr_t)(id))
77  )
78 )
79 
81  mir_server_compositor,
83  TP_ARGS(void const*, id, unsigned int*, buffer_ids, size_t, buffer_ids_len),
84  TP_FIELDS(
85  ctf_integer_hex(uintptr_t, id, (uintptr_t)(id))
86  ctf_sequence(unsigned int, buffer_ids, buffer_ids, size_t, buffer_ids_len)
87  )
88 )
89 
90 #endif /* MIR_LTTNG_COMPOSITOR_REPORT_TP_H_ */
91 
92 #include <lttng/tracepoint-event.h>
buffers_in_frame
Definition: compositor_report_tp.h:82
began_frame
Definition: compositor_report_tp.h:55
TP_ARGS(void const *, id)
#define COMPOSITOR_TRACE_POINT(name)
Definition: compositor_report_tp.h:32
finished_frame
Definition: compositor_report_tp.h:73
#define MIR_LTTNG_VOID_TRACE_CLASS(comp)
Definition: lttng_utils.h:31
unsigned int width
Definition: touchspot_image.c:4
TRACEPOINT_EVENT(mir_server_compositor, added_display, TP_ARGS(int, width, int, height, int, x, int, y, void const *, id), TP_FIELDS(ctf_integer(int, width, width) ctf_integer(int, height, height) ctf_integer(int, x, x) ctf_integer(int, y, y) ctf_integer_hex(uintptr_t, id,(uintptr_t)(id)))) TRACEPOINT_EVENT(mir_server_compositor
rendered_frame
Definition: compositor_report_tp.h:64
unsigned int height
Definition: touchspot_image.c:5
TP_FIELDS(ctf_integer_hex(uintptr_t, id,(uintptr_t)(id)))) TRACEPOINT_EVENT(mir_server_compositor

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016