]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib traceevent: Factor out allocating and processing args
authorJavi Merino <javi.merino@arm.com>
Fri, 20 Mar 2015 18:12:55 +0000 (18:12 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Mar 2015 15:07:05 +0000 (12:07 -0300)
commit380a8db8487837afe5b43137bf0e29a341250e4a
tree01b5ec713cd8bdfd2ce1c7983bf21d8d87761a85
parent419a9002bb0b703d4795357e0d10c32b33f31ebc
tools lib traceevent: Factor out allocating and processing args

The sequence of allocating the print_arg field, calling process_arg()
and verifying that the next event delimiter is repeated twice in
process_hex() and will also be used for process_int_array().

Factor it out to a function to avoid writing the same code again and
again.

Signed-off-by: Javi Merino <javi.merino@arm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1426875176-30244-2-git-send-email-javi.merino@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c