1 #if !defined(_RADEON_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
2 #define _RADEON_TRACE_H_
4 #include <linux/stringify.h>
5 #include <linux/types.h>
6 #include <linux/tracepoint.h>
11 #define TRACE_SYSTEM radeon
12 #define TRACE_SYSTEM_STRING __stringify(TRACE_SYSTEM)
13 #define TRACE_INCLUDE_FILE radeon_trace
15 TRACE_EVENT(radeon_bo_create
,
16 TP_PROTO(struct radeon_bo
*bo
),
19 __field(struct radeon_bo
*, bo
)
25 __entry
->pages
= bo
->tbo
.num_pages
;
27 TP_printk("bo=%p, pages=%u", __entry
->bo
, __entry
->pages
)
30 DECLARE_EVENT_CLASS(radeon_fence_request
,
32 TP_PROTO(struct drm_device
*dev
, u32 seqno
),
42 __entry
->dev
= dev
->primary
->index
;
43 __entry
->seqno
= seqno
;
46 TP_printk("dev=%u, seqno=%u", __entry
->dev
, __entry
->seqno
)
49 DEFINE_EVENT(radeon_fence_request
, radeon_fence_emit
,
51 TP_PROTO(struct drm_device
*dev
, u32 seqno
),
56 DEFINE_EVENT(radeon_fence_request
, radeon_fence_retire
,
58 TP_PROTO(struct drm_device
*dev
, u32 seqno
),
63 DEFINE_EVENT(radeon_fence_request
, radeon_fence_wait_begin
,
65 TP_PROTO(struct drm_device
*dev
, u32 seqno
),
70 DEFINE_EVENT(radeon_fence_request
, radeon_fence_wait_end
,
72 TP_PROTO(struct drm_device
*dev
, u32 seqno
),
79 /* This part must be outside protection */
80 #undef TRACE_INCLUDE_PATH
81 #define TRACE_INCLUDE_PATH .
82 #include <trace/define_trace.h>