[Bug kprobes/23186] struct flowi4 not found in kernel<net/flow.h> on kernel 3.10.0-862.2.3.el7.x86_64
dsmith at redhat dot com
sourceware-bugzilla@sourceware.org
Mon May 21 17:26:00 GMT 2018
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.
More information about the Systemtap
mailing list