1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #define TRACE_SYSTEM v4l2
5 #if !defined(LTTNG_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_V4L2_H
8 #include <probes/lttng-tracepoint-event.h>
10 LTTNG_TRACEPOINT_EVENT_CLASS(v4l2_class
,
12 TP_PROTO(int minor
, struct v4l2_buffer
*buf
),
17 ctf_integer(int, minor
, minor
)
18 ctf_integer(u32
, index
, buf
->index
)
19 ctf_integer(u32
, type
, buf
->type
)
20 ctf_integer(u32
, bytesused
, buf
->bytesused
)
21 ctf_integer(u32
, flags
, buf
->flags
)
22 ctf_integer(u32
, field
, buf
->field
)
23 ctf_integer(s64
, timestamp
, v4l2_buffer_get_timestamp(buf
))
24 ctf_integer(u32
, timecode_type
, buf
->timecode
.type
)
25 ctf_integer(u32
, timecode_flags
, buf
->timecode
.flags
)
26 ctf_integer(u8
, timecode_frames
, buf
->timecode
.frames
)
27 ctf_integer(u8
, timecode_seconds
, buf
->timecode
.seconds
)
28 ctf_integer(u8
, timecode_minutes
, buf
->timecode
.minutes
)
29 ctf_integer(u8
, timecode_hours
, buf
->timecode
.hours
)
30 ctf_array(u8
, timecode_userbits
, buf
->timecode
.userbits
, 4)
31 ctf_integer(u32
, sequence
, buf
->sequence
)
35 LTTNG_TRACEPOINT_EVENT_INSTANCE(v4l2_class
,
38 TP_PROTO(int minor
, struct v4l2_buffer
*buf
),
43 LTTNG_TRACEPOINT_EVENT_INSTANCE(v4l2_class
,
47 TP_PROTO(int minor
, struct v4l2_buffer
*buf
),
52 #endif /* if !defined(LTTNG_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ) */
54 /* This part must be outside protection */
55 #include <probes/define_trace.h>
This page took 0.047324 seconds and 5 git commands to generate.