mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
drm/tegra: Add trace support
Add trace support for the Tegra DRM driver by pulling in the relevant changes from the upstream Tegra DRM driver. Bug 3724727 Change-Id: Id34df005df76a27120282790a53c09c71361cec2 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2739540 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
1980c277ea
commit
38c4f3bbd5
66
drivers/gpu/drm/tegra/include/trace/events/trace.h
Normal file
66
drivers/gpu/drm/tegra/include/trace/events/trace.h
Normal file
@@ -0,0 +1,66 @@
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM tegra
|
||||
|
||||
#if !defined(DRM_TEGRA_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define DRM_TEGRA_TRACE_H 1
|
||||
|
||||
#include <linux/device.h>
|
||||
#include <linux/tracepoint.h>
|
||||
|
||||
DECLARE_EVENT_CLASS(register_access,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value),
|
||||
TP_STRUCT__entry(
|
||||
__field(struct device *, dev)
|
||||
__field(unsigned int, offset)
|
||||
__field(u32, value)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->dev = dev;
|
||||
__entry->offset = offset;
|
||||
__entry->value = value;
|
||||
),
|
||||
TP_printk("%s %04x %08x", dev_name(__entry->dev), __entry->offset,
|
||||
__entry->value)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(register_access, dc_writel,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
DEFINE_EVENT(register_access, dc_readl,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
|
||||
DEFINE_EVENT(register_access, hdmi_writel,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
DEFINE_EVENT(register_access, hdmi_readl,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
|
||||
DEFINE_EVENT(register_access, dsi_writel,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
DEFINE_EVENT(register_access, dsi_readl,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
|
||||
DEFINE_EVENT(register_access, dpaux_writel,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
DEFINE_EVENT(register_access, dpaux_readl,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
|
||||
DEFINE_EVENT(register_access, sor_writel,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
DEFINE_EVENT(register_access, sor_readl,
|
||||
TP_PROTO(struct device *dev, unsigned int offset, u32 value),
|
||||
TP_ARGS(dev, offset, value));
|
||||
|
||||
#endif /* DRM_TEGRA_TRACE_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
#define TRACE_INCLUDE_FILE trace
|
||||
#include <trace/define_trace.h>
|
||||
Reference in New Issue
Block a user