3 * (C) COPYRIGHT 2012-2016 ARM Limited. All rights reserved.
5 * This program is free software and is provided to you under the terms of the
6 * GNU General Public License version 2 as published by the Free Software
7 * Foundation, and any use by you of this program is subject to the terms
10 * A copy of the licence is included with the program, and can also be obtained
11 * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12 * Boston, MA 02110-1301, USA.
21 #define TRACE_SYSTEM mali_timeline
23 #if !defined(_MALI_TIMELINE_H) || defined(TRACE_HEADER_MULTI_READ)
24 #define _MALI_TIMELINE_H
26 #include <linux/tracepoint.h>
28 TRACE_EVENT(mali_timeline_atoms_in_flight,
48 __entry->ts_sec = ts_sec;
49 __entry->ts_nsec = ts_nsec;
51 __entry->count = count;
54 TP_printk("%i,%i.%.9i,%i,%i", CTX_SET_NR_ATOMS_IN_FLIGHT,
56 (int)__entry->ts_nsec,
62 TRACE_EVENT(mali_timeline_atom,
79 __field(int, event_type)
85 __entry->ts_sec = ts_sec;
86 __entry->ts_nsec = ts_nsec;
87 __entry->event_type = event_type;
89 __entry->atom_id = atom_id;
92 TP_printk("%i,%i.%.9i,%i,%i,%i", __entry->event_type,
94 (int)__entry->ts_nsec,
100 TRACE_EVENT(mali_timeline_gpu_slot_active,
118 __field(u32, ts_nsec)
119 __field(int, event_type)
126 __entry->ts_sec = ts_sec;
127 __entry->ts_nsec = ts_nsec;
128 __entry->event_type = event_type;
129 __entry->tgid = tgid;
131 __entry->count = count;
134 TP_printk("%i,%i.%.9i,%i,%i,%i", __entry->event_type,
135 (int)__entry->ts_sec,
136 (int)__entry->ts_nsec,
142 TRACE_EVENT(mali_timeline_gpu_slot_action,
160 __field(u32, ts_nsec)
161 __field(int, event_type)
168 __entry->ts_sec = ts_sec;
169 __entry->ts_nsec = ts_nsec;
170 __entry->event_type = event_type;
171 __entry->tgid = tgid;
173 __entry->count = count;
176 TP_printk("%i,%i.%.9i,%i,%i,%i", __entry->event_type,
177 (int)__entry->ts_sec,
178 (int)__entry->ts_nsec,
184 TRACE_EVENT(mali_timeline_gpu_power_active,
198 __field(u32, ts_nsec)
199 __field(int, event_type)
204 __entry->ts_sec = ts_sec;
205 __entry->ts_nsec = ts_nsec;
206 __entry->event_type = event_type;
207 __entry->active = active;
210 TP_printk("%i,%i.%.9i,0,%i", __entry->event_type,
211 (int)__entry->ts_sec,
212 (int)__entry->ts_nsec,
217 TRACE_EVENT(mali_timeline_l2_power_active,
231 __field(u32, ts_nsec)
232 __field(int, event_type)
237 __entry->ts_sec = ts_sec;
238 __entry->ts_nsec = ts_nsec;
239 __entry->event_type = event_type;
240 __entry->state = state;
243 TP_printk("%i,%i.%.9i,0,%i", __entry->event_type,
244 (int)__entry->ts_sec,
245 (int)__entry->ts_nsec,
249 TRACE_EVENT(mali_timeline_pm_event,
255 unsigned int pm_event_id),
265 __field(u32, ts_nsec)
266 __field(int, event_type)
267 __field(int, pm_event_type)
268 __field(unsigned int, pm_event_id)
272 __entry->ts_sec = ts_sec;
273 __entry->ts_nsec = ts_nsec;
274 __entry->event_type = event_type;
275 __entry->pm_event_type = pm_event_type;
276 __entry->pm_event_id = pm_event_id;
279 TP_printk("%i,%i.%.9i,0,%i,%u", __entry->event_type,
280 (int)__entry->ts_sec,
281 (int)__entry->ts_nsec,
282 __entry->pm_event_type, __entry->pm_event_id)
286 TRACE_EVENT(mali_timeline_slot_atom,
304 __field(u32, ts_nsec)
305 __field(int, event_type)
308 __field(int, atom_id)
312 __entry->ts_sec = ts_sec;
313 __entry->ts_nsec = ts_nsec;
314 __entry->event_type = event_type;
315 __entry->tgid = tgid;
317 __entry->atom_id = atom_id;
320 TP_printk("%i,%i.%.9i,%i,%i,%i", __entry->event_type,
321 (int)__entry->ts_sec,
322 (int)__entry->ts_nsec,
328 TRACE_EVENT(mali_timeline_pm_checktrans,
342 __field(u32, ts_nsec)
343 __field(int, trans_code)
344 __field(int, trans_id)
348 __entry->ts_sec = ts_sec;
349 __entry->ts_nsec = ts_nsec;
350 __entry->trans_code = trans_code;
351 __entry->trans_id = trans_id;
354 TP_printk("%i,%i.%.9i,0,%i", __entry->trans_code,
355 (int)__entry->ts_sec,
356 (int)__entry->ts_nsec,
361 TRACE_EVENT(mali_timeline_context_active,
373 __field(u32, ts_nsec)
378 __entry->ts_sec = ts_sec;
379 __entry->ts_nsec = ts_nsec;
380 __entry->count = count;
383 TP_printk("%i,%i.%.9i,0,%i", SW_SET_CONTEXT_ACTIVE,
384 (int)__entry->ts_sec,
385 (int)__entry->ts_nsec,
389 #endif /* _MALI_TIMELINE_H */
391 #undef TRACE_INCLUDE_PATH
392 #define TRACE_INCLUDE_PATH .
394 /* This part must be outside protection */
395 #include <trace/define_trace.h>