summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
Diffstat (limited to 'tapset')
-rw-r--r--tapset/conversions.stp18
1 files changed, 1 insertions, 17 deletions
diff --git a/tapset/conversions.stp b/tapset/conversions.stp
index 9d50ca62..dbfc91f7 100644
--- a/tapset/conversions.stp
+++ b/tapset/conversions.stp
@@ -1,5 +1,5 @@
// conversions tapset
-// Copyright (C) 2005 Red Hat Inc.
+// Copyright (C) 2005, 2006 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
@@ -41,19 +41,3 @@ function user_string:string (addr:long) %{
CONTEXT->last_error = errmsg;
}
%}
-
-function user_string_safe:string (addr:long, n:long) %{
- long rc;
- if (n > MAXSTRINGLEN)
- n = MAXSTRINGLEN;
- rc = _stp_strncpy_from_user (THIS->__retvalue,
- (const char __user*) (uintptr_t) THIS->addr,
- MAXSTRINGLEN);
- if (rc < 0)
- {
- static char errmsg[40];
- snprintf (errmsg, 40, "user string copy fault at 0x%p",
- (void *) (uintptr_t) THIS->addr);
- CONTEXT->last_error = errmsg;
- }
-%}