drm/radeon/kms: set DMA mask properly on newer PCI asics
[linux/fpc-iii.git] / drivers / gpu / drm / radeon / radeon_trace.h
blobeafd8160a15563c3aa762eabb6ea532aa766529a
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>
8 #include <drm/drmP.h>
10 #undef TRACE_SYSTEM
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),
17 TP_ARGS(bo),
18 TP_STRUCT__entry(
19 __field(struct radeon_bo *, bo)
20 __field(u32, pages)
23 TP_fast_assign(
24 __entry->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),
34 TP_ARGS(dev, seqno),
36 TP_STRUCT__entry(
37 __field(u32, dev)
38 __field(u32, seqno)
41 TP_fast_assign(
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),
53 TP_ARGS(dev, seqno)
56 DEFINE_EVENT(radeon_fence_request, radeon_fence_retire,
58 TP_PROTO(struct drm_device *dev, u32 seqno),
60 TP_ARGS(dev, seqno)
63 DEFINE_EVENT(radeon_fence_request, radeon_fence_wait_begin,
65 TP_PROTO(struct drm_device *dev, u32 seqno),
67 TP_ARGS(dev, seqno)
70 DEFINE_EVENT(radeon_fence_request, radeon_fence_wait_end,
72 TP_PROTO(struct drm_device *dev, u32 seqno),
74 TP_ARGS(dev, seqno)
77 #endif
79 /* This part must be outside protection */
80 #undef TRACE_INCLUDE_PATH
81 #define TRACE_INCLUDE_PATH .
82 #include <trace/define_trace.h>