summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/msm_atomic_trace.h
blob: b4ca0ed3b4a369ef43b448390ef7b66adeda6351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/* SPDX-License-Identifier: GPL-2.0 */
#if !defined(_MSM_GPU_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
#define _MSM_GPU_TRACE_H_

#include <linux/tracepoint.h>

#undef TRACE_SYSTEM
#define TRACE_SYSTEM drm_msm_atomic
#define TRACE_INCLUDE_FILE msm_atomic_trace

TRACE_EVENT(msm_atomic_commit_tail_start,
	    TP_PROTO(bool async, unsigned crtc_mask),
	    TP_ARGS(async, crtc_mask),
	    TP_STRUCT__entry(
		    __field(bool, async)
		    __field(u32, crtc_mask)
		    ),
	    TP_fast_assign(
		    __entry->async = async;
		    __entry->crtc_mask = crtc_mask;
		    ),
	    TP_printk("async=%d crtc_mask=%x",
		    __entry->async, __entry->crtc_mask)
);

TRACE_EVENT(msm_atomic_commit_tail_finish,
	    TP_PROTO(bool async, unsigned crtc_mask),
	    TP_ARGS(async, crtc_mask),
	    TP_STRUCT__entry(
		    __field(bool, async)
		    __field(u32, crtc_mask)
		    ),
	    TP_fast_assign(
		    __entry->async = async;
		    __entry->crtc_mask = crtc_mask;
		    ),
	    TP_printk("async=%d crtc_mask=%x",
		    __entry->async, __entry->crtc_mask)
);

TRACE_EVENT(msm_atomic_async_commit_start,
	    TP_PROTO(unsigned crtc_mask),
	    TP_ARGS(crtc_mask),
	    TP_STRUCT__entry(
		    __field(u32, crtc_mask)
		    ),
	    TP_fast_assign(
		    __entry->crtc_mask = crtc_mask;
		    ),
	    TP_printk("crtc_mask=%x",
		    __entry->crtc_mask)
);

TRACE_EVENT(msm_atomic_async_commit_finish,
	    TP_PROTO(unsigned crtc_mask),
	    TP_ARGS(crtc_mask),
	    TP_STRUCT__entry(
		    __field(u32, crtc_mask)
		    ),
	    TP_fast_assign(
		    __entry->crtc_mask = crtc_mask;
		    ),
	    TP_printk("crtc_mask=%x",
		    __entry->crtc_mask)
);

TRACE_EVENT(msm_atomic_wait_flush_start,
	    TP_PROTO(unsigned crtc_mask),
	    TP_ARGS(crtc_mask),
	    TP_STRUCT__entry(
		    __field(u32, crtc_mask)
		    ),
	    TP_fast_assign(
		    __entry->crtc_mask = crtc_mask;
		    ),
	    TP_printk("crtc_mask=%x",
		    __entry->crtc_mask)
);

TRACE_EVENT(msm_atomic_wait_flush_finish,
	    TP_PROTO(unsigned crtc_mask),
	    TP_ARGS(crtc_mask),
	    TP_STRUCT__entry(
		    __field(u32, crtc_mask)
		    ),
	    TP_fast_assign(
		    __entry->crtc_mask = crtc_mask;
		    ),
	    TP_printk("crtc_mask=%x",
		    __entry->crtc_mask)
);

TRACE_EVENT(msm_atomic_flush_commit,
	    TP_PROTO(unsigned crtc_mask),
	    TP_ARGS(crtc_mask),
	    TP_STRUCT__entry(
		    __field(u32, crtc_mask)
		    ),
	    TP_fast_assign(
		    __entry->crtc_mask = crtc_mask;
		    ),
	    TP_printk("crtc_mask=%x",
		    __entry->crtc_mask)
);

#endif

#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/msm
#include <trace/define_trace.h>