From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73171 invoked by alias); 15 May 2018 19:27:38 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 73116 invoked by uid 48); 15 May 2018 19:27:34 -0000 From: "cmedved at cloudamize dot com" To: systemtap@sourceware.org Subject: [Bug kprobes/23186] New: struct flowi4 not found in kernel on kernel 3.10.0-862.2.3.el7.x86_64 Date: Tue, 15 May 2018 19:27:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: kprobes X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cmedved at cloudamize dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q2/txt/msg00072.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23186 Bug ID: 23186 Summary: struct flowi4 not found in kernel on kernel 3.10.0-862.2.3.el7.x86_64 Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: kprobes Assignee: systemtap at sourceware dot org Reporter: cmedved at cloudamize dot com Target Milestone: --- Created attachment 11018 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D11018&action=3Ded= it Sample script and error log. SystemTap Version: 3.2/0.170, rpm 3.2-4.el7 Kernel: Linux stap-rhel7 3.10.0-862.2.3.el7.x86_64 #1 SMP Mon Apr 30 12:37:= 51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux I'm trying to monitor udp_send_skb via dwarfless kprobes (kprobe.function).= For RHEL7 3.10.0-862 kernels, SystemTap fails to build my script with the error "struct flowi4 not found in kernel". I would usually suspect modifications in the kernel, but that does not appear to be the case. /usr/src/kernels/3.10.0-862.2.3.el7.x86_64/include/net/flow.h contains the definition of struct flowi4. The script works fine when cross-compiling for any RHEL7 3.10.0-693 kernel (among many others). A diff of include/net/flow.h between the two kernel versions shows no differences. Exact error from -vvv output: semantic error: while processing probe kprobe.function("udp_send_skb") thrown from: elaborate.cxx:5751 semantic error: type definition 'struct flowi4' not found in 'kernel': operator '@cast' at test.stp:3:21 thrown from: elaborate.cxx:6380 source: saddr =3D ip_ntop(@cast(fl4,"struct flowi4","kernel")->saddr) ^ Attached is a sample script showing the issue, the -vvv log, and /usr/src/kernels/3.10.0-862.2.3.el7.x86_64/include/net/flow.h, just in case. Also, in case it's necessary, definition for udp_send_skb is here: https://github.com/torvalds/linux/blob/v3.10/net/ipv4/udp.c#L743 Versions: [root@stap-rhel7 ~]# rpm -qa --qf %{name}-%{version}-%{release}.%{arch}\\n | egrep 'systemtap|elfutils|kernel|gcc' | sort devtoolset-4-gcc-5.3.1-6.1.el7.x86_64 elfutils-default-yama-scope-0.170-4.el7.noarch elfutils-libelf-0.170-4.el7.x86_64 elfutils-libs-0.170-4.el7.x86_64 gcc-4.8.5-28.el7_5.1.x86_64 kernel-3.10.0-693.el7.x86_64 kernel-3.10.0-862.2.3.el7.x86_64 kernel-debug-devel-3.10.0-862.2.3.el7.x86_64 kernel-devel-3.10.0-862.2.3.el7.x86_64 kernel-headers-3.10.0-862.2.3.el7.x86_64 kernel-tools-3.10.0-862.2.3.el7.x86_64 kernel-tools-libs-3.10.0-862.2.3.el7.x86_64 libgcc-4.8.5-28.el7_5.1.x86_64 systemtap-3.2-4.el7.x86_64 systemtap-client-3.2-4.el7.x86_64 systemtap-devel-3.2-4.el7.x86_64 systemtap-runtime-3.2-4.el7.x86_64 --=20 You are receiving this mail because: You are the assignee for the bug.