mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 12:54:09 +07:00
d934a712c5
This was useful for debugging fps drops. I suspect it will be useful again. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Sean Paul <sean@poorly.run>
111 lines
2.6 KiB
C
111 lines
2.6 KiB
C
/* 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>
|