1 // SPDX-License-Identifier: GPL-2.0+
2 /* Copyright (C) 2015-2018 Broadcom */
4 #if !defined(_V3D_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/stringify.h>
8 #include <linux/types.h>
9 #include <linux/tracepoint.h>
12 #define TRACE_SYSTEM v3d
13 #define TRACE_INCLUDE_FILE v3d_trace
15 TRACE_EVENT(v3d_submit_cl,
16 TP_PROTO(struct drm_device *dev, bool is_render,
18 u32 ctnqba, u32 ctnqea),
19 TP_ARGS(dev, is_render, seqno, ctnqba, ctnqea),
23 __field(bool, is_render)
30 __entry->dev = dev->primary->index;
31 __entry->is_render = is_render;
32 __entry->seqno = seqno;
33 __entry->ctnqba = ctnqba;
34 __entry->ctnqea = ctnqea;
37 TP_printk("dev=%u, %s, seqno=%llu, 0x%08x..0x%08x",
39 __entry->is_render ? "RCL" : "BCL",
45 TRACE_EVENT(v3d_reset_begin,
46 TP_PROTO(struct drm_device *dev),
54 __entry->dev = dev->primary->index;
61 TRACE_EVENT(v3d_reset_end,
62 TP_PROTO(struct drm_device *dev),
70 __entry->dev = dev->primary->index;
77 #endif /* _V3D_TRACE_H_ */
79 /* This part must be outside protection */
80 #undef TRACE_INCLUDE_PATH
81 #define TRACE_INCLUDE_PATH .
82 #include <trace/define_trace.h>