Re: [for-next][PATCH 19/21] v4l: Export enums used by tracepoints to user space

From: Steven Rostedt
Date: Wed Apr 08 2015 - 10:56:14 EST


On Wed, 8 Apr 2015 11:43:02 -0300
Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx> wrote:

> Em Wed, 08 Apr 2015 09:48:23 -0400
> Steven Rostedt <rostedt@xxxxxxxxxxx> escreveu:
>
> > From: "Steven Rostedt (Red Hat)" <rostedt@xxxxxxxxxxx>
> >
> > Enums used by tracepoints for __print_symbolic() are shown in the
> > tracepoint format files with just their names and not their values.
> > This makes it difficult for user space tools to know how to convert the
> > binary data into their string representations.
> >
> > By adding the use of TRACE_DEFINE_ENUM(), the enum names will be mapped
> > to their values and shown in the tracing file system to let tools
> > convert the data as necessary.
> >
> > Link: http://lkml.kernel.org/r/20150403013802.220157513@xxxxxxxxxxx
> >
> > Cc: Mauro Carvalho Chehab <m.chehab@xxxxxxxxxxx>
>
> Acked-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>
>

Thanks!

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