2 * Copyright (C) 2015 Broadcom
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
9 #if !defined(_VC4_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
12 #include <linux/stringify.h>
13 #include <linux/types.h>
14 #include <linux/tracepoint.h>
17 #define TRACE_SYSTEM vc4
18 #define TRACE_INCLUDE_FILE vc4_trace
20 TRACE_EVENT(vc4_wait_for_seqno_begin
,
21 TP_PROTO(struct drm_device
*dev
, uint64_t seqno
, uint64_t timeout
),
22 TP_ARGS(dev
, seqno
, timeout
),
31 __entry
->dev
= dev
->primary
->index
;
32 __entry
->seqno
= seqno
;
33 __entry
->timeout
= timeout
;
36 TP_printk("dev=%u, seqno=%llu, timeout=%llu",
37 __entry
->dev
, __entry
->seqno
, __entry
->timeout
)
40 TRACE_EVENT(vc4_wait_for_seqno_end
,
41 TP_PROTO(struct drm_device
*dev
, uint64_t seqno
),
50 __entry
->dev
= dev
->primary
->index
;
51 __entry
->seqno
= seqno
;
54 TP_printk("dev=%u, seqno=%llu",
55 __entry
->dev
, __entry
->seqno
)
58 #endif /* _VC4_TRACE_H_ */
60 /* This part must be outside protection */
61 #undef TRACE_INCLUDE_PATH
62 #define TRACE_INCLUDE_PATH .
63 #include <trace/define_trace.h>