stress-ng  0.13.05
About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.
  Fossies Dox: stress-ng-0.13.05.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

stress-get.c File Reference
#include "stress-ng.h"
Include dependency graph for stress-get.c:

Go to the source code of this file.

Data Structures

struct  stress_rusage_t
 

Macros

#define _DEFAULT_SOURCE   1
 
#define _BSD_SOURCE   1
 
#define GIDS_MAX   (1024)
 
#define MOUNTS_MAX   (256)
 

Functions

static void stress_segv_handler (int num)
 
static int stress_get (const stress_args_t *args)
 

Variables

static const stress_help_t help []
 
static const stress_rusage_t rusages []
 
static const int rlimits []
 
static sigjmp_buf jmp_env
 
stressor_info_t stress_get_info
 

Macro Definition Documentation

◆ _BSD_SOURCE

#define _BSD_SOURCE   1

Definition at line 28 of file stress-get.c.

◆ _DEFAULT_SOURCE

#define _DEFAULT_SOURCE   1

Definition at line 27 of file stress-get.c.

◆ GIDS_MAX

#define GIDS_MAX   (1024)

Definition at line 30 of file stress-get.c.

◆ MOUNTS_MAX

#define MOUNTS_MAX   (256)

Definition at line 31 of file stress-get.c.

Function Documentation

◆ stress_get()

◆ stress_segv_handler()

static void stress_segv_handler ( int  num)
static

Definition at line 132 of file stress-get.c.

References jmp_env.

Referenced by stress_get().

Variable Documentation

◆ help

const stress_help_t help[]
static
Initial value:
= {
{ NULL, "get N", "start N workers exercising the get*() system calls" },
{ NULL, "get-ops N", "stop after N get bogo operations" },
{ NULL, NULL, NULL }
}

Definition at line 33 of file stress-get.c.

◆ jmp_env

sigjmp_buf jmp_env
static

Definition at line 130 of file stress-get.c.

Referenced by stress_get(), and stress_segv_handler().

◆ rlimits

const int rlimits[]
static

Definition at line 71 of file stress-get.c.

Referenced by stress_get().

◆ rusages

const stress_rusage_t rusages[]
static
Initial value:
= {
{ INT_MIN, "INT_MIN", false },
{ INT_MAX, "INT_MAX", false },
}

Definition at line 45 of file stress-get.c.

Referenced by stress_get().

◆ stress_get_info

stressor_info_t stress_get_info
Initial value:
= {
.stressor = stress_get,
.class = (1UL << 8 ) ,
}
static int stress_get(const stress_args_t *args)
Definition: stress-get.c:143
static const stress_help_t help[]
Definition: stress-get.c:33

Definition at line 722 of file stress-get.c.