<div dir="ltr"><div><div><div><div>Hi Wade,<br></div>I've tried this (very useful) new tracepoints, but I get the following compile warning:<br><br> CC [M] /home/jang/src/git-trees/lttng-modules/probes/lttng-kprobes.o<br>
In file included from /home/jang/src/git-trees/lttng-modules/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:141:0,<br> from /home/jang/src/git-trees/lttng-modules/probes/../instrumentation/events/lttng-module/v4l2.h:157,<br>
from /home/jang/src/git-trees/lttng-modules/probes/lttng-probe-v4l2.c:40:<br>/home/jang/src/git-trees/lttng-modules/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/v4l2.h:69:0: warning: "V4L2_TRACE_EVENT" redefined [enabled by default]<br>
include/trace/events/v4l2.h:69:0: note: this is the location of the previous definition<br><br></div>Which makes sense to me because TRACE_HEADER_MULTI_READ is probably true and then we have the kernel and LTTng both define<br>
V4L2_TRACE_EVENT. Renaming the LTTng variant to LTTNG_V4L2_TRACE_EVENT solved the problem for me.<br></div>Should I post a patch or do you want to solve it otherwise?<br><br></div>Regards, Jan<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-03-28 21:08 GMT+01:00 Wade Farnsworth <span dir="ltr"><<a href="mailto:wade_farnsworth@mentor.com" target="_blank">wade_farnsworth@mentor.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Add instrumentation for the V4L2 tracepoints that first appeared in<br>
Linux v3.14 (commit 2d01237389dc64b37745ce87e64d6808b6eed582 in Linus's<br>
tree).<br>
<br>
Signed-off-by: Wade Farnsworth <<a href="mailto:wade_farnsworth@mentor.com">wade_farnsworth@mentor.com</a>><br>
---<br>
instrumentation/events/lttng-module/v4l2.h | 157 +++++++++++++++++++++++++++++<br>
instrumentation/events/mainline/v4l2.h | 157 +++++++++++++++++++++++++++++<br>
probes/Makefile | 6 ++<br>
probes/lttng-probe-v4l2.c | 44 ++++++++<br>
4 files changed, 364 insertions(+)<br>
create mode 100644 instrumentation/events/lttng-module/v4l2.h<br>
create mode 100644 instrumentation/events/mainline/v4l2.h<br>
create mode 100644 probes/lttng-probe-v4l2.c<br>
<br>
diff --git a/instrumentation/events/lttng-module/v4l2.h b/instrumentation/events/lttng-module/v4l2.h<br>
new file mode 100644<br>
index 0000000..c2d1161<br>
--- /dev/null<br>
+++ b/instrumentation/events/lttng-module/v4l2.h<br>
@@ -0,0 +1,157 @@<br>
+#undef TRACE_SYSTEM<br>
+#define TRACE_SYSTEM v4l2<br>
+<br>
+#if !defined(_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ)<br>
+#define _TRACE_V4L2_H<br>
+<br>
+#include <linux/tracepoint.h><br>
+<br>
+#define show_type(type) \<br>
+ __print_symbolic(type, \<br>
+ { V4L2_BUF_TYPE_VIDEO_CAPTURE, "VIDEO_CAPTURE" }, \<br>
+ { V4L2_BUF_TYPE_VIDEO_OUTPUT, "VIDEO_OUTPUT" }, \<br>
+ { V4L2_BUF_TYPE_VIDEO_OVERLAY, "VIDEO_OVERLAY" }, \<br>
+ { V4L2_BUF_TYPE_VBI_CAPTURE, "VBI_CAPTURE" }, \<br>
+ { V4L2_BUF_TYPE_VBI_OUTPUT, "VBI_OUTPUT" }, \<br>
+ { V4L2_BUF_TYPE_SLICED_VBI_CAPTURE, "SLICED_VBI_CAPTURE" }, \<br>
+ { V4L2_BUF_TYPE_SLICED_VBI_OUTPUT, "SLICED_VBI_OUTPUT" }, \<br>
+ { V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY, "VIDEO_OUTPUT_OVERLAY" },\<br>
+ { V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, "VIDEO_CAPTURE_MPLANE" },\<br>
+ { V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, "VIDEO_OUTPUT_MPLANE" }, \<br>
+ { V4L2_BUF_TYPE_PRIVATE, "PRIVATE" })<br>
+<br>
+#define show_field(field) \<br>
+ __print_symbolic(field, \<br>
+ { V4L2_FIELD_ANY, "ANY" }, \<br>
+ { V4L2_FIELD_NONE, "NONE" }, \<br>
+ { V4L2_FIELD_TOP, "TOP" }, \<br>
+ { V4L2_FIELD_BOTTOM, "BOTTOM" }, \<br>
+ { V4L2_FIELD_INTERLACED, "INTERLACED" }, \<br>
+ { V4L2_FIELD_SEQ_TB, "SEQ_TB" }, \<br>
+ { V4L2_FIELD_SEQ_BT, "SEQ_BT" }, \<br>
+ { V4L2_FIELD_ALTERNATE, "ALTERNATE" }, \<br>
+ { V4L2_FIELD_INTERLACED_TB, "INTERLACED_TB" }, \<br>
+ { V4L2_FIELD_INTERLACED_BT, "INTERLACED_BT" })<br>
+<br>
+#define show_timecode_type(type) \<br>
+ __print_symbolic(type, \<br>
+ { V4L2_TC_TYPE_24FPS, "24FPS" }, \<br>
+ { V4L2_TC_TYPE_25FPS, "25FPS" }, \<br>
+ { V4L2_TC_TYPE_30FPS, "30FPS" }, \<br>
+ { V4L2_TC_TYPE_50FPS, "50FPS" }, \<br>
+ { V4L2_TC_TYPE_60FPS, "60FPS" })<br>
+<br>
+#define show_flags(flags) \<br>
+ __print_flags(flags, "|", \<br>
+ { V4L2_BUF_FLAG_MAPPED, "MAPPED" }, \<br>
+ { V4L2_BUF_FLAG_QUEUED, "QUEUED" }, \<br>
+ { V4L2_BUF_FLAG_DONE, "DONE" }, \<br>
+ { V4L2_BUF_FLAG_KEYFRAME, "KEYFRAME" }, \<br>
+ { V4L2_BUF_FLAG_PFRAME, "PFRAME" }, \<br>
+ { V4L2_BUF_FLAG_BFRAME, "BFRAME" }, \<br>
+ { V4L2_BUF_FLAG_ERROR, "ERROR" }, \<br>
+ { V4L2_BUF_FLAG_TIMECODE, "TIMECODE" }, \<br>
+ { V4L2_BUF_FLAG_PREPARED, "PREPARED" }, \<br>
+ { V4L2_BUF_FLAG_NO_CACHE_INVALIDATE, "NO_CACHE_INVALIDATE" }, \<br>
+ { V4L2_BUF_FLAG_NO_CACHE_CLEAN, "NO_CACHE_CLEAN" }, \<br>
+ { V4L2_BUF_FLAG_TIMESTAMP_MASK, "TIMESTAMP_MASK" }, \<br>
+ { V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN, "TIMESTAMP_UNKNOWN" }, \<br>
+ { V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, "TIMESTAMP_MONOTONIC" }, \<br>
+ { V4L2_BUF_FLAG_TIMESTAMP_COPY, "TIMESTAMP_COPY" })<br>
+<br>
+#define show_timecode_flags(flags) \<br>
+ __print_flags(flags, "|", \<br>
+ { V4L2_TC_FLAG_DROPFRAME, "DROPFRAME" }, \<br>
+ { V4L2_TC_FLAG_COLORFRAME, "COLORFRAME" }, \<br>
+ { V4L2_TC_USERBITS_USERDEFINED, "USERBITS_USERDEFINED" }, \<br>
+ { V4L2_TC_USERBITS_8BITCHARS, "USERBITS_8BITCHARS" })<br>
+<br>
+#define V4L2_TRACE_EVENT(event_name) \<br>
+ TRACE_EVENT(event_name, \<br>
+ TP_PROTO(int minor, struct v4l2_buffer *buf), \<br>
+ \<br>
+ TP_ARGS(minor, buf), \<br>
+ \<br>
+ TP_STRUCT__entry( \<br>
+ __field(int, minor) \<br>
+ __field(u32, index) \<br>
+ __field(u32, type) \<br>
+ __field(u32, bytesused) \<br>
+ __field(u32, flags) \<br>
+ __field(u32, field) \<br>
+ __field(s64, timestamp) \<br>
+ __field(u32, timecode_type) \<br>
+ __field(u32, timecode_flags) \<br>
+ __field(u8, timecode_frames) \<br>
+ __field(u8, timecode_seconds) \<br>
+ __field(u8, timecode_minutes) \<br>
+ __field(u8, timecode_hours) \<br>
+ __field(u8, timecode_userbits0) \<br>
+ __field(u8, timecode_userbits1) \<br>
+ __field(u8, timecode_userbits2) \<br>
+ __field(u8, timecode_userbits3) \<br>
+ __field(u32, sequence) \<br>
+ ), \<br>
+ \<br>
+ TP_fast_assign( \<br>
+ tp_assign(minor, minor); \<br>
+ tp_assign(index, buf->index); \<br>
+ tp_assign(type, buf->type); \<br>
+ tp_assign(bytesused, buf->bytesused); \<br>
+ tp_assign(flags, buf->flags); \<br>
+ tp_assign(field, buf->field); \<br>
+ tp_assign(timestamp, \<br>
+ timeval_to_ns(&buf->timestamp)); \<br>
+ tp_assign(timecode_type, buf->timecode.type); \<br>
+ tp_assign(timecode_flags, buf->timecode.flags); \<br>
+ tp_assign(timecode_frames, \<br>
+ buf->timecode.frames); \<br>
+ tp_assign(timecode_seconds, \<br>
+ buf->timecode.seconds); \<br>
+ tp_assign(timecode_minutes, \<br>
+ buf->timecode.minutes); \<br>
+ tp_assign(timecode_hours, buf->timecode.hours); \<br>
+ tp_assign(timecode_userbits0, \<br>
+ buf->timecode.userbits[0]); \<br>
+ tp_assign(timecode_userbits1, \<br>
+ buf->timecode.userbits[1]); \<br>
+ tp_assign(timecode_userbits2, \<br>
+ buf->timecode.userbits[2]); \<br>
+ tp_assign(timecode_userbits3, \<br>
+ buf->timecode.userbits[3]); \<br>
+ tp_assign(sequence, buf->sequence); \<br>
+ ), \<br>
+ \<br>
+ TP_printk("minor = %d, index = %u, type = %s, " \<br>
+ "bytesused = %u, flags = %s, " \<br>
+ "field = %s, timestamp = %llu, timecode = { " \<br>
+ "type = %s, flags = %s, frames = %u, " \<br>
+ "seconds = %u, minutes = %u, hours = %u, " \<br>
+ "userbits = { %u %u %u %u } }, " \<br>
+ "sequence = %u", __entry->minor, \<br>
+ __entry->index, show_type(__entry->type), \<br>
+ __entry->bytesused, \<br>
+ show_flags(__entry->flags), \<br>
+ show_field(__entry->field), \<br>
+ __entry->timestamp, \<br>
+ show_timecode_type(__entry->timecode_type), \<br>
+ show_timecode_flags(__entry->timecode_flags), \<br>
+ __entry->timecode_frames, \<br>
+ __entry->timecode_seconds, \<br>
+ __entry->timecode_minutes, \<br>
+ __entry->timecode_hours, \<br>
+ __entry->timecode_userbits0, \<br>
+ __entry->timecode_userbits1, \<br>
+ __entry->timecode_userbits2, \<br>
+ __entry->timecode_userbits3, \<br>
+ __entry->sequence \<br>
+ ) \<br>
+ )<br>
+<br>
+V4L2_TRACE_EVENT(v4l2_dqbuf)<br>
+V4L2_TRACE_EVENT(v4l2_qbuf)<br>
+<br>
+#endif /* if !defined(_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ) */<br>
+<br>
+/* This part must be outside protection */<br>
+#include "../../../probes/define_trace.h"<br>
diff --git a/instrumentation/events/mainline/v4l2.h b/instrumentation/events/mainline/v4l2.h<br>
new file mode 100644<br>
index 0000000..ef94eca<br>
--- /dev/null<br>
+++ b/instrumentation/events/mainline/v4l2.h<br>
@@ -0,0 +1,157 @@<br>
+#undef TRACE_SYSTEM<br>
+#define TRACE_SYSTEM v4l2<br>
+<br>
+#if !defined(_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ)<br>
+#define _TRACE_V4L2_H<br>
+<br>
+#include <linux/tracepoint.h><br>
+<br>
+#define show_type(type) \<br>
+ __print_symbolic(type, \<br>
+ { V4L2_BUF_TYPE_VIDEO_CAPTURE, "VIDEO_CAPTURE" }, \<br>
+ { V4L2_BUF_TYPE_VIDEO_OUTPUT, "VIDEO_OUTPUT" }, \<br>
+ { V4L2_BUF_TYPE_VIDEO_OVERLAY, "VIDEO_OVERLAY" }, \<br>
+ { V4L2_BUF_TYPE_VBI_CAPTURE, "VBI_CAPTURE" }, \<br>
+ { V4L2_BUF_TYPE_VBI_OUTPUT, "VBI_OUTPUT" }, \<br>
+ { V4L2_BUF_TYPE_SLICED_VBI_CAPTURE, "SLICED_VBI_CAPTURE" }, \<br>
+ { V4L2_BUF_TYPE_SLICED_VBI_OUTPUT, "SLICED_VBI_OUTPUT" }, \<br>
+ { V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY, "VIDEO_OUTPUT_OVERLAY" },\<br>
+ { V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, "VIDEO_CAPTURE_MPLANE" },\<br>
+ { V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, "VIDEO_OUTPUT_MPLANE" }, \<br>
+ { V4L2_BUF_TYPE_PRIVATE, "PRIVATE" })<br>
+<br>
+#define show_field(field) \<br>
+ __print_symbolic(field, \<br>
+ { V4L2_FIELD_ANY, "ANY" }, \<br>
+ { V4L2_FIELD_NONE, "NONE" }, \<br>
+ { V4L2_FIELD_TOP, "TOP" }, \<br>
+ { V4L2_FIELD_BOTTOM, "BOTTOM" }, \<br>
+ { V4L2_FIELD_INTERLACED, "INTERLACED" }, \<br>
+ { V4L2_FIELD_SEQ_TB, "SEQ_TB" }, \<br>
+ { V4L2_FIELD_SEQ_BT, "SEQ_BT" }, \<br>
+ { V4L2_FIELD_ALTERNATE, "ALTERNATE" }, \<br>
+ { V4L2_FIELD_INTERLACED_TB, "INTERLACED_TB" }, \<br>
+ { V4L2_FIELD_INTERLACED_BT, "INTERLACED_BT" })<br>
+<br>
+#define show_timecode_type(type) \<br>
+ __print_symbolic(type, \<br>
+ { V4L2_TC_TYPE_24FPS, "24FPS" }, \<br>
+ { V4L2_TC_TYPE_25FPS, "25FPS" }, \<br>
+ { V4L2_TC_TYPE_30FPS, "30FPS" }, \<br>
+ { V4L2_TC_TYPE_50FPS, "50FPS" }, \<br>
+ { V4L2_TC_TYPE_60FPS, "60FPS" })<br>
+<br>
+#define show_flags(flags) \<br>
+ __print_flags(flags, "|", \<br>
+ { V4L2_BUF_FLAG_MAPPED, "MAPPED" }, \<br>
+ { V4L2_BUF_FLAG_QUEUED, "QUEUED" }, \<br>
+ { V4L2_BUF_FLAG_DONE, "DONE" }, \<br>
+ { V4L2_BUF_FLAG_KEYFRAME, "KEYFRAME" }, \<br>
+ { V4L2_BUF_FLAG_PFRAME, "PFRAME" }, \<br>
+ { V4L2_BUF_FLAG_BFRAME, "BFRAME" }, \<br>
+ { V4L2_BUF_FLAG_ERROR, "ERROR" }, \<br>
+ { V4L2_BUF_FLAG_TIMECODE, "TIMECODE" }, \<br>
+ { V4L2_BUF_FLAG_PREPARED, "PREPARED" }, \<br>
+ { V4L2_BUF_FLAG_NO_CACHE_INVALIDATE, "NO_CACHE_INVALIDATE" }, \<br>
+ { V4L2_BUF_FLAG_NO_CACHE_CLEAN, "NO_CACHE_CLEAN" }, \<br>
+ { V4L2_BUF_FLAG_TIMESTAMP_MASK, "TIMESTAMP_MASK" }, \<br>
+ { V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN, "TIMESTAMP_UNKNOWN" }, \<br>
+ { V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, "TIMESTAMP_MONOTONIC" }, \<br>
+ { V4L2_BUF_FLAG_TIMESTAMP_COPY, "TIMESTAMP_COPY" })<br>
+<br>
+#define show_timecode_flags(flags) \<br>
+ __print_flags(flags, "|", \<br>
+ { V4L2_TC_FLAG_DROPFRAME, "DROPFRAME" }, \<br>
+ { V4L2_TC_FLAG_COLORFRAME, "COLORFRAME" }, \<br>
+ { V4L2_TC_USERBITS_USERDEFINED, "USERBITS_USERDEFINED" }, \<br>
+ { V4L2_TC_USERBITS_8BITCHARS, "USERBITS_8BITCHARS" })<br>
+<br>
+#define V4L2_TRACE_EVENT(event_name) \<br>
+ TRACE_EVENT(event_name, \<br>
+ TP_PROTO(int minor, struct v4l2_buffer *buf), \<br>
+ \<br>
+ TP_ARGS(minor, buf), \<br>
+ \<br>
+ TP_STRUCT__entry( \<br>
+ __field(int, minor) \<br>
+ __field(u32, index) \<br>
+ __field(u32, type) \<br>
+ __field(u32, bytesused) \<br>
+ __field(u32, flags) \<br>
+ __field(u32, field) \<br>
+ __field(s64, timestamp) \<br>
+ __field(u32, timecode_type) \<br>
+ __field(u32, timecode_flags) \<br>
+ __field(u8, timecode_frames) \<br>
+ __field(u8, timecode_seconds) \<br>
+ __field(u8, timecode_minutes) \<br>
+ __field(u8, timecode_hours) \<br>
+ __field(u8, timecode_userbits0) \<br>
+ __field(u8, timecode_userbits1) \<br>
+ __field(u8, timecode_userbits2) \<br>
+ __field(u8, timecode_userbits3) \<br>
+ __field(u32, sequence) \<br>
+ ), \<br>
+ \<br>
+ TP_fast_assign( \<br>
+ __entry->minor = minor; \<br>
+ __entry->index = buf->index; \<br>
+ __entry->type = buf->type; \<br>
+ __entry->bytesused = buf->bytesused; \<br>
+ __entry->flags = buf->flags; \<br>
+ __entry->field = buf->field; \<br>
+ __entry->timestamp = \<br>
+ timeval_to_ns(&buf->timestamp); \<br>
+ __entry->timecode_type = buf->timecode.type; \<br>
+ __entry->timecode_flags = buf->timecode.flags; \<br>
+ __entry->timecode_frames = \<br>
+ buf->timecode.frames; \<br>
+ __entry->timecode_seconds = \<br>
+ buf->timecode.seconds; \<br>
+ __entry->timecode_minutes = \<br>
+ buf->timecode.minutes; \<br>
+ __entry->timecode_hours = buf->timecode.hours; \<br>
+ __entry->timecode_userbits0 = \<br>
+ buf->timecode.userbits[0]; \<br>
+ __entry->timecode_userbits1 = \<br>
+ buf->timecode.userbits[1]; \<br>
+ __entry->timecode_userbits2 = \<br>
+ buf->timecode.userbits[2]; \<br>
+ __entry->timecode_userbits3 = \<br>
+ buf->timecode.userbits[3]; \<br>
+ __entry->sequence = buf->sequence; \<br>
+ ), \<br>
+ \<br>
+ TP_printk("minor = %d, index = %u, type = %s, " \<br>
+ "bytesused = %u, flags = %s, " \<br>
+ "field = %s, timestamp = %llu, timecode = { " \<br>
+ "type = %s, flags = %s, frames = %u, " \<br>
+ "seconds = %u, minutes = %u, hours = %u, " \<br>
+ "userbits = { %u %u %u %u } }, " \<br>
+ "sequence = %u", __entry->minor, \<br>
+ __entry->index, show_type(__entry->type), \<br>
+ __entry->bytesused, \<br>
+ show_flags(__entry->flags), \<br>
+ show_field(__entry->field), \<br>
+ __entry->timestamp, \<br>
+ show_timecode_type(__entry->timecode_type), \<br>
+ show_timecode_flags(__entry->timecode_flags), \<br>
+ __entry->timecode_frames, \<br>
+ __entry->timecode_seconds, \<br>
+ __entry->timecode_minutes, \<br>
+ __entry->timecode_hours, \<br>
+ __entry->timecode_userbits0, \<br>
+ __entry->timecode_userbits1, \<br>
+ __entry->timecode_userbits2, \<br>
+ __entry->timecode_userbits3, \<br>
+ __entry->sequence \<br>
+ ) \<br>
+ )<br>
+<br>
+V4L2_TRACE_EVENT(v4l2_dqbuf);<br>
+V4L2_TRACE_EVENT(v4l2_qbuf);<br>
+<br>
+#endif /* if !defined(_TRACE_V4L2_H) || defined(TRACE_HEADER_MULTI_READ) */<br>
+<br>
+/* This part must be outside protection */<br>
+#include <trace/define_trace.h><br>
diff --git a/probes/Makefile b/probes/Makefile<br>
index 63ca7ba..f98f2c5 100644<br>
--- a/probes/Makefile<br>
+++ b/probes/Makefile<br>
@@ -197,6 +197,12 @@ obj-m += $(shell \<br>
echo "lttng-probe-sunrpc.o" ; fi;)<br>
endif<br>
<br>
+ifneq ($(CONFIG_VIDEO_V4L2),)<br>
+obj-m += $(shell \<br>
+ if [ $(VERSION) -ge 3 -a $(PATCHLEVEL) -ge 14 ] ; then \<br>
+ echo "lttng-probe-v4l2.o" ; fi;)<br>
+endif<br>
+<br>
obj-m += lttng-probe-workqueue.o<br>
<br>
ifneq ($(CONFIG_KALLSYMS_ALL),)<br>
diff --git a/probes/lttng-probe-v4l2.c b/probes/lttng-probe-v4l2.c<br>
new file mode 100644<br>
index 0000000..709ccb2<br>
--- /dev/null<br>
+++ b/probes/lttng-probe-v4l2.c<br>
@@ -0,0 +1,44 @@<br>
+/*<br>
+ * probes/lttng-probe-v4l2.c<br>
+ *<br>
+ * LTTng v4l2 probes.<br>
+ *<br>
+ * Copyright (C) 2010-2012 Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>><br>
+ * Copyright (C) 2012,2013 Mentor Graphics Corp.<br>
+ *<br>
+ * This library is free software; you can redistribute it and/or<br>
+ * modify it under the terms of the GNU Lesser General Public<br>
+ * License as published by the Free Software Foundation; only<br>
+ * version 2.1 of the License.<br>
+ *<br>
+ * This library is distributed in the hope that it will be useful,<br>
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU<br>
+ * Lesser General Public License for more details.<br>
+ *<br>
+ * You should have received a copy of the GNU Lesser General Public<br>
+ * License along with this library; if not, write to the Free Software<br>
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA<br>
+ */<br>
+<br>
+#include <linux/module.h><br>
+#include <linux/videodev2.h><br>
+<br>
+/*<br>
+ * Create the tracepoint static inlines from the kernel to validate that our<br>
+ * trace event macros match the kernel we run on.<br>
+ */<br>
+#include <trace/events/v4l2.h><br>
+<br>
+/*<br>
+ * Create LTTng tracepoint probes.<br>
+ */<br>
+#define LTTNG_PACKAGE_BUILD<br>
+#define CREATE_TRACE_POINTS<br>
+#define TRACE_INCLUDE_PATH ../instrumentation/events/lttng-module<br>
+<br>
+#include "../instrumentation/events/lttng-module/v4l2.h"<br>
+<br>
+MODULE_LICENSE("GPL and additional rights");<br>
+MODULE_AUTHOR("Wade Farnsworth <<a href="mailto:wade_farnsworth@mentor.com">wade_farnsworth@mentor.com</a>>");<br>
+MODULE_DESCRIPTION("LTTng v4l2 probes");<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.0<br>
<br>
<br>
_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
</font></span></blockquote></div><br></div>