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/21571/root/usr/share/systemtap/tapset/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/usr/share/systemtap/tapset/guru-delay.stp
// Copyright (C) 2012 Red Hat Inc., Bryn M. Reeves <bmr@redhat.com>
//
// 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.
//

// <tapsetdescription>
// Functions in the guru-delay tapset allow a probe handler to insert
// deliberate delays.  This is sometimes useful as a fault-injection
// aid.  Due to its likelihood of interference with the kernel, guru
// mode is required, and overload-prevention is suppressed.
// </tapsetdescription>

%{
/* guru */
#undef STP_OVERLOAD
#include <linux/delay.h>
%}


/**
 * sfunction mdelay - millisecond delay
 * @ms: Number of milliseconds to delay.
 *
 * Description: This function inserts a multi-millisecond busy-delay into a probe handler.
 * It requires guru mode.
 */
function mdelay(ms:long) %{
  /* guru */
  mdelay(STAP_ARG_ms);
%}

/**
 * sfunction mdelay - microsecond delay
 * @us: Number of microseconds to delay.
 *
 * Description: This function inserts a multi-microsecond busy-delay into a probe handler.
 * It requires guru mode.
 */
function udelay(us:long) %{
  /* guru */
  udelay(STAP_ARG_us);
%}

Anon7 - 2021