summaryrefslogtreecommitdiffstats
path: root/tapset/conversions.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/conversions.stp')
-rw-r--r--tapset/conversions.stp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tapset/conversions.stp b/tapset/conversions.stp
index 50dbfeb0..51f9de19 100644
--- a/tapset/conversions.stp
+++ b/tapset/conversions.stp
@@ -1,3 +1,11 @@
+// conversions tapset
+// Copyright (C) 2005 Red Hat Inc.
+//
+// This file is part of systemtap, and is free software. You can
+// redistribute it and/or modify it under the terms of the GNU General
+// Public License (GPL); either version 2, or (at your option) any
+// later version.
+
function hexstring:string (num:long) %{
sprintf (THIS->__retvalue, "0x%llx", (long long) THIS->num);
%}
@@ -6,7 +14,6 @@ function string:string (num:long) %{
sprintf (THIS->__retvalue, "%lld", (long long) THIS->num);
%}
-
function kernel_string:string (addr:long) %{
char *destination = THIS->__retvalue;
deref_string (destination, THIS->addr, MAXSTRINGLEN);