* [Bug translator/10977] New: Getting the address size used in a module
@ 2009-11-18 13:57 mjw at redhat dot com
2009-11-18 17:10 ` [Bug translator/10977] " fche at redhat dot com
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: mjw at redhat dot com @ 2009-11-18 13:57 UTC (permalink / raw)
To: systemtap
It would be convenient to be able to get the address size used in a module as a
special constant so one doesn't have to add preprocessor trickery.
Maybe something like @address_size which would represent the address_size from
the current Dwarf Compilation Unit header.
--
Summary: Getting the address size used in a module
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10977
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/10977] Getting the address size used in a module
2009-11-18 13:57 [Bug translator/10977] New: Getting the address size used in a module mjw at redhat dot com
@ 2009-11-18 17:10 ` fche at redhat dot com
2009-11-18 18:11 ` mjw at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: fche at redhat dot com @ 2009-11-18 17:10 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2009-11-18 17:10 -------
If this need not be a compile-time literal/constant, then you could add
something like this into the tapset:
function kernel_arch_bits:long () %{ THIS->__retvalue = (int64_t) sizeof(long); %}
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10977
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/10977] Getting the address size used in a module
2009-11-18 13:57 [Bug translator/10977] New: Getting the address size used in a module mjw at redhat dot com
2009-11-18 17:10 ` [Bug translator/10977] " fche at redhat dot com
@ 2009-11-18 18:11 ` mjw at redhat dot com
2009-11-18 19:15 ` jistone at redhat dot com
2009-11-18 20:00 ` mjw at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: mjw at redhat dot com @ 2009-11-18 18:11 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-11-18 18:11 -------
Nice idea. But I need it for the use space module.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10977
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/10977] Getting the address size used in a module
2009-11-18 13:57 [Bug translator/10977] New: Getting the address size used in a module mjw at redhat dot com
2009-11-18 17:10 ` [Bug translator/10977] " fche at redhat dot com
2009-11-18 18:11 ` mjw at redhat dot com
@ 2009-11-18 19:15 ` jistone at redhat dot com
2009-11-18 20:00 ` mjw at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: jistone at redhat dot com @ 2009-11-18 19:15 UTC (permalink / raw)
To: systemtap
------- Additional Comments From jistone at redhat dot com 2009-11-18 19:15 -------
How about (probing_32bit_app() ? 4 : 8) ?
That function doesn't yet exist on all archs, but we can make it...
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10977
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/10977] Getting the address size used in a module
2009-11-18 13:57 [Bug translator/10977] New: Getting the address size used in a module mjw at redhat dot com
` (2 preceding siblings ...)
2009-11-18 19:15 ` jistone at redhat dot com
@ 2009-11-18 20:00 ` mjw at redhat dot com
3 siblings, 0 replies; 6+ messages in thread
From: mjw at redhat dot com @ 2009-11-18 20:00 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-11-18 20:00 -------
(In reply to comment #3)
> How about (probing_32bit_app() ? 4 : 8) ?
>
> That function doesn't yet exist on all archs, but we can make it...
O! Didn't know we already had that. Yes, that would definitely be helpful if it
was available on all architectures.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10977
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/10977] Getting the address size used in a module
[not found] <bug-10977-6586@http.sourceware.org/bugzilla/>
@ 2015-08-26 17:33 ` flu at redhat dot com
0 siblings, 0 replies; 6+ messages in thread
From: flu at redhat dot com @ 2015-08-26 17:33 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=10977
Felix Lu <flu at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |flu at redhat dot com
Resolution|--- |FIXED
--- Comment #5 from Felix Lu <flu at redhat dot com> ---
added functions arch_bytes() and uarch_bytes in commit
93f70a9a97a8fe4a13c59c57155d75b534d02e3e.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-26 17:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-18 13:57 [Bug translator/10977] New: Getting the address size used in a module mjw at redhat dot com
2009-11-18 17:10 ` [Bug translator/10977] " fche at redhat dot com
2009-11-18 18:11 ` mjw at redhat dot com
2009-11-18 19:15 ` jistone at redhat dot com
2009-11-18 20:00 ` mjw at redhat dot com
[not found] <bug-10977-6586@http.sourceware.org/bugzilla/>
2015-08-26 17:33 ` flu at redhat dot com
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).