KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21572/root/usr/share/systemtap/runtime/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/usr/share/systemtap/runtime/string.h
/* -*- linux-c -*-
 * Copyright (C) 2005, 2007, 2009 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.
 */
#ifndef _STRING_H_
#define _STRING_H_

#define to_oct_digit(c) ((c) + '0')
static void _stp_text_str(char *out, char *in, int len, int quoted, int user);

/*
 * Powerpc uses a paranoid user address check in __get_user() which
 * spews warnings "BUG: Sleeping function...." when DEBUG_SPINLOCK_SLEEP
 * is enabled. With 2.6.21 and above, a newer variant __get_user_inatomic
 * is provided without the paranoid check. Use it if available, fall back
 * to __get_user() if not. Other archs can use __get_user() as is
 */
#if defined(__powerpc__)
#ifdef __get_user_inatomic
#define __stp_get_user(x, ptr) __get_user_inatomic(x, ptr)
#else /* __get_user_inatomic */
#define __stp_get_user(x, ptr) __get_user(x, ptr)
#endif /* __get_user_inatomic */
#elif defined(__ia64__)
#define __stp_get_user(x, ptr)						\
  ({									\
     int __res;								\
     if (in_atomic() || irqs_disabled()) {				\
       pagefault_disable();						\
       __res = __get_user(x, ptr);					\
       pagefault_enable();						\
     }									\
     else								\
       __res = __get_user(x, ptr);					\
     __res;								\
  })
#else /* !defined(__powerpc__) && !defined(__ia64) */
#define __stp_get_user(x, ptr) __get_user(x, ptr)
#endif /* !defined(__powerpc__) && !defined(__ia64) */

#endif /* _STRING_H_ */

Anon7 - 2021