]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib traceevent: Make plugin options either string or boolean
authorSteven Rostedt <srostedt@redhat.com>
Tue, 24 Mar 2015 13:57:54 +0000 (09:57 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Mar 2015 15:20:09 +0000 (12:20 -0300)
commitfa9d0f2ecd82565902310d035ed66dd32f3589e3
tree0c516ffb080868cad9ef075eee62934be2219be7
parent2f463fc7a310c65bb167bc9bb0566ec4c704f11d
tools lib traceevent: Make plugin options either string or boolean

When a plugin option is defined, by default it is a boolean (true or false).

If the option is something else, then it needs to set its "value" field to
a default string other than NULL (can be just "").

If the value is not set then the option is considered boolean, and the
updating of the option value will be handled accordingly.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20150324135923.308372986@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.h
tools/lib/traceevent/event-plugin.c