* [PATCH] libtraceevent: Add processing of __get_sockaddr() and __get_sockaddr_rel()
@ 2022-06-28 16:23 Steven Rostedt
2022-09-09 18:00 ` Chuck Lever III
0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2022-06-28 16:23 UTC (permalink / raw)
To: Linux Trace Devel; +Cc: Chuck Lever III
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
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@oracle.com/
Reported-by: Chuck Lever III <chuck.lever@oracle.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] libtraceevent: Add processing of __get_sockaddr() and __get_sockaddr_rel()
2022-06-28 16:23 [PATCH] libtraceevent: Add processing of __get_sockaddr() and __get_sockaddr_rel() Steven Rostedt
@ 2022-09-09 18:00 ` Chuck Lever III
2022-09-09 18:31 ` Steven Rostedt
0 siblings, 1 reply; 3+ messages in thread
From: Chuck Lever III @ 2022-09-09 18:00 UTC (permalink / raw)
To: Linux Trace Devel
> On Jun 28, 2022, at 12:23 PM, Steven Rostedt <rostedt@goodmis.org> wrote:
>
> From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
>
> 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@oracle.com/
>
> Reported-by: Chuck Lever III <chuck.lever@oracle.com>
> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This is a freshly-updated Fedora 36 system running v6.0-rc4,
and the __sockaddr stuff still doesn't work.
mount.nfs-1639 [002] 406.390138: svc_xprt_enqueue: [FAILED TO PARSE] server=ARRAY[02, 00, 8a, 97, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] client=<E8>sl flags=0x4c03 netns_ino=4026531840 pid=0
mount.nfs-1639 [002] 406.390360: svcsock_new_socket: type=STREAM family=AF_INET6 (listener)
mount.nfs-1639 [002] 406.390361: svc_xprt_enqueue: [FAILED TO PARSE] server=ARRAY[0a, 00, a7, e7, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] client=*<FC>% flags=0x4c03 netns_ino=4026531840 pid=0
mount.nfs-1639 [002] 406.390439: rpc_task_begin: task:00000002@00000002 flags=DYNAMIC|NO_ROUND_ROBIN|SOFT|TIMEOUT|NORTO|CRED_NOREF runstate=ACTIVE status=0 action=0x0
mount.nfs-1639 [002] 406.390440: rpc_task_run_action: task:00000002@00000002 flags=DYNAMIC|NO_ROUND_ROBIN|SOFT|TIMEOUT|NORTO|CRED_NOREF runstate=RUNNING|ACTIVE status=0 action=call_start
mount.nfs-1639 [002] 406.390440: rpc_request: task:00000002@00000002 nfsv4 SETCLIENTID (sync)
NFSv4 callback-1642 [006] 406.390440: svc_xprt_dequeue: [FAILED TO PARSE] server=ARRAY[02, 00, 8a, 97, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] client=<CA>d^F flags=0x4c83 netns_ino=4026531840 wakeup=0x18325fae
# dnf list libtrace\*
Last metadata expiration check: 1:27:00 ago on Fri 09 Sep 2022 12:31:57 PM EDT.
Installed Packages
libtracecmd.x86_64 1.1.3-2.fc36 @updates
libtraceevent.x86_64 1.5.3-2.fc36 @updates
libtracefs.x86_64 1.3.1-2.fc36 @updates
Available Packages
libtracecmd.i686 1.1.0-3.fc36 fedora
libtracecmd-devel.i686 1.1.0-3.fc36 fedora
libtracecmd-devel.x86_64 1.1.3-2.fc36 updates
libtraceevent.i686 1.5.3-2.fc36 updates
libtraceevent-devel.i686 1.5.3-2.fc36 updates
libtraceevent-devel.x86_64 1.5.3-2.fc36 updates
libtracefs.i686 1.3.1-2.fc36 updates
libtracefs-devel.i686 1.3.1-2.fc36 updates
libtracefs-devel.x86_64 1.3.1-2.fc36 updates
# dnf list trace-cmd\*
Last metadata expiration check: 1:27:09 ago on Fri 09 Sep 2022 12:31:57 PM EDT.
Installed Packages
trace-cmd.x86_64 3.0.3-2.fc36 @updates
Available Packages
trace-cmd-python3.x86_64 3.0.3-2.fc36 updates
# dnf repolist
repo id repo name
fedora Fedora 36 - x86_64
fedora-cisco-openh264 Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular Fedora Modular 36 - x86_64
updates Fedora 36 - x86_64 - Updates
updates-modular Fedora Modular 36 - x86_64 - Updates
#
> ---
> 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
>
--
Chuck Lever
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] libtraceevent: Add processing of __get_sockaddr() and __get_sockaddr_rel()
2022-09-09 18:00 ` Chuck Lever III
@ 2022-09-09 18:31 ` Steven Rostedt
0 siblings, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2022-09-09 18:31 UTC (permalink / raw)
To: Chuck Lever III; +Cc: Linux Trace Devel
On Fri, 9 Sep 2022 18:00:45 +0000
Chuck Lever III <chuck.lever@oracle.com> wrote:
> This is a freshly-updated Fedora 36 system running v6.0-rc4,
> and the __sockaddr stuff still doesn't work.
>
> mount.nfs-1639 [002] 406.390138: svc_xprt_enqueue: [FAILED TO PARSE] server=ARRAY[02, 00, 8a, 97, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] client=<E8>sl flags=0x4c03 netns_ino=4026531840 pid=0
> mount.nfs-1639 [002] 406.390360: svcsock_new_socket: type=STREAM family=AF_INET6 (listener)
> mount.nfs-1639 [002] 406.390361: svc_xprt_enqueue: [FAILED TO PARSE] server=ARRAY[0a, 00, a7, e7, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] client=*<FC>% flags=0x4c03 netns_ino=4026531840 pid=0
> mount.nfs-1639 [002] 406.390439: rpc_task_begin: task:00000002@00000002 flags=DYNAMIC|NO_ROUND_ROBIN|SOFT|TIMEOUT|NORTO|CRED_NOREF runstate=ACTIVE status=0 action=0x0
> mount.nfs-1639 [002] 406.390440: rpc_task_run_action: task:00000002@00000002 flags=DYNAMIC|NO_ROUND_ROBIN|SOFT|TIMEOUT|NORTO|CRED_NOREF runstate=RUNNING|ACTIVE status=0 action=call_start
> mount.nfs-1639 [002] 406.390440: rpc_request: task:00000002@00000002 nfsv4 SETCLIENTID (sync)
> NFSv4 callback-1642 [006] 406.390440: svc_xprt_dequeue: [FAILED TO PARSE] server=ARRAY[02, 00, 8a, 97, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00] client=<CA>d^F flags=0x4c83 netns_ino=4026531840 wakeup=0x18325fae
>
> # dnf list libtrace\*
> Last metadata expiration check: 1:27:00 ago on Fri 09 Sep 2022 12:31:57 PM EDT.
> Installed Packages
> libtracecmd.x86_64 1.1.3-2.fc36 @updates
> libtraceevent.x86_64 1.5.3-2.fc36 @updates
> libtracefs.x86_64 1.3.1-2.fc36 @updates
> Available Packages
> libtracecmd.i686 1.1.0-3.fc36 fedora
> libtracecmd-devel.i686 1.1.0-3.fc36 fedora
> libtracecmd-devel.x86_64 1.1.3-2.fc36 updates
> libtraceevent.i686 1.5.3-2.fc36 updates
> libtraceevent-devel.i686 1.5.3-2.fc36 updates
> libtraceevent-devel.x86_64 1.5.3-2.fc36 updates
That parsing was added in libtraceevent 1.6.2.
-- Steve
> libtracefs.i686 1.3.1-2.fc36 updates
> libtracefs-devel.i686 1.3.1-2.fc36 updates
> libtracefs-devel.x86_64 1.3.1-2.fc36 updates
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-09 18:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-28 16:23 [PATCH] libtraceevent: Add processing of __get_sockaddr() and __get_sockaddr_rel() Steven Rostedt
2022-09-09 18:00 ` Chuck Lever III
2022-09-09 18:31 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).