Re: [PATCH v3 3/3] [media] videobuf2: add trace events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 28 Jul 2015 09:53:20 +0200
Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> wrote:


> I tried this yesterday and failed to figure out a satisfactory way to do
> it since the vb2 trace point macros reuse the v4l2 enum definitions and
> __print_symbolic/flags macros. The alternative would be to just export
> the vb2 trace points from videodev.

Or do what some other drivers do, which is to make a separate file to
hold the creation of the tracepoints, and have it included in whatever
needs it. Export them if there's more than one module.

drivers/media/v4l2-core/v4l2-trace.c:

#define CREATE_TRACE_POINTS
#include "v4l2-trace.h"


See fs/xfs/xfs_trace.c as an example.

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux