diff options
author | fche <fche> | 2005-08-11 16:53:45 +0000 |
---|---|---|
committer | fche <fche> | 2005-08-11 16:53:45 +0000 |
commit | 0d155048397c88db09a25989450568e25af8f44c (patch) | |
tree | 3fe59a1997c04f4e46839d9b687520fd6419fc82 /tapset/builtin_conversions.stp | |
parent | 59ff27737b1c61f995ec5975f947d9a51c5667ad (diff) | |
download | systemtap-steved-0d155048397c88db09a25989450568e25af8f44c.tar.gz systemtap-steved-0d155048397c88db09a25989450568e25af8f44c.tar.xz systemtap-steved-0d155048397c88db09a25989450568e25af8f44c.zip |
2005-08-11 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (emit_function): Add an extra { } around the
function body visitation.
* tapset/timestamp_functions.stp: New file.
* tapset/builtin_conversions.stp: Aggregated from [hex]string.
* tapset/builtin_logging.stp: Aggregated from log/warn/printk.
Diffstat (limited to 'tapset/builtin_conversions.stp')
-rw-r--r-- | tapset/builtin_conversions.stp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tapset/builtin_conversions.stp b/tapset/builtin_conversions.stp new file mode 100644 index 00000000..5c0230d4 --- /dev/null +++ b/tapset/builtin_conversions.stp @@ -0,0 +1,14 @@ +function _hexstring (num) %{ + sprintf (THIS->__retvalue, "0x%llx", (long long) THIS->num); +%} + +function hexstring (num) { + return "" . _hexstring (num + 0) +} +function _string (num) %{ + sprintf (THIS->__retvalue, "%lld", (long long) THIS->num); +%} + +function string (num) { + return "" . _string (num + 0) +} |