Commit | Line | Data |
---|---|---|
e09a6084 WF |
1 | #undef TRACE_SYSTEM |
2 | #define TRACE_SYSTEM v4l2 | |
3 | ||
3bc29f0a MD |
4 | #if !defined(LTTNG_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ) |
5 | #define LTTNG_TRACE_V4L2_H | |
e09a6084 | 6 | |
6ec43db8 | 7 | #include <probes/lttng-tracepoint-event.h> |
e09a6084 | 8 | |
f127e61e MD |
9 | LTTNG_TRACEPOINT_EVENT_CLASS(v4l2_class, |
10 | ||
11 | TP_PROTO(int minor, struct v4l2_buffer *buf), | |
12 | ||
13 | TP_ARGS(minor, buf), | |
14 | ||
15 | TP_FIELDS( | |
16 | ctf_integer(int, minor, minor) | |
17 | ctf_integer(u32, index, buf->index) | |
18 | ctf_integer(u32, type, buf->type) | |
19 | ctf_integer(u32, bytesused, buf->bytesused) | |
20 | ctf_integer(u32, flags, buf->flags) | |
21 | ctf_integer(u32, field, buf->field) | |
22 | ctf_integer(s64, timestamp, timeval_to_ns(&buf->timestamp)) | |
23 | ctf_integer(u32, timecode_type, buf->timecode.type) | |
24 | ctf_integer(u32, timecode_flags, buf->timecode.flags) | |
25 | ctf_integer(u8, timecode_frames, buf->timecode.frames) | |
26 | ctf_integer(u8, timecode_seconds, buf->timecode.seconds) | |
27 | ctf_integer(u8, timecode_minutes, buf->timecode.minutes) | |
28 | ctf_integer(u8, timecode_hours, buf->timecode.hours) | |
29 | ctf_array(u8, timecode_userbits, buf->timecode.userbits, 4) | |
30 | ctf_integer(u32, sequence, buf->sequence) | |
31 | ) | |
32 | ) | |
e09a6084 | 33 | |
f127e61e MD |
34 | LTTNG_TRACEPOINT_EVENT_INSTANCE(v4l2_class, |
35 | v4l2_dqbuf, | |
e09a6084 | 36 | |
f127e61e | 37 | TP_PROTO(int minor, struct v4l2_buffer *buf), |
e09a6084 | 38 | |
f127e61e MD |
39 | TP_ARGS(minor, buf) |
40 | ) | |
e09a6084 | 41 | |
f127e61e MD |
42 | LTTNG_TRACEPOINT_EVENT_INSTANCE(v4l2_class, |
43 | ||
44 | v4l2_qbuf, | |
45 | ||
46 | TP_PROTO(int minor, struct v4l2_buffer *buf), | |
e09a6084 | 47 | |
f127e61e MD |
48 | TP_ARGS(minor, buf) |
49 | ) | |
e09a6084 | 50 | |
3bc29f0a | 51 | #endif /* if !defined(LTTNG_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ) */ |
e09a6084 WF |
52 | |
53 | /* This part must be outside protection */ | |
6ec43db8 | 54 | #include <probes/define_trace.h> |