From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A462F385AC19; Fri, 1 Jul 2022 17:39:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A462F385AC19 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/29037] Systemtap unable to find struct bitfield members for gcc11 compiled code Date: Fri, 01 Jul 2022 17:39:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: ASSIGNED 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: dependson Message-ID: In-Reply-To: References: 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-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2022 17:39:22 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29037 William Cohen changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |28334 --- Comment #5 from William Cohen --- Added code to https://sourceware.org/git/?p=3Dsystemtap.git;a=3Dshortlog;h=3Drefs/heads/w= cohen/pr29037 to translate the DW_AT_data_bit_offset attributes into equivalent DW_AT_data_member_location attributes. With the patches the reproducer now works: $ sudo ../systemtap_write/install/bin/stap -v fields_probes.stp -c "./field= s a a a" Pass 1: parsed user script and 483 library scripts using 336212virt/96308res/17160shr/78904data kb, in 120usr/30sys/151real ms. Pass 2: analyzed script: 1 probe, 2 functions, 0 embeds, 0 globals using 337796virt/99060res/18240shr/80488data kb, in 10usr/0sys/5real ms. Pass 3: using cached /root/.systemtap/cache/82/stap_82e99d289011359ab6eb47f65e883ee3_1612.c Pass 4: using cached /root/.systemtap/cache/82/stap_82e99d289011359ab6eb47f65e883ee3_1612.ko Pass 5: starting run. a.icsk_ca_state: true a.icsk_ca_initialized: true a.icsk_ca_setsockopt: true a.icsk_ca_dst_locked: false $a->icsk_ca_state =3D 1 Pass 5: run completed in 10usr/30sys/365real ms. The code to handle the newer bitfield DWARF encoding needs to be cleaned up= as it never frees the memory from the mallocs. Referenced Bugs: https://sourceware.org/bugzilla/show_bug.cgi?id=3D28334 [Bug 28334] cannot handle offset into register --=20 You are receiving this mail because: You are the assignee for the bug.=