summaryrefslogtreecommitdiffstats
path: root/tapset/builtin_hexstring.stp
diff options
context:
space:
mode:
authorfche <fche>2005-08-02 18:03:17 +0000
committerfche <fche>2005-08-02 18:03:17 +0000
commita781f4011250a7d6450025a92336250044ab46eb (patch)
tree83f207ad0014565aeb28b2f5dda7b48e28f8feab /tapset/builtin_hexstring.stp
parent71696fcfa2761a2d09a0538c0101913f1c41925c (diff)
downloadsystemtap-steved-a781f4011250a7d6450025a92336250044ab46eb.tar.gz
systemtap-steved-a781f4011250a7d6450025a92336250044ab46eb.tar.xz
systemtap-steved-a781f4011250a7d6450025a92336250044ab46eb.zip
2005-08-02 Frank Ch. Eigler <fche@elastic.org>
* loc2.c (emit_loc_address): Emit interleaved declaration into its own nested { } block. * tapsets.cxx (literal_stmt_for_local): Emit deref_fault block unconditionally. * tapset/builtin_hexstring.stp: New builtin. * testsuite/buildok/six.stp: New test.
Diffstat (limited to 'tapset/builtin_hexstring.stp')
-rw-r--r--tapset/builtin_hexstring.stp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tapset/builtin_hexstring.stp b/tapset/builtin_hexstring.stp
new file mode 100644
index 00000000..c441bbc4
--- /dev/null
+++ b/tapset/builtin_hexstring.stp
@@ -0,0 +1,7 @@
+function _hexstring (num) %{
+ sprintf (THIS->__retvalue, "%llx", (long long) THIS->num);
+%}
+
+function hexstring (num) {
+ return "" . _hexstring (num + 0)
+}