This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug kprobes/23186] struct flowi4 not found in kernel<net/flow.h> on kernel 3.10.0-862.2.3.el7.x86_64
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 21 May 2018 17:26:09 +0000
- Subject: [Bug kprobes/23186] struct flowi4 not found in kernel<net/flow.h> on kernel 3.10.0-862.2.3.el7.x86_64
- Auto-submitted: auto-generated
- References: <bug-23186-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23186
David Smith <dsmith at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |dsmith at redhat dot com
Resolution|--- |WORKSFORME
--- Comment #1 from David Smith <dsmith at redhat dot com> ---
This is really a problem with net/flow.h. It doesn't include <linux/kernel.h>
and <linux/bug.h>, even though it uses items from those headers. So, to fix
this, you need to change your script from:
====
probe kprobe.function("udp_send_skb") {
fl4 = pointer_arg(2)
saddr = ip_ntop(@cast(fl4,"struct flowi4","kernel<net/flow.h>")->saddr)
printf("%s\n",saddr)
}
====
to:
====
probe kprobe.function("udp_send_skb") {
fl4 = pointer_arg(2)
saddr =
ip_ntop(@cast(fl4,"flowi4","kernel<linux/kernel.h><linux/bug.h><net/flow.h>")->saddr)
printf("%s\n",saddr)
}
====
--
You are receiving this mail because:
You are the assignee for the bug.