summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-08-26 16:15:46 -0700
committerJosh Stone <jistone@redhat.com>2009-08-26 16:27:11 -0700
commitb13d5a188321fc6856cf379a74b3004ce094a3af (patch)
tree69df0840d74abbbf416878d30e165094712c7a86
parentfdef9f1f12e4a087c87c8bf7e5078f88fcc0d33f (diff)
downloadsystemtap-steved-b13d5a188321fc6856cf379a74b3004ce094a3af.tar.gz
systemtap-steved-b13d5a188321fc6856cf379a74b3004ce094a3af.tar.xz
systemtap-steved-b13d5a188321fc6856cf379a74b3004ce094a3af.zip
Correct a few comments to match the code
* tapset/conversions.stp (kernel_long, kernel_int, kernel_short, kernel_char): All are actually using kread(), not deref(). * tapset/i386/registers.stp (_stp_arg): Ditto. * tapset/x86_64/registers.stp (_stp_arg): Ditto.
-rw-r--r--tapset/conversions.stp8
-rw-r--r--tapset/i386/registers.stp2
-rw-r--r--tapset/x86_64/registers.stp2
3 files changed, 6 insertions, 6 deletions
diff --git a/tapset/conversions.stp b/tapset/conversions.stp
index 31b16821..fdf00bd3 100644
--- a/tapset/conversions.stp
+++ b/tapset/conversions.stp
@@ -34,7 +34,7 @@ deref_fault: /* branched to from deref_string() */
function kernel_long:long (addr:long) %{ /* pure */
THIS->__retvalue = kread((long *) (intptr_t) THIS->addr);
if (0) {
-deref_fault: /* branched to from deref() */
+deref_fault: /* branched to from kread() */
snprintf (CONTEXT->error_buffer, sizeof(CONTEXT->error_buffer),
"kernel long copy fault at 0x%p", (void *) (uintptr_t) THIS->addr);
CONTEXT->last_error = CONTEXT->error_buffer;
@@ -44,7 +44,7 @@ deref_fault: /* branched to from deref() */
function kernel_int:long (addr:long) %{ /* pure */
THIS->__retvalue = kread((int *) (intptr_t) THIS->addr);
if (0) {
-deref_fault: /* branched to from deref() */
+deref_fault: /* branched to from kread() */
snprintf (CONTEXT->error_buffer, sizeof(CONTEXT->error_buffer),
"kernel int copy fault at 0x%p", (void *) (uintptr_t) THIS->addr);
CONTEXT->last_error = CONTEXT->error_buffer;
@@ -54,7 +54,7 @@ deref_fault: /* branched to from deref() */
function kernel_short:long (addr:long) %{ /* pure */
THIS->__retvalue = kread((short *) (intptr_t) THIS->addr);
if (0) {
-deref_fault: /* branched to from deref() */
+deref_fault: /* branched to from kread() */
snprintf (CONTEXT->error_buffer, sizeof(CONTEXT->error_buffer),
"kernel short copy fault at 0x%p", (void *) (uintptr_t) THIS->addr);
CONTEXT->last_error = CONTEXT->error_buffer;
@@ -64,7 +64,7 @@ deref_fault: /* branched to from deref() */
function kernel_char:long (addr:long) %{ /* pure */
THIS->__retvalue = kread((char *) (intptr_t) THIS->addr);
if (0) {
-deref_fault: /* branched to from deref() */
+deref_fault: /* branched to from kread() */
snprintf (CONTEXT->error_buffer, sizeof(CONTEXT->error_buffer),
"kernel char copy fault at 0x%p", (void *) (uintptr_t) THIS->addr);
CONTEXT->last_error = CONTEXT->error_buffer;
diff --git a/tapset/i386/registers.stp b/tapset/i386/registers.stp
index 997376dc..c1e98ac0 100644
--- a/tapset/i386/registers.stp
+++ b/tapset/i386/registers.stp
@@ -154,7 +154,7 @@ bad_argnum:
return;
if (0) {
-deref_fault: /* branched to from deref() */
+deref_fault: /* branched to from kread() */
snprintf (CONTEXT->error_buffer, sizeof(CONTEXT->error_buffer),
"kernel fault at %#lx accessing arg(%lld)", val,
THIS->argnum);
diff --git a/tapset/x86_64/registers.stp b/tapset/x86_64/registers.stp
index 48ba3119..e7abb18b 100644
--- a/tapset/x86_64/registers.stp
+++ b/tapset/x86_64/registers.stp
@@ -172,7 +172,7 @@ bad_argnum:
return;
if (0) {
-deref_fault: /* branched to from deref() */
+deref_fault: /* branched to from kread() */
snprintf (CONTEXT->error_buffer, sizeof(CONTEXT->error_buffer),
"kernel fault at %#lx accessing arg(%lld)", val,
THIS->argnum);