public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "wcohen at redhat dot com" <sourceware-bugzilla@sourceware.org>
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	[thread overview]
Message-ID: <bug-29037-6586-tozOrlhpKV@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29037-6586@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=29037

William Cohen <wcohen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |28334

--- Comment #5 from William Cohen <wcohen at redhat dot com> ---
Added code to
https://sourceware.org/git/?p=systemtap.git;a=shortlog;h=refs/heads/wcohen/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 "./fields 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 = 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=28334
[Bug 28334] cannot handle offset into register
-- 
You are receiving this mail because:
You are the assignee for the bug.

  parent reply	other threads:[~2022-07-01 17:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07 14:10 [Bug translator/29037] New: " wcohen at redhat dot com
2022-04-07 14:30 ` [Bug translator/29037] " wcohen at redhat dot com
2022-04-21 22:03 ` wcohen at redhat dot com
2022-06-15 14:00 ` wcohen at redhat dot com
2022-06-24 21:31 ` wcohen at redhat dot com
2022-07-01 17:39 ` wcohen at redhat dot com [this message]
2022-07-08 17:36 ` wcohen at redhat dot com
2023-03-09 22:09 ` fche at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29037-6586-tozOrlhpKV@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).