1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2015 Broadcom
6 #if !defined(_VC4_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
9 #include <linux/stringify.h>
10 #include <linux/types.h>
11 #include <linux/tracepoint.h>
14 #define TRACE_SYSTEM vc4
15 #define TRACE_INCLUDE_FILE vc4_trace
17 TRACE_EVENT(vc4_wait_for_seqno_begin
,
18 TP_PROTO(struct drm_device
*dev
, uint64_t seqno
, uint64_t timeout
),
19 TP_ARGS(dev
, seqno
, timeout
),
28 __entry
->dev
= dev
->primary
->index
;
29 __entry
->seqno
= seqno
;
30 __entry
->timeout
= timeout
;
33 TP_printk("dev=%u, seqno=%llu, timeout=%llu",
34 __entry
->dev
, __entry
->seqno
, __entry
->timeout
)
37 TRACE_EVENT(vc4_wait_for_seqno_end
,
38 TP_PROTO(struct drm_device
*dev
, uint64_t seqno
),
47 __entry
->dev
= dev
->primary
->index
;
48 __entry
->seqno
= seqno
;
51 TP_printk("dev=%u, seqno=%llu",
52 __entry
->dev
, __entry
->seqno
)
55 #endif /* _VC4_TRACE_H_ */
57 /* This part must be outside protection */
58 #undef TRACE_INCLUDE_PATH
59 #define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/vc4
60 #include <trace/define_trace.h>