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 41*75af8fa7SThierry Reding DEFINE_EVENT(register_access, dsi_writel, 42*75af8fa7SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 43*75af8fa7SThierry Reding TP_ARGS(dev, offset, value)); 44*75af8fa7SThierry Reding DEFINE_EVENT(register_access, dsi_readl, 45*75af8fa7SThierry Reding TP_PROTO(struct device *dev, unsigned int offset, u32 value), 46*75af8fa7SThierry Reding TP_ARGS(dev, offset, value)); 47*75af8fa7SThierry Reding 4867e04d1aSThierry Reding #endif /* DRM_TEGRA_TRACE_H */ 4967e04d1aSThierry Reding 5067e04d1aSThierry Reding /* This part must be outside protection */ 5167e04d1aSThierry Reding #undef TRACE_INCLUDE_PATH 5267e04d1aSThierry Reding #define TRACE_INCLUDE_PATH . 5367e04d1aSThierry Reding #define TRACE_INCLUDE_FILE trace 5467e04d1aSThierry Reding #include <trace/define_trace.h> 55