167e04d1aSThierry Reding #undef TRACE_SYSTEM 267e04d1aSThierry Reding #define TRACE_SYSTEM tegra 367e04d1aSThierry Reding 467e04d1aSThierry Reding #if !defined(DRM_TEGRA_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) 567e04d1aSThierry Reding #define DRM_TEGRA_TRACE_H 1 667e04d1aSThierry Reding 767e04d1aSThierry Reding #include <linux/device.h> 867e04d1aSThierry Reding #include <linux/tracepoint.h> 967e04d1aSThierry Reding 1067e04d1aSThierry Reding DECLARE_EVENT_CLASS(register_access, 1167e04d1aSThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 1267e04d1aSThierry Reding TP_ARGS(dev, offset, value), 1367e04d1aSThierry Reding TP_STRUCT__entry( 1467e04d1aSThierry Reding __field(struct device *, dev) 1567e04d1aSThierry Reding __field(unsigned int, offset) 1667e04d1aSThierry Reding __field(u32, value) 1767e04d1aSThierry Reding ), 1867e04d1aSThierry Reding TP_fast_assign( 1967e04d1aSThierry Reding __entry->dev = dev; 2067e04d1aSThierry Reding __entry->offset = offset; 2167e04d1aSThierry Reding __entry->value = value; 2267e04d1aSThierry Reding ), 2367e04d1aSThierry Reding TP_printk("%s %04x %08x", dev_name(__entry->dev), __entry->offset, 2467e04d1aSThierry Reding __entry->value) 2567e04d1aSThierry Reding ); 2667e04d1aSThierry Reding 2767e04d1aSThierry Reding DEFINE_EVENT(register_access, dc_writel, 2867e04d1aSThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 2967e04d1aSThierry Reding TP_ARGS(dev, offset, value)); 3067e04d1aSThierry Reding DEFINE_EVENT(register_access, dc_readl, 3167e04d1aSThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 3267e04d1aSThierry Reding TP_ARGS(dev, offset, value)); 3367e04d1aSThierry Reding 3407a8aab8SThierry Reding DEFINE_EVENT(register_access, hdmi_writel, 3507a8aab8SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 3607a8aab8SThierry Reding TP_ARGS(dev, offset, value)); 3707a8aab8SThierry Reding DEFINE_EVENT(register_access, hdmi_readl, 3807a8aab8SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 3907a8aab8SThierry Reding TP_ARGS(dev, offset, value)); 4007a8aab8SThierry Reding 4175af8fa7SThierry Reding DEFINE_EVENT(register_access, dsi_writel, 4275af8fa7SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 4375af8fa7SThierry Reding TP_ARGS(dev, offset, value)); 4475af8fa7SThierry Reding DEFINE_EVENT(register_access, dsi_readl, 4575af8fa7SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 4675af8fa7SThierry Reding TP_ARGS(dev, offset, value)); 4775af8fa7SThierry Reding 48eba7c455SThierry Reding DEFINE_EVENT(register_access, dpaux_writel, 49eba7c455SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 50eba7c455SThierry Reding TP_ARGS(dev, offset, value)); 51eba7c455SThierry Reding DEFINE_EVENT(register_access, dpaux_readl, 52eba7c455SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 53eba7c455SThierry Reding TP_ARGS(dev, offset, value)); 54eba7c455SThierry Reding 55932f6529SThierry Reding DEFINE_EVENT(register_access, sor_writel, 56932f6529SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 57932f6529SThierry Reding TP_ARGS(dev, offset, value)); 58932f6529SThierry Reding DEFINE_EVENT(register_access, sor_readl, 59932f6529SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 60932f6529SThierry Reding TP_ARGS(dev, offset, value)); 61932f6529SThierry Reding 6267e04d1aSThierry Reding #endif /* DRM_TEGRA_TRACE_H */ 6367e04d1aSThierry Reding 6467e04d1aSThierry Reding /* This part must be outside protection */ 6567e04d1aSThierry Reding #undef TRACE_INCLUDE_PATH 66*a98c75fcSThierry Reding #define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/tegra 6767e04d1aSThierry Reding #define TRACE_INCLUDE_FILE trace 6867e04d1aSThierry Reding #include <trace/define_trace.h> 69