OSDN Git Service

tools lib traceevent: Fix get_field_str() for dynamic strings
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 12 Jan 2018 00:47:51 +0000 (19:47 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Jan 2018 13:23:21 +0000 (10:23 -0300)
commitd777f8de99b05d399c0e4e51cdce016f26bd971b
tree4c9076efb8208328bde65360967241bf37aa1a7e
parent806efaed3cacab1521895d20bb3b5ed610909299
tools lib traceevent: Fix get_field_str() for dynamic strings

If a field is a dynamic string, get_field_str() returned just the
offset/size value and not the string. Have it parse the offset/size
correctly to return the actual string. Otherwise filtering fails when
trying to filter fields that are dynamic strings.

Reported-by: Gopanapalli Pradeep <prap_hai@yahoo.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20180112004823.146333275@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/parse-filter.c