9deb6ad661
To compile videobuf2-core as a module, the vb2_* tracepoints must be exported from the videodev module. Instead of exporting vb2 tracepoint symbols from v4l2-ioctl.c, move the tracepoint generation into a separate file. This patch fixes the following build error in the modpost stage, introduced by 2091f5181c66 ("[media] videobuf2: add trace events"): ERROR: "__tracepoint_vb2_buf_done" undefined! ERROR: "__tracepoint_vb2_dqbuf" undefined! ERROR: "__tracepoint_vb2_qbuf" undefined! ERROR: "__tracepoint_vb2_buf_queue" undefined! Suggested-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
12 lines
323 B
C
12 lines
323 B
C
#include <media/v4l2-common.h>
|
|
#include <media/v4l2-fh.h>
|
|
#include <media/videobuf2-core.h>
|
|
|
|
#define CREATE_TRACE_POINTS
|
|
#include <trace/events/v4l2.h>
|
|
|
|
EXPORT_TRACEPOINT_SYMBOL_GPL(vb2_buf_done);
|
|
EXPORT_TRACEPOINT_SYMBOL_GPL(vb2_buf_queue);
|
|
EXPORT_TRACEPOINT_SYMBOL_GPL(vb2_dqbuf);
|
|
EXPORT_TRACEPOINT_SYMBOL_GPL(vb2_qbuf);
|