libtraceevent: Handle __get_stacktrace()
PATCH 1/1 libtraceevent: Handle __get_stacktrace()
From: "Steven Rostedt (Google)" <[email protected]>
A synthetic event can add a stacktrace as one of its fields. The print fmt of getting to the stacktrace field is the __get_stacktrace() function helper. Add support for parsing the __get_stacktrace() so that it properly displays the stacktrace of synthetic events.
Signed-off-by Steven Rostedt (Google) <[email protected]>
--- include/traceevent/event-parse.h | 7 +++ src/event-parse.c | 76 ++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+)
include/traceevent/event-parse.h +7 -0
@@ -138,6 +138,11 @@ struct tep_print_arg_bitmask {struct tep_format_field *field; }; +struct tep_print_arg_stacktrace { +char *stacktrace; +struct tep_format_field *field; +}; +struct tep_print_arg_field {char *name;struct tep_format_field *field;
@@ -215,6 +220,7 @@ enum tep_print_arg_type {TEP_PRINT_DYNAMIC_ARRAY_LEN ,TEP_PRINT_HEX_STR ,TEP_PRINT_CPUMASK , + TEP_PRINT_STACKTRACE, }; struct tep_print_arg {
@@ -231,6 +237,7 @@ struct tep_print_arg {struct tep_print_arg_func func;struct tep_print_arg_string string;struct tep_print_arg_bitmask bitmask; +struct tep_print_arg_stacktrace stacktrace;struct tep_print_arg_op op;struct tep_print_arg_dynarray dynarray; };
src/event-parse.c +76 -0
124 lines not on this page · raw message
Signature · 1 line
2.51.0