This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug kprobes/23186] struct flowi4 not found in kernel<net/flow.h> on kernel 3.10.0-862.2.3.el7.x86_64


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]