aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/traceevent/event-parse-api.c')
-rw-r--r--tools/lib/traceevent/event-parse-api.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/tools/lib/traceevent/event-parse-api.c b/tools/lib/traceevent/event-parse-api.c
index 3686a221e981..3716a9142aef 100644
--- a/tools/lib/traceevent/event-parse-api.c
+++ b/tools/lib/traceevent/event-parse-api.c
@@ -32,7 +32,7 @@ struct tep_event *tep_get_first_event(struct tep_handle *tep)
32 */ 32 */
33int tep_get_events_count(struct tep_handle *tep) 33int tep_get_events_count(struct tep_handle *tep)
34{ 34{
35 if(tep) 35 if (tep)
36 return tep->nr_events; 36 return tep->nr_events;
37 return 0; 37 return 0;
38} 38}
@@ -47,7 +47,7 @@ int tep_get_events_count(struct tep_handle *tep)
47 */ 47 */
48void tep_set_flag(struct tep_handle *tep, int flag) 48void tep_set_flag(struct tep_handle *tep, int flag)
49{ 49{
50 if(tep) 50 if (tep)
51 tep->flags |= flag; 51 tep->flags |= flag;
52} 52}
53 53
@@ -108,7 +108,7 @@ tep_data2host8(struct tep_handle *pevent, unsigned long long data)
108 */ 108 */
109int tep_get_header_page_size(struct tep_handle *pevent) 109int tep_get_header_page_size(struct tep_handle *pevent)
110{ 110{
111 if(pevent) 111 if (pevent)
112 return pevent->header_page_size_size; 112 return pevent->header_page_size_size;
113 return 0; 113 return 0;
114} 114}
@@ -122,7 +122,7 @@ int tep_get_header_page_size(struct tep_handle *pevent)
122 */ 122 */
123int tep_get_cpus(struct tep_handle *pevent) 123int tep_get_cpus(struct tep_handle *pevent)
124{ 124{
125 if(pevent) 125 if (pevent)
126 return pevent->cpus; 126 return pevent->cpus;
127 return 0; 127 return 0;
128} 128}
@@ -135,7 +135,7 @@ int tep_get_cpus(struct tep_handle *pevent)
135 */ 135 */
136void tep_set_cpus(struct tep_handle *pevent, int cpus) 136void tep_set_cpus(struct tep_handle *pevent, int cpus)
137{ 137{
138 if(pevent) 138 if (pevent)
139 pevent->cpus = cpus; 139 pevent->cpus = cpus;
140} 140}
141 141
@@ -148,7 +148,7 @@ void tep_set_cpus(struct tep_handle *pevent, int cpus)
148 */ 148 */
149int tep_get_long_size(struct tep_handle *pevent) 149int tep_get_long_size(struct tep_handle *pevent)
150{ 150{
151 if(pevent) 151 if (pevent)
152 return pevent->long_size; 152 return pevent->long_size;
153 return 0; 153 return 0;
154} 154}
@@ -162,7 +162,7 @@ int tep_get_long_size(struct tep_handle *pevent)
162 */ 162 */
163void tep_set_long_size(struct tep_handle *pevent, int long_size) 163void tep_set_long_size(struct tep_handle *pevent, int long_size)
164{ 164{
165 if(pevent) 165 if (pevent)
166 pevent->long_size = long_size; 166 pevent->long_size = long_size;
167} 167}
168 168
@@ -175,7 +175,7 @@ void tep_set_long_size(struct tep_handle *pevent, int long_size)
175 */ 175 */
176int tep_get_page_size(struct tep_handle *pevent) 176int tep_get_page_size(struct tep_handle *pevent)
177{ 177{
178 if(pevent) 178 if (pevent)
179 return pevent->page_size; 179 return pevent->page_size;
180 return 0; 180 return 0;
181} 181}
@@ -189,7 +189,7 @@ int tep_get_page_size(struct tep_handle *pevent)
189 */ 189 */
190void tep_set_page_size(struct tep_handle *pevent, int _page_size) 190void tep_set_page_size(struct tep_handle *pevent, int _page_size)
191{ 191{
192 if(pevent) 192 if (pevent)
193 pevent->page_size = _page_size; 193 pevent->page_size = _page_size;
194} 194}
195 195
@@ -202,7 +202,7 @@ void tep_set_page_size(struct tep_handle *pevent, int _page_size)
202 */ 202 */
203int tep_file_bigendian(struct tep_handle *pevent) 203int tep_file_bigendian(struct tep_handle *pevent)
204{ 204{
205 if(pevent) 205 if (pevent)
206 return pevent->file_bigendian; 206 return pevent->file_bigendian;
207 return 0; 207 return 0;
208} 208}
@@ -216,7 +216,7 @@ int tep_file_bigendian(struct tep_handle *pevent)
216 */ 216 */
217void tep_set_file_bigendian(struct tep_handle *pevent, enum tep_endian endian) 217void tep_set_file_bigendian(struct tep_handle *pevent, enum tep_endian endian)
218{ 218{
219 if(pevent) 219 if (pevent)
220 pevent->file_bigendian = endian; 220 pevent->file_bigendian = endian;
221} 221}
222 222
@@ -229,7 +229,7 @@ void tep_set_file_bigendian(struct tep_handle *pevent, enum tep_endian endian)
229 */ 229 */
230int tep_is_host_bigendian(struct tep_handle *pevent) 230int tep_is_host_bigendian(struct tep_handle *pevent)
231{ 231{
232 if(pevent) 232 if (pevent)
233 return pevent->host_bigendian; 233 return pevent->host_bigendian;
234 return 0; 234 return 0;
235} 235}
@@ -243,7 +243,7 @@ int tep_is_host_bigendian(struct tep_handle *pevent)
243 */ 243 */
244void tep_set_host_bigendian(struct tep_handle *pevent, enum tep_endian endian) 244void tep_set_host_bigendian(struct tep_handle *pevent, enum tep_endian endian)
245{ 245{
246 if(pevent) 246 if (pevent)
247 pevent->host_bigendian = endian; 247 pevent->host_bigendian = endian;
248} 248}
249 249
@@ -256,7 +256,7 @@ void tep_set_host_bigendian(struct tep_handle *pevent, enum tep_endian endian)
256 */ 256 */
257int tep_is_latency_format(struct tep_handle *pevent) 257int tep_is_latency_format(struct tep_handle *pevent)
258{ 258{
259 if(pevent) 259 if (pevent)
260 return pevent->latency_format; 260 return pevent->latency_format;
261 return 0; 261 return 0;
262} 262}
@@ -270,6 +270,6 @@ int tep_is_latency_format(struct tep_handle *pevent)
270 */ 270 */
271void tep_set_latency_format(struct tep_handle *pevent, int lat) 271void tep_set_latency_format(struct tep_handle *pevent, int lat)
272{ 272{
273 if(pevent) 273 if (pevent)
274 pevent->latency_format = lat; 274 pevent->latency_format = lat;
275} 275}