hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/media/platform/coda/trace.h
....@@ -97,8 +97,8 @@
9797 TP_fast_assign(
9898 __entry->minor = ctx->fh.vdev->minor;
9999 __entry->index = buf->vb2_buf.index;
100
- __entry->start = meta->start;
101
- __entry->end = meta->end;
100
+ __entry->start = meta->start & ctx->bitstream_fifo.kfifo.mask;
101
+ __entry->end = meta->end & ctx->bitstream_fifo.kfifo.mask;
102102 __entry->ctx = ctx->idx;
103103 ),
104104
....@@ -127,8 +127,10 @@
127127
128128 TP_fast_assign(
129129 __entry->minor = ctx->fh.vdev->minor;
130
- __entry->start = meta ? meta->start : 0;
131
- __entry->end = meta ? meta->end : 0;
130
+ __entry->start = meta ? (meta->start &
131
+ ctx->bitstream_fifo.kfifo.mask) : 0;
132
+ __entry->end = meta ? (meta->end &
133
+ ctx->bitstream_fifo.kfifo.mask) : 0;
132134 __entry->ctx = ctx->idx;
133135 ),
134136
....@@ -152,10 +154,20 @@
152154 TP_ARGS(ctx, buf, meta)
153155 );
154156
157
+DEFINE_EVENT(coda_buf_class, coda_jpeg_run,
158
+ TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
159
+ TP_ARGS(ctx, buf)
160
+);
161
+
162
+DEFINE_EVENT(coda_buf_class, coda_jpeg_done,
163
+ TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
164
+ TP_ARGS(ctx, buf)
165
+);
166
+
155167 #endif /* __CODA_TRACE_H__ */
156168
157169 #undef TRACE_INCLUDE_PATH
158
-#define TRACE_INCLUDE_PATH .
170
+#define TRACE_INCLUDE_PATH ../../drivers/media/platform/coda
159171 #undef TRACE_INCLUDE_FILE
160172 #define TRACE_INCLUDE_FILE trace
161173