]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit5dbcfd930e430b33fb4dfded9c1af0cf432772b9
tree0c516ffb080868cad9ef075eee62934be2219be7
parent2771984c7f5e6cab812e86ec152da4fb5f6df908
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