This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10977] Getting the address size used in a module
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 18 Nov 2009 17:10:25 -0000
- Subject: [Bug translator/10977] Getting the address size used in a module
- References: <20091118135708.10977.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.