public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "dsmith at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug runtime/4037] make staprun 32/64-bit interoperable
Date: Mon, 16 Nov 2009 20:47:00 -0000	[thread overview]
Message-ID: <20091116204714.15621.qmail@sourceware.org> (raw)
In-Reply-To: <20070214005619.4037.fche@redhat.com>


------- Additional Comments From dsmith at redhat dot com  2009-11-16 20:47 -------
I've tested this issue for x86/x86_64, by testing 32-bit x86 binaries on an
64-bit x86_64 system.  To ensure I was testing 32-bit executables, I built x86
rpms on the x86 system, then installed them on the x86_64 system.

The testsuite results looked very similar to 64-bit testsuite results.

Looking at the message definitions in runtime/transport/transport_msgs.h, it
appears that they all are in the form int32_t/int64_t which looks correct. 
There are no plain 'int' or 'long' types there.

Using '-DDEBUG_SYMBOLS' to see what sort of addresses the 32-bit staprun is
sending the kernel shows this:

# stap -DDEBUG_SYMBOLS -e 'probe kernel.function("sys_open") { printf("open\n") }'
(02:29:45 PM) dsmith: _stp_module_relocate:79: kernel, _stext, 30690
(02:29:45 PM) dsmith: _stp_module_relocate:107: address=ffffffff80031690

That address is a 64-bit address, which is correct.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4037

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

  parent reply	other threads:[~2009-11-16 20:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14  0:56 [Bug runtime/4037] New: " fche at redhat dot com
2007-02-14  2:10 ` [Bug runtime/4037] " hunt at redhat dot com
2007-02-14  2:28 ` fche at redhat dot com
2008-01-11 18:06 ` hunt at redhat dot com
2008-04-30 19:02 ` fche at redhat dot com
2009-11-16 20:47 ` dsmith at redhat dot com [this message]
2009-11-18  1:12 ` fche at redhat dot com
2009-11-20  8:39 ` pavan dot naregundi at in dot ibm 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=20091116204714.15621.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sources.redhat.com \
    /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).