Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
input_receiver_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: Andreas Pokorny <andreas.pokorny@canonical.com>
17  */
18 
19 #undef TRACEPOINT_PROVIDER
20 #define TRACEPOINT_PROVIDER mir_client_input_receiver
21 
22 #undef TRACEPOINT_INCLUDE
23 #define TRACEPOINT_INCLUDE "./input_receiver_report_tp.h"
24 
25 #if !defined(MIR_CLIENT_LTTNG_INPUT_RECEIVER_REPORT_TP_H_) || defined(TRACEPOINT_HEADER_MULTI_READ)
26 #define MIR_CLIENT_LTTNG_INPUT_RECEIVER_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_input_receiver,
43  key_event,
44  TP_ARGS(int32_t, device_id, int32_t, source_id, int, action, int, flags, unsigned int, modifiers, int32_t, key_code, int32_t, scan_code, int64_t, down_time, int64_t, event_time),
45  TP_FIELDS(
46  ctf_integer(int32_t, device_id, device_id)
47  ctf_integer(int32_t, source_id, source_id)
48  ctf_integer(int, action, action)
49  ctf_integer(int, flags, flags)
50  ctf_integer(unsigned int, modifiers, modifiers)
51  ctf_integer(int32_t, key_code, key_code)
52  ctf_integer(int32_t, scan_code, scan_code)
53  ctf_integer(int64_t, down_time, down_time)
54  ctf_integer(int64_t, event_time, event_time)
55  )
56 )
57 
59  mir_client_input_receiver,
61  TP_ARGS(int32_t, device_id, int32_t, source_id, int, action, int, flags, unsigned int, modifiers, int32_t, edge_flags, int, button_state, int64_t, down_time, int64_t, event_time),
62  TP_FIELDS(
63  ctf_integer(int32_t, device_id, device_id)
64  ctf_integer(int32_t, source_id, source_id)
65  ctf_integer(int, action, action)
66  ctf_integer(int, flags, flags)
67  ctf_integer(unsigned int, modifiers, modifiers)
68  ctf_integer(int32_t, edge_flags, edge_flags)
69  ctf_integer(int, button_state, button_state)
70  ctf_integer(int64_t, down_time, down_time)
71  ctf_integer(int64_t, event_time, event_time)
72  )
73 )
74 
76  mir_client_input_receiver,
78  TP_ARGS(int, id, float, x, float, y, float, touch_major, float, touch_minor, float, size, float, pressure, float, orientation),
79  TP_FIELDS(
80  ctf_integer(int, id, id)
81  ctf_float(float, x, x)
82  ctf_float(float, y, y)
83  ctf_float(float, touch_major, touch_major)
84  ctf_float(float, touch_minor, touch_minor)
85  ctf_float(float, size, size)
86  ctf_float(float, pressure, pressure)
87  ctf_float(float, orientation, orientation)
88  )
89 )
90 
91 #ifdef __clang__
92 #pragma clang diagnostic pop
93 #endif
94 
95 #endif /* MIR_CLIENT_LTTNG_INPUT_RECEIVER_REPORT_TP_H_ */
96 
97 #include <lttng/tracepoint-event.h>
motion_event_coordinate
Definition: input_receiver_report_tp.h:77
Definition: dimensions.h:35
TP_FIELDS(ctf_integer(int32_t, device_id, device_id) ctf_integer(int32_t, source_id, source_id) ctf_integer(int, action, action) ctf_integer(int, flags, flags) ctf_integer(unsigned int, modifiers, modifiers) ctf_integer(int32_t, edge_flags, edge_flags) ctf_integer(int, button_state, button_state) ctf_integer(int64_t, down_time, down_time) ctf_integer(int64_t, event_time, event_time))) TRACEPOINT_EVENT(mir_client_input_receiver
motion_event
Definition: input_receiver_report_tp.h:60
TRACEPOINT_EVENT(mir_client_input_receiver, key_event, TP_ARGS(int32_t, device_id, int32_t, source_id, int, action, int, flags, unsigned int, modifiers, int32_t, key_code, int32_t, scan_code, int64_t, down_time, int64_t, event_time), TP_FIELDS(ctf_integer(int32_t, device_id, device_id) ctf_integer(int32_t, source_id, source_id) ctf_integer(int, action, action) ctf_integer(int, flags, flags) ctf_integer(unsigned int, modifiers, modifiers) ctf_integer(int32_t, key_code, key_code) ctf_integer(int32_t, scan_code, scan_code) ctf_integer(int64_t, down_time, down_time) ctf_integer(int64_t, event_time, event_time))) TRACEPOINT_EVENT(mir_client_input_receiver
Definition: dimensions.h:35
TP_ARGS(int32_t, device_id, int32_t, source_id, int, action, int, flags, unsigned int, modifiers, int32_t, edge_flags, int, button_state, int64_t, down_time, int64_t, event_time)
int const size
Definition: make_socket_rpc_channel.cpp:50

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014