diff options
author | fche <fche> | 2005-09-02 15:54:18 +0000 |
---|---|---|
committer | fche <fche> | 2005-09-02 15:54:18 +0000 |
commit | a5a5398e240d39cedb7d944edb833d8449da3e11 (patch) | |
tree | f5f615fafadc093c70a6823da2852a698061ef1d /tapset/conversions.stp | |
parent | 86333c5231e7f07ae56443a72155a59aa8dd1ddb (diff) | |
download | systemtap-steved-a5a5398e240d39cedb7d944edb833d8449da3e11.tar.gz systemtap-steved-a5a5398e240d39cedb7d944edb833d8449da3e11.tar.xz systemtap-steved-a5a5398e240d39cedb7d944edb833d8449da3e11.zip |
2005-09-02 Frank Ch. Eigler <fche@elastic.org>
* tapset/*.stp: Renamed several files to simplify names.
Diffstat (limited to 'tapset/conversions.stp')
-rw-r--r-- | tapset/conversions.stp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tapset/conversions.stp b/tapset/conversions.stp new file mode 100644 index 00000000..5c0230d4 --- /dev/null +++ b/tapset/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) +} |