tools lib traceevent: Add pevent_print_func_field() helper function
authorSteven Rostedt <srostedt@redhat.com>
Fri, 1 Nov 2013 21:54:00 +0000 (17:54 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Nov 2013 17:36:49 +0000 (14:36 -0300)
commit6d862b8c14ba539c7c87ffc77f2e1d6dc9630c4d
treea8acb87cf151aed23aa0f64d2f78567b6eaffc75
parentc6c2b960b7a4105f096499fba3df65d6c0272a20
tools lib traceevent: Add pevent_print_func_field() helper function

Add the pevent_print_func_field() that will look up a field that is
expected to be a function pointer, and it will print the function name
and offset of the address given by the field.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20131101215501.869542711@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c
tools/lib/traceevent/event-parse.h