]> sourceware.org Git - systemtap.git/commitdiff
Remove inadventently checked in change.
authorhunt <hunt>
Wed, 1 Feb 2006 22:09:36 +0000 (22:09 +0000)
committerhunt <hunt>
Wed, 1 Feb 2006 22:09:36 +0000 (22:09 +0000)
tapset/conversions.stp

index 9d50ca62fbe2670e5aad24e159f1a36215de39db..dbfc91f7521ec596a81661dd07763ccebf995fbe 100644 (file)
@@ -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;
-  }
-%}
This page took 0.037161 seconds and 5 git commands to generate.