4f274799103a7e390960c8962923d4d1fba265d4
1 // SPDX-FileCopyrightText: 2014 Wade Farnsworth <wade_farnsworth@mentor.com>
3 // SPDX-License-Identifier: GPL-2.0-only
6 #define TRACE_SYSTEM v4l2
8 #if !defined(LTTNG_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ)
9 #define LTTNG_TRACE_V4L2_H
11 #include <lttng/tracepoint-event.h>
13 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,6,0))
14 LTTNG_TRACEPOINT_EVENT_CLASS(v4l2_class
,
16 TP_PROTO(int minor
, struct v4l2_buffer
*buf
),
21 ctf_integer(int, minor
, minor
)
22 ctf_integer(u32
, index
, buf
->index
)
23 ctf_integer(u32
, type
, buf
->type
)
24 ctf_integer(u32
, bytesused
, buf
->bytesused
)
25 ctf_integer(u32
, flags
, buf
->flags
)
26 ctf_integer(u32
, field
, buf
->field
)
27 ctf_integer(s64
, timestamp
, v4l2_buffer_get_timestamp(buf
))
28 ctf_integer(u32
, timecode_type
, buf
->timecode
.type
)
29 ctf_integer(u32
, timecode_flags
, buf
->timecode
.flags
)
30 ctf_integer(u8
, timecode_frames
, buf
->timecode
.frames
)
31 ctf_integer(u8
, timecode_seconds
, buf
->timecode
.seconds
)
32 ctf_integer(u8
, timecode_minutes
, buf
->timecode
.minutes
)
33 ctf_integer(u8
, timecode_hours
, buf
->timecode
.hours
)
34 ctf_array(u8
, timecode_userbits
, buf
->timecode
.userbits
, 4)
35 ctf_integer(u32
, sequence
, buf
->sequence
)
39 LTTNG_TRACEPOINT_EVENT_CLASS(v4l2_class
,
41 TP_PROTO(int minor
, struct v4l2_buffer
*buf
),
46 ctf_integer(int, minor
, minor
)
47 ctf_integer(u32
, index
, buf
->index
)
48 ctf_integer(u32
, type
, buf
->type
)
49 ctf_integer(u32
, bytesused
, buf
->bytesused
)
50 ctf_integer(u32
, flags
, buf
->flags
)
51 ctf_integer(u32
, field
, buf
->field
)
52 ctf_integer(s64
, timestamp
, timeval_to_ns(&buf
->timestamp
))
53 ctf_integer(u32
, timecode_type
, buf
->timecode
.type
)
54 ctf_integer(u32
, timecode_flags
, buf
->timecode
.flags
)
55 ctf_integer(u8
, timecode_frames
, buf
->timecode
.frames
)
56 ctf_integer(u8
, timecode_seconds
, buf
->timecode
.seconds
)
57 ctf_integer(u8
, timecode_minutes
, buf
->timecode
.minutes
)
58 ctf_integer(u8
, timecode_hours
, buf
->timecode
.hours
)
59 ctf_array(u8
, timecode_userbits
, buf
->timecode
.userbits
, 4)
60 ctf_integer(u32
, sequence
, buf
->sequence
)
65 LTTNG_TRACEPOINT_EVENT_INSTANCE(v4l2_class
,
68 TP_PROTO(int minor
, struct v4l2_buffer
*buf
),
73 LTTNG_TRACEPOINT_EVENT_INSTANCE(v4l2_class
,
77 TP_PROTO(int minor
, struct v4l2_buffer
*buf
),
82 #endif /* if !defined(LTTNG_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ) */
84 /* This part must be outside protection */
85 #include <lttng/define_trace.h>
This page took 0.03312 seconds and 5 git commands to generate.