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-vm.c File Reference
#include "stress-ng.h"
Include dependency graph for stress-vm.c:

Go to the source code of this file.

Data Structures

struct  stress_vm_method_info_t
 
struct  stress_vm_madvise_info_t
 
struct  stress_vm_context_t
 

Macros

#define INJECT_BIT_ERRORS   (0)
 
#define VM_BOGO_SHIFT   (12)
 
#define VM_ROWHAMMER_LOOPS   (1000000)
 
#define NO_MEM_RETRIES_MAX   (100)
 
#define SET_AND_TEST(ptr, val, bit_errors)
 
#define ROR8(val)
 
#define INC_LO_NYBBLE(val)
 
#define INC_HI_NYBBLE(val)
 
#define UNSIGNED_ABS(a, b)    ((a) > (b)) ? (a) - (b) : (b) - (a)
 

Typedefs

typedef size_t(* stress_vm_func) (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 

Functions

static bool keep_stressing_vm (const stress_args_t *args)
 
static int stress_set_vm_hang (const char *opt)
 
static int stress_set_vm_bytes (const char *opt)
 
static int stress_set_vm_mmap_locked (const char *opt)
 
static int stress_set_vm_mmap_populate (const char *opt)
 
static int stress_set_vm_madvise (const char *opt)
 
static int stress_set_vm_keep (const char *opt)
 
static void inject_random_bit_errors (uint8_t *buf, const size_t sz)
 
static void stress_vm_check (const char *name, const size_t bit_errors)
 
static size_t stress_vm_count_bits8 (uint8_t v)
 
static size_t stress_vm_count_bits (uint64_t v)
 
static size_t stress_vm_moving_inversion (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_modulo_x (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_walking_one_data (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_walking_zero_data (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_walking_one_addr (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_walking_zero_addr (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_gray (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_incdec (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_prime_incdec (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_swap (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_rand_set (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_ror (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_flip (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_zero_one (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_galpat_zero (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_galpat_one (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_inc_nybble (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_rand_sum (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_prime_zero (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_prime_one (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_prime_gray_zero (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_prime_gray_one (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_write64 (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_read64 (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_rowhammer (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static unsigned int stress_vm_popcount (register uint8_t val)
 
static size_t stress_vm_mscan (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static size_t stress_vm_all (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
 
static int stress_set_vm_method (const char *name)
 
static int stress_vm_child (const stress_args_t *args, void *ctxt)
 
static int stress_vm (const stress_args_t *args)
 
static void stress_vm_set_default (void)
 

Variables

static const stress_vm_method_info_t vm_methods []
 
static const stress_help_t help []
 
static const stress_vm_madvise_info_t vm_madvise_info []
 
static const stress_opt_set_func_t opt_set_funcs []
 
stressor_info_t stress_vm_info
 

Macro Definition Documentation

◆ INC_HI_NYBBLE

#define INC_HI_NYBBLE (   val)
Value:
do { \
uint8_t hi = (val); \
hi += 0xf0; \
hi &= 0xf0; \
(val) = ((val) & 0x0f) | hi; \
} while (0)

Definition at line 225 of file stress-vm.c.

◆ INC_LO_NYBBLE

#define INC_LO_NYBBLE (   val)
Value:
do { \
uint8_t lo = (val); \
lo += 1; \
lo &= 0xf; \
(val) = ((val) & 0xf0) | lo; \
} while (0)

Definition at line 217 of file stress-vm.c.

◆ INJECT_BIT_ERRORS

#define INJECT_BIT_ERRORS   (0)

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

◆ NO_MEM_RETRIES_MAX

#define NO_MEM_RETRIES_MAX   (100)

Definition at line 35 of file stress-vm.c.

◆ ROR8

#define ROR8 (   val)
Value:
do { \
uint8_t tmp = val; \
const uint8_t bit0 = (uint8_t)((tmp & 1) << 7); \
tmp >>= 1; \
tmp |= bit0; \
val = tmp; \
} while (0)

Definition at line 208 of file stress-vm.c.

◆ SET_AND_TEST

#define SET_AND_TEST (   ptr,
  val,
  bit_errors 
)
Value:
do { \
*ptr = val; \
bit_errors += (*ptr != val); \
} while (0)

Definition at line 202 of file stress-vm.c.

◆ UNSIGNED_ABS

#define UNSIGNED_ABS (   a,
 
)     ((a) > (b)) ? (a) - (b) : (b) - (a)

Definition at line 233 of file stress-vm.c.

◆ VM_BOGO_SHIFT

#define VM_BOGO_SHIFT   (12)

Definition at line 32 of file stress-vm.c.

◆ VM_ROWHAMMER_LOOPS

#define VM_ROWHAMMER_LOOPS   (1000000)

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

Typedef Documentation

◆ stress_vm_func

typedef size_t(* stress_vm_func) (void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)

Definition at line 40 of file stress-vm.c.

Function Documentation

◆ inject_random_bit_errors()

◆ keep_stressing_vm()

static bool keep_stressing_vm ( const stress_args_t args)
static

Definition at line 117 of file stress-vm.c.

References get_counter(), keep_stressing_flag(), LIKELY, stress_args_t::max_ops, and VM_BOGO_SHIFT.

Referenced by stress_vm_child().

◆ stress_set_vm_bytes()

static int stress_set_vm_bytes ( const char *  opt)
static

◆ stress_set_vm_hang()

static int stress_set_vm_hang ( const char *  opt)
static

◆ stress_set_vm_keep()

static int stress_set_vm_keep ( const char *  opt)
static

Definition at line 194 of file stress-vm.c.

References stress_set_setting(), and TYPE_ID_BOOL.

◆ stress_set_vm_madvise()

static int stress_set_vm_madvise ( const char *  opt)
static

◆ stress_set_vm_method()

static int stress_set_vm_method ( const char *  name)
static

◆ stress_set_vm_mmap_locked()

static int stress_set_vm_mmap_locked ( const char *  opt)
static

Definition at line 154 of file stress-vm.c.

◆ stress_set_vm_mmap_populate()

static int stress_set_vm_mmap_populate ( const char *  opt)
static

Definition at line 165 of file stress-vm.c.

◆ stress_vm()

◆ stress_vm_all()

static size_t stress_vm_all ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

Definition at line 2057 of file stress-vm.c.

References stress_vm_method_info_t::func, max_ops, and vm_methods.

◆ stress_vm_check()

◆ stress_vm_child()

◆ stress_vm_count_bits()

static size_t stress_vm_count_bits ( uint64_t  v)
inlinestatic

◆ stress_vm_count_bits8()

static size_t stress_vm_count_bits8 ( uint8_t  v)
inlinestatic

◆ stress_vm_flip()

static size_t stress_vm_flip ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_galpat_one()

static size_t stress_vm_galpat_one ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_galpat_zero()

static size_t stress_vm_galpat_zero ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_gray()

static size_t stress_vm_gray ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_inc_nybble()

static size_t stress_vm_inc_nybble ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_incdec()

static size_t stress_vm_incdec ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_modulo_x()

static size_t stress_vm_modulo_x ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_moving_inversion()

static size_t stress_vm_moving_inversion ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_mscan()

static size_t stress_vm_mscan ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_popcount()

static unsigned int stress_vm_popcount ( register uint8_t  val)
inlinestatic

Definition at line 1977 of file stress-vm.c.

Referenced by stress_vm_mscan().

◆ stress_vm_prime_gray_one()

static size_t stress_vm_prime_gray_one ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_prime_gray_zero()

static size_t stress_vm_prime_gray_zero ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_prime_incdec()

static size_t stress_vm_prime_incdec ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_prime_one()

static size_t stress_vm_prime_one ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_prime_zero()

static size_t stress_vm_prime_zero ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_rand_set()

static size_t stress_vm_rand_set ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_rand_sum()

static size_t stress_vm_rand_sum ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_read64()

static size_t stress_vm_read64 ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

Definition at line 1839 of file stress-vm.c.

References add_counter(), keep_stressing_flag(), max_ops, and UNLIKELY.

◆ stress_vm_ror()

static size_t stress_vm_ror ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_rowhammer()

static size_t stress_vm_rowhammer ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_set_default()

static void stress_vm_set_default ( void  )
static

Definition at line 2273 of file stress-vm.c.

References stress_set_vm_method().

◆ stress_vm_swap()

static size_t stress_vm_swap ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_walking_one_addr()

static size_t stress_vm_walking_one_addr ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_walking_one_data()

static size_t stress_vm_walking_one_data ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_walking_zero_addr()

static size_t stress_vm_walking_zero_addr ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_walking_zero_data()

static size_t stress_vm_walking_zero_data ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

◆ stress_vm_write64()

static size_t stress_vm_write64 ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

Definition at line 1775 of file stress-vm.c.

References add_counter(), keep_stressing_flag(), max_ops, and UNLIKELY.

◆ stress_vm_zero_one()

static size_t stress_vm_zero_one ( void *  buf,
void *  buf_end,
const size_t  sz,
const stress_args_t args,
const uint64_t  max_ops 
)
static

Variable Documentation

◆ help

const stress_help_t help[]
static
Initial value:
= {
{ "m N", "vm N", "start N workers spinning on anonymous mmap" },
{ NULL, "vm-bytes N", "allocate N bytes per vm worker (default 256MB)" },
{ NULL, "vm-hang N", "sleep N seconds before freeing memory" },
{ NULL, "vm-keep", "redirty memory instead of reallocating" },
{ NULL, "vm-ops N", "stop after N vm bogo operations" },
{ NULL, "vm-madvise M", "specify mmap'd vm buffer madvise advice" },
{ NULL, "vm-method M", "specify stress vm method M, default is all" },
{ NULL, NULL, NULL }
}

Definition at line 60 of file stress-vm.c.

◆ opt_set_funcs

const stress_opt_set_func_t opt_set_funcs[]
static
Initial value:
= {
{ 0, NULL }
}
@ OPT_vm_keep
Definition: stress-ng.h:3766
@ OPT_vm_mmap_populate
Definition: stress-ng.h:3767
@ OPT_vm_madvise
Definition: stress-ng.h:3770
@ OPT_vm_mmap_locked
Definition: stress-ng.h:3768
@ OPT_vm_hang
Definition: stress-ng.h:3765
@ OPT_vm_method
Definition: stress-ng.h:3771
@ OPT_vm_bytes
Definition: stress-ng.h:3764
static int stress_set_vm_method(const char *name)
Definition: stress-vm.c:2110
static int stress_set_vm_mmap_locked(const char *opt)
Definition: stress-vm.c:154
static int stress_set_vm_mmap_populate(const char *opt)
Definition: stress-vm.c:165
static int stress_set_vm_bytes(const char *opt)
Definition: stress-vm.c:133
static int stress_set_vm_madvise(const char *opt)
Definition: stress-vm.c:176
static int stress_set_vm_hang(const char *opt)
Definition: stress-vm.c:123
static int stress_set_vm_keep(const char *opt)
Definition: stress-vm.c:194

Definition at line 2278 of file stress-vm.c.

◆ stress_vm_info

stressor_info_t stress_vm_info
Initial value:
= {
.stressor = stress_vm,
.set_default = stress_vm_set_default,
.class = (1UL << 6 ) | (1UL << 1 ) | (1UL << 8 ) ,
}
static const stress_opt_set_func_t opt_set_funcs[]
Definition: stress-vm.c:2278
static int stress_vm(const stress_args_t *args)
Definition: stress-vm.c:2215
static const stress_help_t help[]
Definition: stress-vm.c:60
static void stress_vm_set_default(void)
Definition: stress-vm.c:2273

Definition at line 2289 of file stress-vm.c.

◆ vm_madvise_info

const stress_vm_madvise_info_t vm_madvise_info[]
static

Definition at line 77 of file stress-vm.c.

Referenced by stress_set_vm_madvise().

◆ vm_methods

static const stress_vm_method_info_t vm_methods
static
Initial value:
= {
{ "all", stress_vm_all },
{ "flip", stress_vm_flip },
{ "galpat-0", stress_vm_galpat_zero },
{ "galpat-1", stress_vm_galpat_one },
{ "gray", stress_vm_gray },
{ "rowhammer", stress_vm_rowhammer },
{ "incdec", stress_vm_incdec },
{ "inc-nybble", stress_vm_inc_nybble },
{ "rand-set", stress_vm_rand_set },
{ "rand-sum", stress_vm_rand_sum },
{ "read64", stress_vm_read64 },
{ "ror", stress_vm_ror },
{ "swap", stress_vm_swap },
{ "move-inv", stress_vm_moving_inversion },
{ "modulo-x", stress_vm_modulo_x },
{ "mscan", stress_vm_mscan },
{ "prime-0", stress_vm_prime_zero },
{ "prime-1", stress_vm_prime_one },
{ "prime-gray-0",stress_vm_prime_gray_zero },
{ "prime-gray-1",stress_vm_prime_gray_one },
{ "prime-incdec",stress_vm_prime_incdec },
{ "write64", stress_vm_write64 },
{ "zero-one", stress_vm_zero_one },
{ NULL, NULL }
}
static size_t stress_vm_prime_gray_zero(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1634
static size_t stress_vm_all(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:2057
static size_t stress_vm_read64(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1839
static size_t stress_vm_flip(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1080
static size_t stress_vm_prime_gray_one(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1705
static size_t stress_vm_incdec(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:722
static size_t stress_vm_gray(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:676
static size_t stress_vm_inc_nybble(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1372
static size_t stress_vm_prime_one(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1573
static size_t stress_vm_mscan(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1991
static size_t stress_vm_moving_inversion(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:326
static size_t stress_vm_walking_one_addr(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:574
static size_t stress_vm_rand_sum(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1448
static size_t stress_vm_prime_zero(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1513
static size_t stress_vm_walking_zero_data(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:534
static size_t stress_vm_galpat_zero(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1245
static size_t stress_vm_write64(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1775
static size_t stress_vm_walking_zero_addr(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:622
static size_t stress_vm_rowhammer(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1901
static size_t stress_vm_ror(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:993
static size_t stress_vm_prime_incdec(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:766
static size_t stress_vm_modulo_x(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:430
static size_t stress_vm_rand_set(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:925
static size_t stress_vm_galpat_one(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1309
static size_t stress_vm_zero_one(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:1182
static size_t stress_vm_walking_one_data(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:495
static size_t stress_vm_swap(void *buf, void *buf_end, const size_t sz, const stress_args_t *args, const uint64_t max_ops)
Definition: stress-vm.c:823

Definition at line 58 of file stress-vm.c.

Referenced by stress_set_vm_method(), stress_vm(), and stress_vm_all().