public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "wcohen at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug backends/27925] riscv backend only provides return value locations for code compiled for LP64D ABI
Date: Sat, 18 Sep 2021 21:18:27 +0000	[thread overview]
Message-ID: <bug-27925-10460-C9k33lYEfh@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27925-10460@http.sourceware.org/bugzilla/>

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

--- Comment #1 from William Cohen <wcohen at redhat dot com> ---
Created attachment 13669
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13669&action=edit
Possibe patch to provide return value information for lp64 abi

This patch applies to elfutils 0.183 in fedora 33 and builds successfully. 
When running the systemtap examples testsuite there were a number of probe
handlers that needed $return information what no longer complained about being
unable to find the $return like the following with the patched elfutils for
pfault.stp example:

$ sudo ../install/bin/stap -v  testsuite/systemtap.examples/memory/pfaults.stp 
Pass 1: parsed user script and 462 library scripts using
307316virt/76224res/10492shr/65720data kb, in 3020usr/560sys/3602real ms.
Pass 2: analyzed script: 3 probes, 7 functions, 2 embeds, 7 globals using
422972virt/182640res/11412shr/181376data kb, in 10500usr/1900sys/12425real ms.
Pass 3: translated to C into
"/tmp/stapFHW9Zg/stap_aeb36ff31c1e99bccaad8645b97de810_4982_src.c" using
422972virt/182768res/11540shr/181376data kb, in 300usr/940sys/1247real ms.
Pass 4: compiled C into "stap_aeb36ff31c1e99bccaad8645b97de810_4982.ko" in
51270usr/5930sys/51419real ms.
Pass 5: starting run.
^CPass 5: run completed in 1350usr/2510sys/300065real ms.

Previously with the unpatched elfutils:

$ sudo ../install/bin/stap -v  testsuite/systemtap.examples/memory/pfaults.stp 
Pass 1: parsed user script and 462 library scripts using
307316virt/76260res/10528shr/65720data kb, in 3710usr/640sys/4447real ms.
semantic error: failed to retrieve return value location for handle_mm_fault
[man error::dwarf] (mm/memory.c): identifier '$return' at
/home/riscv/systemtap_write/install/share/systemtap/tapset/linux/memory.stp:91:15
        source:         fault_type = $return
                                     ^

Pass 2: analyzed script: 3 probes, 6 functions, 2 embeds, 7 globals using
422972virt/182872res/11644shr/181376data kb, in 12180usr/2310sys/14710real ms.
Pass 2: analysis failed.  [man error::pass2]

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2021-09-18 21:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27 18:58 [Bug backends/27925] New: " wcohen at redhat dot com
2021-09-18 21:18 ` wcohen at redhat dot com [this message]
2021-09-19 10:30 ` [Bug backends/27925] " mark at klomp dot org
2021-09-19 16:45 ` wilson at gcc dot gnu.org
2021-09-19 23:22 ` wcohen at redhat dot com
2021-09-20  2:29 ` wilson at gcc dot gnu.org
2021-09-20  7:42 ` mark at klomp dot org
2021-09-23  3:26 ` wcohen at redhat dot com
2021-09-23 14:22 ` wilson at gcc dot gnu.org
2021-09-23 14:30 ` wilson at gcc dot gnu.org
2021-09-29 13:43 ` mark at klomp dot org
2021-09-29 17:02 ` wilson at gcc dot gnu.org
2021-09-29 20:13 ` wcohen at redhat dot com
2021-09-29 22:14 ` mark at klomp dot org

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-27925-10460-C9k33lYEfh@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=elfutils-devel@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).