From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> The macros __get_sockaddr() and __get_sockaddr_rel() are now added in the TRACE_EVENT() helper functions and can be used to retrieve dynamically saved sockaddr structures that hold IP addresses. Update libtraceevent to handle them. Link: https://lore.kernel.org/all/25C37F40-7D8E-41C6-961F-0774C8138CCB@xxxxxxxxxx/ Reported-by: Chuck Lever III <chuck.lever@xxxxxxxxxx> Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- src/event-parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/event-parse.c b/src/event-parse.c index 823333a3bde4..b252c4d890a0 100644 --- a/src/event-parse.c +++ b/src/event-parse.c @@ -3485,7 +3485,9 @@ process_function(struct tep_event *event, struct tep_print_arg *arg, return process_bitmask(event, arg, tok); } if (strcmp(token, "__get_dynamic_array") == 0 || - strcmp(token, "__get_rel_dynamic_array") == 0) { + strcmp(token, "__get_rel_dynamic_array") == 0 || + strcmp(token, "__get_sockaddr") == 0 || + strcmp(token, "__get_sockaddr_rel") == 0) { free_token(token); return process_dynamic_array(event, arg, tok); } -- 2.35.1