2 #define TRACE_SYSTEM coda
4 #if !defined(__CODA_TRACE_H__) || defined(TRACE_HEADER_MULTI_READ)
5 #define __CODA_TRACE_H__
7 #include <linux/tracepoint.h>
8 #include <media/videobuf2-v4l2.h>
12 TRACE_EVENT(coda_bit_run,
13 TP_PROTO(struct coda_ctx *ctx, int cmd),
24 __entry->minor = ctx->fh.vdev->minor;
25 __entry->ctx = ctx->idx;
29 TP_printk("minor = %d, ctx = %d, cmd = %d",
30 __entry->minor, __entry->ctx, __entry->cmd)
33 TRACE_EVENT(coda_bit_done,
34 TP_PROTO(struct coda_ctx *ctx),
44 __entry->minor = ctx->fh.vdev->minor;
45 __entry->ctx = ctx->idx;
48 TP_printk("minor = %d, ctx = %d", __entry->minor, __entry->ctx)
51 DECLARE_EVENT_CLASS(coda_buf_class,
52 TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
63 __entry->minor = ctx->fh.vdev->minor;
64 __entry->index = buf->vb2_buf.index;
65 __entry->ctx = ctx->idx;
68 TP_printk("minor = %d, index = %d, ctx = %d",
69 __entry->minor, __entry->index, __entry->ctx)
72 DEFINE_EVENT(coda_buf_class, coda_enc_pic_run,
73 TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
77 DEFINE_EVENT(coda_buf_class, coda_enc_pic_done,
78 TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
82 DECLARE_EVENT_CLASS(coda_buf_meta_class,
83 TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,
84 struct coda_buffer_meta *meta),
86 TP_ARGS(ctx, buf, meta),
97 __entry->minor = ctx->fh.vdev->minor;
98 __entry->index = buf->vb2_buf.index;
99 __entry->start = meta->start;
100 __entry->end = meta->end;
101 __entry->ctx = ctx->idx;
104 TP_printk("minor = %d, index = %d, start = 0x%x, end = 0x%x, ctx = %d",
105 __entry->minor, __entry->index, __entry->start, __entry->end,
109 DEFINE_EVENT(coda_buf_meta_class, coda_bit_queue,
110 TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,
111 struct coda_buffer_meta *meta),
112 TP_ARGS(ctx, buf, meta)
115 DECLARE_EVENT_CLASS(coda_meta_class,
116 TP_PROTO(struct coda_ctx *ctx, struct coda_buffer_meta *meta),
128 __entry->minor = ctx->fh.vdev->minor;
129 __entry->start = meta ? meta->start : 0;
130 __entry->end = meta ? meta->end : 0;
131 __entry->ctx = ctx->idx;
134 TP_printk("minor = %d, start = 0x%x, end = 0x%x, ctx = %d",
135 __entry->minor, __entry->start, __entry->end, __entry->ctx)
138 DEFINE_EVENT(coda_meta_class, coda_dec_pic_run,
139 TP_PROTO(struct coda_ctx *ctx, struct coda_buffer_meta *meta),
143 DEFINE_EVENT(coda_meta_class, coda_dec_pic_done,
144 TP_PROTO(struct coda_ctx *ctx, struct coda_buffer_meta *meta),
148 DEFINE_EVENT(coda_buf_meta_class, coda_dec_rot_done,
149 TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,
150 struct coda_buffer_meta *meta),
151 TP_ARGS(ctx, buf, meta)
154 #endif /* __CODA_TRACE_H__ */
156 #undef TRACE_INCLUDE_PATH
157 #define TRACE_INCLUDE_PATH .
158 #undef TRACE_INCLUDE_FILE
159 #define TRACE_INCLUDE_FILE trace
161 /* This part must be outside protection */
162 #include <trace/define_trace.h>