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-ng.h File Reference
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <inttypes.h>
#include <limits.h>
#include <math.h>
#include <pwd.h>
#include <sched.h>
#include <search.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "config.h"
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/times.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "stress-version.h"
Include dependency graph for stress-ng.h:

Go to the source code of this file.

Data Structures

struct  stress_help_t
 
struct  stress_checksum_t
 
struct  stress_setting
 
union  stress_put_val_t
 
struct  stress_mapped_t
 
struct  stress_misc_stats_t
 
struct  stress_args_t
 
struct  stress_opt_set_func_t
 
struct  stressor_info_t
 
struct  stress_pthread_args_t
 
struct  stress_hash
 
struct  stress_hash_table_t
 
struct  stress_vmstat_t
 
struct  stress_iostat_t
 
struct  stress_mwc_t
 
struct  stress_tz_info
 
struct  stress_tz_stat_t
 
struct  stress_tz_t
 
struct  stress_stats_t
 
struct  stress_shared_t
 
struct  stress_class_info_t
 
struct  stress_t
 
struct  stress_stressor_info
 
struct  stress_scale_t
 
struct  stress_cpu_cache
 
struct  stress_cpu
 
struct  stress_cpus
 
struct  shim_clone_args
 
struct  shim_getcpu_cache
 
struct  shim_linux_dirent
 
struct  shim_linux_dirent64
 
struct  shim_sched_attr
 
struct  shim_statx_timestamp
 
struct  shim_statx
 
struct  shim_ustat
 
struct  shim_timex
 

Macros

#define _GNU_SOURCE
 
#define _ATFILE_SOURCE
 
#define _LARGEFILE_SOURCE
 
#define _LARGEFILE64_SOURCE
 
#define _FILE_OFFSET_BITS   (64)
 
#define SCHED_FLAG_RESET_ON_FORK   (0x01)
 
#define SCHED_FLAG_RECLAIM   (0x02)
 
#define SCHED_FLAG_DL_OVERRUN   (0x04)
 
#define STRESS_BIT_U(shift)   (1U << shift)
 
#define STRESS_BIT_UL(shift)   (1UL << shift)
 
#define STRESS_BIT_ULL(shift)   (1ULL << shift)
 
#define SHIM_ICACHE   (1 << 0)
 
#define SHIM_DCACHE   (1 << 1)
 
#define EXIT_SUCESSS   (0)
 
#define EXIT_FAILURE   (1)
 
#define EXIT_NOT_SUCCESS   (2)
 
#define EXIT_NO_RESOURCE   (3)
 
#define EXIT_NOT_IMPLEMENTED   (4)
 
#define EXIT_SIGNALED   (5)
 
#define EXIT_BY_SYS_EXIT   (6)
 
#define EXIT_METRICS_UNTRUSTWORTHY   (7)
 
#define STRESS_STATE_START   (0)
 
#define STRESS_STATE_INIT   (1)
 
#define STRESS_STATE_RUN   (2)
 
#define STRESS_STATE_DEINIT   (3)
 
#define STRESS_STATE_STOP   (4)
 
#define STRESS_STATE_EXIT   (5)
 
#define STRESS_STATE_WAIT   (6)
 
#define STRESS_NANOSECOND   (1000000000L)
 
#define STRESS_MICROSECOND   (1000000L)
 
#define STRESS_MILLISECOND   (1000L)
 
#define STRESS_CONCAT(a, b)   a ## b
 
#define STRESS_CONCAT_EXPAND(a, b)   STRESS_CONCAT(a, b)
 
#define STRESS_ASSERT(expr)
 
#define STRESS_MINIMUM(a, b)   (((a) < (b)) ? (a) : (b))
 
#define STRESS_MAXIMUM(a, b)   (((a) > (b)) ? (a) : (b))
 
#define PATH_MAX   (4096)
 
#define NOCLOBBER   static
 
#define STRESS_PAGE_IN
 
#define STRESS_TRY_OPEN_OK   (0) /* File can be opened */
 
#define STRESS_TRY_OPEN_FORK_FAIL   (1) /* Try failed, e.g. can't fork */
 
#define STRESS_TRY_OPEN_WAIT_FAIL   (2) /* Wait on child open failed */
 
#define STRESS_TRY_OPEN_EXIT_FAIL   (3) /* Can't get _exit() status */
 
#define STRESS_TRY_OPEN_FAIL   (4) /* Can't open file */
 
#define STRESS_TRY_AGAIN   (5) /* Device busy, try again */
 
#define STRESS_FD_MAX   (65536) /* Max fds if we can't figure it out */
 
#define STRESS_PROCS_MAX   (8192) /* Max number of processes per stressor */
 
#define DCCP_BUF   (1024) /* DCCP I/O buffer size */
 
#define SOCKET_BUF   (8192) /* Socket I/O buffer size */
 
#define UDP_BUF   (1024) /* UDP I/O buffer size */
 
#define SOCKET_PAIR_BUF   (64) /* Socket pair I/O buffer size */
 
#define ABORT_FAILURES   (5) /* Number of failures before we abort */
 
#define PR_ERROR   STRESS_BIT_ULL(0) /* Print errors */
 
#define PR_INFO   STRESS_BIT_ULL(1) /* Print info */
 
#define PR_DEBUG   STRESS_BIT_ULL(2) /* Print debug */
 
#define PR_FAIL   STRESS_BIT_ULL(3) /* Print test failure message */
 
#define PR_ALL   (PR_ERROR | PR_INFO | PR_DEBUG | PR_FAIL)
 
#define OPT_FLAGS_DRY_RUN   STRESS_BIT_ULL(4) /* Don't actually run */
 
#define OPT_FLAGS_METRICS   STRESS_BIT_ULL(5) /* Dump metrics at end */
 
#define OPT_FLAGS_RANDOM   STRESS_BIT_ULL(6) /* Randomize */
 
#define OPT_FLAGS_SET   STRESS_BIT_ULL(7) /* Set if user specifies stress procs */
 
#define OPT_FLAGS_KEEP_NAME   STRESS_BIT_ULL(8) /* Keep stress names to stress-ng */
 
#define OPT_FLAGS_METRICS_BRIEF   STRESS_BIT_ULL(9) /* dump brief metrics */
 
#define OPT_FLAGS_VERIFY   STRESS_BIT_ULL(10) /* verify mode */
 
#define OPT_FLAGS_MMAP_MADVISE   STRESS_BIT_ULL(11) /* enable random madvise settings */
 
#define OPT_FLAGS_MMAP_MINCORE   STRESS_BIT_ULL(12) /* mincore force pages into mem */
 
#define OPT_FLAGS_TIMES   STRESS_BIT_ULL(13) /* user/system time summary */
 
#define OPT_FLAGS_HDD_SYNC   STRESS_BIT_ULL(14) /* HDD O_SYNC */
 
#define OPT_FLAGS_HDD_DSYNC   STRESS_BIT_ULL(15) /* HDD O_DYNC */
 
#define OPT_FLAGS_HDD_DIRECT   STRESS_BIT_ULL(16) /* HDD O_DIRECT */
 
#define OPT_FLAGS_HDD_NOATIME   STRESS_BIT_ULL(17) /* HDD O_NOATIME */
 
#define OPT_FLAGS_MINIMIZE   STRESS_BIT_ULL(18) /* Minimize */
 
#define OPT_FLAGS_MAXIMIZE   STRESS_BIT_ULL(19) /* Maximize */
 
#define OPT_FLAGS_SYSLOG   STRESS_BIT_ULL(20) /* log test progress to syslog */
 
#define OPT_FLAGS_AGGRESSIVE   STRESS_BIT_ULL(21) /* aggressive mode enabled */
 
#define OPT_FLAGS_ALL   STRESS_BIT_ULL(22) /* --all mode */
 
#define OPT_FLAGS_SEQUENTIAL   STRESS_BIT_ULL(23) /* --sequential mode */
 
#define OPT_FLAGS_PERF_STATS   STRESS_BIT_ULL(24) /* --perf stats mode */
 
#define OPT_FLAGS_LOG_BRIEF   STRESS_BIT_ULL(25) /* --log-brief */
 
#define OPT_FLAGS_THERMAL_ZONES   STRESS_BIT_ULL(26) /* --tz thermal zones */
 
#define OPT_FLAGS_SOCKET_NODELAY   STRESS_BIT_ULL(27) /* --sock-nodelay */
 
#define OPT_FLAGS_IGNITE_CPU   STRESS_BIT_ULL(28) /* --cpu-ignite */
 
#define OPT_FLAGS_PATHOLOGICAL   STRESS_BIT_ULL(29) /* --pathological */
 
#define OPT_FLAGS_NO_RAND_SEED   STRESS_BIT_ULL(30) /* --no-rand-seed */
 
#define OPT_FLAGS_THRASH   STRESS_BIT_ULL(31) /* --thrash */
 
#define OPT_FLAGS_OOMABLE   STRESS_BIT_ULL(32) /* --oomable */
 
#define OPT_FLAGS_ABORT   STRESS_BIT_ULL(33) /* --abort */
 
#define OPT_FLAGS_CPU_ONLINE_ALL   STRESS_BIT_ULL(34) /* --cpu-online-all */
 
#define OPT_FLAGS_TIMESTAMP   STRESS_BIT_ULL(35) /* --timestamp */
 
#define OPT_FLAGS_DEADLINE_GRUB   STRESS_BIT_ULL(36) /* --sched-reclaim */
 
#define OPT_FLAGS_FTRACE   STRESS_BIT_ULL(37) /* --ftrace */
 
#define OPT_FLAGS_SEED   STRESS_BIT_ULL(38) /* --seed */
 
#define OPT_FLAGS_SKIP_SILENT   STRESS_BIT_ULL(39) /* --skip-silent */
 
#define OPT_FLAGS_SMART   STRESS_BIT_ULL(40) /* --smart */
 
#define OPT_FLAGS_NO_OOM_ADJUST   STRESS_BIT_ULL(41) /* --no-oom-adjust */
 
#define OPT_FLAGS_MINMAX_MASK    (OPT_FLAGS_MINIMIZE | OPT_FLAGS_MAXIMIZE)
 
#define OPT_FLAGS_AGGRESSIVE_MASK
 
#define CLASS_CPU   STRESS_BIT_UL(0) /* CPU only */
 
#define CLASS_MEMORY   STRESS_BIT_UL(1) /* Memory thrashers */
 
#define CLASS_CPU_CACHE   STRESS_BIT_UL(2) /* CPU cache */
 
#define CLASS_IO   STRESS_BIT_UL(3) /* I/O read/writes etc */
 
#define CLASS_NETWORK   STRESS_BIT_UL(4) /* Network, sockets, etc */
 
#define CLASS_SCHEDULER   STRESS_BIT_UL(5) /* Scheduling */
 
#define CLASS_VM   STRESS_BIT_UL(6) /* VM stress, big memory, swapping */
 
#define CLASS_INTERRUPT   STRESS_BIT_UL(7) /* interrupt floods */
 
#define CLASS_OS   STRESS_BIT_UL(8) /* generic OS tests */
 
#define CLASS_PIPE_IO   STRESS_BIT_UL(9) /* pipe I/O */
 
#define CLASS_FILESYSTEM   STRESS_BIT_UL(10) /* file system */
 
#define CLASS_DEV   STRESS_BIT_UL(11) /* device (null, zero, etc) */
 
#define CLASS_SECURITY   STRESS_BIT_UL(12) /* security APIs */
 
#define CLASS_PATHOLOGICAL   STRESS_BIT_UL(13) /* can hang a machine */
 
#define DOMAIN_INET   (0x00000001) /* AF_INET */
 
#define DOMAIN_INET6   (0x00000002) /* AF_INET6 */
 
#define DOMAIN_UNIX   (0x00000004) /* AF_UNIX */
 
#define DOMAIN_INET_ALL   (DOMAIN_INET | DOMAIN_INET6)
 
#define DOMAIN_ALL   (DOMAIN_INET | DOMAIN_INET6 | DOMAIN_UNIX)
 
#define PRIME_64   (0x8f0000000017116dULL)
 
#define STRESS_MISC_STATS_MAX   (10)
 
#define CASE_FALLTHROUGH   /* Fallthrough */
 
#define NORETURN
 
#define WEAK
 
#define ALWAYS_INLINE
 
#define NOINLINE
 
#define OPTIMIZE3
 
#define OPTIMIZE1
 
#define OPTIMIZE0
 
#define WARN_UNUSED
 
#define ALIGNED(a)
 
#define ALIGN128
 
#define ALIGN64
 
#define SECTION(s)
 
#define ALIGN_CACHELINE   ALIGN128
 
#define HOT
 
#define MLOCKED_TEXT
 
#define FORMAT(func, a, b)
 
#define RESTRICT
 
#define LIKELY(x)   (x)
 
#define UNLIKELY(x)   (x)
 
#define shim_builtin_memmove   memmove
 
#define FORCE_DO_NOTHING()   while (0)
 
#define STRESS_PRAGMA_PUSH
 
#define STRESS_PRAGMA_POP
 
#define STRESS_PRAGMA_WARN_OFF
 
#define pr_dbg_v(fmt, ...)
 
#define shim_syslog(priority, format, ...)
 
#define shim_openlog(ident, option, facility)
 
#define shim_closelog()
 
#define KB   (1ULL << 10)
 
#define MB   (1ULL << 20)
 
#define GB   (1ULL << 30)
 
#define TB   (1ULL << 40)
 
#define PB   (1ULL << 50)
 
#define EB   (1ULL << 60)
 
#define PAGE_4K_SHIFT   (12)
 
#define PAGE_4K   (1 << PAGE_4K_SHIFT)
 
#define STACK_ALIGNMENT   (64) /* thread stacks align to 64 bytes */
 
#define MIN_OPS   (1ULL)
 
#define MAX_OPS   (100000000ULL)
 
#define MAX_32   (0xffffffffUL)
 
#define MAX_48   (0xffffffffffffULL)
 
#define MAX_64   (0xffffffffffffffffULL)
 
#define MAX_MEM_LIMIT   (MAX_48)
 
#define MAX_FILE_LIMIT   ((1ULL << ((sizeof(off_t) * 8) - 1)) - 1)
 
#define MAXIMIZED_FILE_SIZE   ((sizeof(off_t) < 8) ? MAX_FILE_LIMIT : MAX_32)
 
#define MIN_AIO_REQUESTS   (1)
 
#define MAX_AIO_REQUESTS   (4096)
 
#define DEFAULT_AIO_REQUESTS   (16)
 
#define MIN_AIO_LINUX_REQUESTS   (1)
 
#define MAX_AIO_LINUX_REQUESTS   (4096)
 
#define DEFAULT_AIO_LINUX_REQUESTS   (64)
 
#define MIN_BIGHEAP_GROWTH   (4 * KB)
 
#define MAX_BIGHEAP_GROWTH   (64 * MB)
 
#define DEFAULT_BIGHEAP_GROWTH   (64 * KB)
 
#define MIN_BSEARCH_SIZE   (1 * KB)
 
#define MAX_BSEARCH_SIZE   (4 * MB)
 
#define DEFAULT_BSEARCH_SIZE   (64 * KB)
 
#define MIN_CHDIR_DIRS   (64)
 
#define MAX_CHDIR_DIRS   (65536)
 
#define DEFAULT_CHDIR_DIRS   (8192)
 
#define MIN_CLONES   (1)
 
#define MAX_CLONES   (1000000)
 
#define DEFAULT_CLONES   (8192)
 
#define MIN_COPY_FILE_BYTES   (128 * MB)
 
#define MAX_COPY_FILE_BYTES   (MAX_FILE_LIMIT)
 
#define DEFAULT_COPY_FILE_BYTES   (256 * MB)
 
#define DEFAULT_COPY_FILE_SIZE   (2 * MB)
 
#define MIN_DCCP_PORT   (1024)
 
#define MAX_DCCP_PORT   (65535)
 
#define DEFAULT_DCCP_PORT   (10000)
 
#define MIN_DENTRIES   (1)
 
#define MAX_DENTRIES   (1000000)
 
#define DEFAULT_DENTRIES   (2048)
 
#define MIN_DIR_DIRS   (64)
 
#define MAX_DIR_DIRS   (65536)
 
#define DEFAULT_DIR_DIRS   (8192)
 
#define MIN_EPOLL_PORT   (1024)
 
#define MAX_EPOLL_PORT   (65535)
 
#define DEFAULT_EPOLL_PORT   (6000)
 
#define MIN_HDD_BYTES   (1 * MB)
 
#define MAX_HDD_BYTES   (MAX_FILE_LIMIT)
 
#define DEFAULT_HDD_BYTES   (1 * GB)
 
#define MIN_HDD_WRITE_SIZE   (1)
 
#define MAX_HDD_WRITE_SIZE   (4 * MB)
 
#define DEFAULT_HDD_WRITE_SIZE   (64 * 1024)
 
#define MIN_FALLOCATE_BYTES   (1 * MB)
 
#define MAX_FALLOCATE_BYTES   (MAX_FILE_LIMIT)
 
#define DEFAULT_FALLOCATE_BYTES   (1 * GB)
 
#define MIN_FIEMAP_SIZE   (1 * MB)
 
#define MAX_FIEMAP_SIZE   (MAX_FILE_LIMIT)
 
#define DEFAULT_FIEMAP_SIZE   (16 * MB)
 
#define MIN_FIFO_READERS   (1)
 
#define MAX_FIFO_READERS   (64)
 
#define DEFAULT_FIFO_READERS   (4)
 
#define MIN_ITIMER_FREQ   (1)
 
#define MAX_ITIMER_FREQ   (100000000)
 
#define DEFAULT_ITIMER_FREQ   (1000000)
 
#define MIN_MQ_SIZE   (1)
 
#define MAX_MQ_SIZE   (32)
 
#define DEFAULT_MQ_SIZE   (10)
 
#define MIN_SEMAPHORE_PROCS   (2)
 
#define MAX_SEMAPHORE_PROCS   (64)
 
#define DEFAULT_SEMAPHORE_PROCS   (2)
 
#define MIN_EXECS   (1)
 
#define MAX_EXECS   (16000)
 
#define DEFAULT_EXECS   (1)
 
#define MIN_FORKS   (1)
 
#define MAX_FORKS   (16000)
 
#define DEFAULT_FORKS   (1)
 
#define MIN_HEAPSORT_SIZE   (1 * KB)
 
#define MAX_HEAPSORT_SIZE   (4 * MB)
 
#define DEFAULT_HEAPSORT_SIZE   (256 * KB)
 
#define MIN_IOMIX_BYTES   (1 * MB)
 
#define MAX_IOMIX_BYTES   (MAX_FILE_LIMIT)
 
#define DEFAULT_IOMIX_BYTES   (1 * GB)
 
#define MIN_JUDY_SIZE   (1 * KB)
 
#define MAX_JUDY_SIZE   (4 * MB)
 
#define DEFAULT_JUDY_SIZE   (256 * KB)
 
#define MIN_VFORKS   (1)
 
#define MAX_VFORKS   (16000)
 
#define DEFAULT_VFORKS   (1)
 
#define MIN_HSEARCH_SIZE   (1 * KB)
 
#define MAX_HSEARCH_SIZE   (4 * MB)
 
#define DEFAULT_HSEARCH_SIZE   (8 * KB)
 
#define MIN_LEASE_BREAKERS   (1)
 
#define MAX_LEASE_BREAKERS   (64)
 
#define DEFAULT_LEASE_BREAKERS   (1)
 
#define MIN_LIST_SIZE   (64)
 
#define MAX_LIST_SIZE   (1000000)
 
#define DEFAULT_LIST_SIZE   (5000)
 
#define MIN_LSEARCH_SIZE   (1 * KB)
 
#define MAX_LSEARCH_SIZE   (1 * MB)
 
#define DEFAULT_LSEARCH_SIZE   (8 * KB)
 
#define MIN_MALLOC_BYTES   (1 * KB)
 
#define MAX_MALLOC_BYTES   (MAX_MEM_LIMIT)
 
#define DEFAULT_MALLOC_BYTES   (64 * KB)
 
#define MIN_MALLOC_MAX   (32)
 
#define MAX_MALLOC_MAX   (256 * 1024)
 
#define DEFAULT_MALLOC_MAX   (64 * KB)
 
#define MIN_MALLOC_THRESHOLD   (1)
 
#define MAX_MALLOC_THRESHOLD   (256 * MB)
 
#define DEFAULT_MALLOC_THRESHOLD   (128 * KB)
 
#define MIN_MATRIX_SIZE   (16)
 
#define MAX_MATRIX_SIZE   (8192)
 
#define DEFAULT_MATRIX_SIZE   (256)
 
#define MIN_MATRIX3D_SIZE   (16)
 
#define MAX_MATRIX3D_SIZE   (1024)
 
#define DEFAULT_MATRIX3D_SIZE   (64)
 
#define MIN_MEMFD_BYTES   (2 * MB)
 
#define MAX_MEMFD_BYTES   (MAX_MEM_LIMIT)
 
#define DEFAULT_MEMFD_BYTES   (256 * MB)
 
#define MIN_MEMFD_FDS   (8)
 
#define MAX_MEMFD_FDS   (4096)
 
#define DEFAULT_MEMFD_FDS   (256)
 
#define MIN_MERGESORT_SIZE   (1 * KB)
 
#define MAX_MERGESORT_SIZE   (4 * MB)
 
#define DEFAULT_MERGESORT_SIZE   (256 * KB)
 
#define MIN_MMAP_BYTES   (4 * KB)
 
#define MAX_MMAP_BYTES   (MAX_MEM_LIMIT)
 
#define DEFAULT_MMAP_BYTES   (256 * MB)
 
#define MIN_MEMRATE_BYTES   (4 * KB)
 
#define MAX_MEMRATE_BYTES   (MAX_MEM_LIMIT)
 
#define DEFAULT_MEMRATE_BYTES   (256 * MB)
 
#define DEFAULT_MREMAP_BYTES   (256 * MB)
 
#define MIN_MREMAP_BYTES   (4 * KB)
 
#define MAX_MREMAP_BYTES   (MAX_MEM_LIMIT)
 
#define DEFAULT_MREMAP_BYTES   (256 * MB)
 
#define MIN_MSYNC_BYTES   (1 * MB) /* MUST NOT BE page size or less! */
 
#define MAX_MSYNC_BYTES   (MAX_FILE_LIMIT)
 
#define DEFAULT_MSYNC_BYTES   (256 * MB)
 
#define MIN_PTHREAD   (1)
 
#define MAX_PTHREAD   (30000)
 
#define DEFAULT_PTHREAD   (1024)
 
#define MIN_PTYS   (8)
 
#define MAX_PTYS   (65536)
 
#define DEFAULT_PTYS   (65536)
 
#define MIN_QSORT_SIZE   (1 * KB)
 
#define MAX_QSORT_SIZE   (4 * MB)
 
#define DEFAULT_QSORT_SIZE   (256 * KB)
 
#define MIN_RADIXSORT_SIZE   (1 * KB)
 
#define MAX_RADIXSORT_SIZE   (4 * MB)
 
#define DEFAULT_RADIXSORT_SIZE   (256 * KB)
 
#define MIN_READAHEAD_BYTES   (1 * MB)
 
#define MAX_READAHEAD_BYTES   (MAX_FILE_LIMIT)
 
#define DEFAULT_READAHEAD_BYTES   (64 * MB)
 
#define MIN_REVIO_BYTES   (1 * MB)
 
#define MAX_REVIO_BYTES   (MAX_FILE_LIMIT)
 
#define DEFAULT_REVIO_BYTES   (1 * GB)
 
#define MIN_SCTP_PORT   (1024)
 
#define MAX_SCTP_PORT   (65535)
 
#define DEFAULT_SCTP_PORT   (9000)
 
#define MIN_SENDFILE_SIZE   (1 * KB)
 
#define MAX_SENDFILE_SIZE   (1 * GB)
 
#define DEFAULT_SENDFILE_SIZE   (4 * MB)
 
#define MIN_SEEK_SIZE   (1 * MB)
 
#define MAX_SEEK_SIZE   (MAX_FILE_LIMIT)
 
#define DEFAULT_SEEK_SIZE   (16 * MB)
 
#define MIN_SEQUENTIAL   (0)
 
#define MAX_SEQUENTIAL   (1000000)
 
#define DEFAULT_SEQUENTIAL   (0) /* Disabled */
 
#define DEFAULT_PARALLEL   (0) /* Disabled */
 
#define MIN_SHELLSORT_SIZE   (1 * KB)
 
#define MAX_SHELLSORT_SIZE   (4 * MB)
 
#define DEFAULT_SHELLSORT_SIZE   (256 * KB)
 
#define MIN_SHM_SYSV_BYTES   (1 * MB)
 
#define MAX_SHM_SYSV_BYTES   (256 * MB)
 
#define DEFAULT_SHM_SYSV_BYTES   (8 * MB)
 
#define MIN_SHM_SYSV_SEGMENTS   (1)
 
#define MAX_SHM_SYSV_SEGMENTS   (128)
 
#define DEFAULT_SHM_SYSV_SEGMENTS   (8)
 
#define MIN_SHM_POSIX_BYTES   (1 * MB)
 
#define MAX_SHM_POSIX_BYTES   (1 * GB)
 
#define DEFAULT_SHM_POSIX_BYTES   (8 * MB)
 
#define MIN_SHM_POSIX_OBJECTS   (1)
 
#define MAX_SHM_POSIX_OBJECTS   (128)
 
#define DEFAULT_SHM_POSIX_OBJECTS   (32)
 
#define MAX_SIGSUSPEND_PIDS   (4)
 
#define MIN_SKIPLIST_SIZE   (1 * KB)
 
#define MAX_SKIPLIST_SIZE   (4 * MB)
 
#define DEFAULT_SKIPLIST_SIZE   (64 * KB)
 
#define MIN_SLEEP   (1)
 
#define MAX_SLEEP   (30000)
 
#define DEFAULT_SLEEP   (1024)
 
#define MIN_SOCKET_PORT   (1024)
 
#define MAX_SOCKET_PORT   (65535)
 
#define DEFAULT_SOCKET_PORT   (5000)
 
#define DEFAULT_SOCKET_MANY_PORT   (11000)
 
#define DEFAULT_SOCKABUSE_PORT   (12000)
 
#define MIN_RAWUDP_PORT   (1024)
 
#define MAX_RAWUDP_PORT   (65535)
 
#define DEFAULT_RAWUDP_PORT   (13000)
 
#define MIN_RAWPKT_PORT   (1024)
 
#define MAX_RAWPKT_PORT   (65535)
 
#define DEFAULT_RAWPKT_PORT   (14000)
 
#define MIN_SOCKET_FD_PORT   (1024)
 
#define MAX_SOCKET_FD_PORT   (65535)
 
#define DEFAULT_SOCKET_FD_PORT   (8000)
 
#define MIN_SPLICE_BYTES   (1 * KB)
 
#define MAX_SPLICE_BYTES   (64 * MB)
 
#define DEFAULT_SPLICE_BYTES   (64 * KB)
 
#define MIN_STREAM_L3_SIZE   (4 * KB)
 
#define MAX_STREAM_L3_SIZE   (MAX_MEM_LIMIT)
 
#define DEFAULT_STREAM_L3_SIZE   (4 * MB)
 
#define MIN_SYNC_FILE_BYTES   (1 * MB)
 
#define MAX_SYNC_FILE_BYTES   (MAX_FILE_LIMIT)
 
#define DEFAULT_SYNC_FILE_BYTES   (1 * GB)
 
#define MIN_TIMER_FREQ   (1)
 
#define MAX_TIMER_FREQ   (100000000)
 
#define DEFAULT_TIMER_FREQ   (1000000)
 
#define MIN_TIMERFD_FREQ   (1)
 
#define MAX_TIMERFD_FREQ   (100000000)
 
#define DEFAULT_TIMERFD_FREQ   (1000000)
 
#define MIN_TREE_SIZE   (1000)
 
#define MAX_TREE_SIZE   (25000000)
 
#define DEFAULT_TREE_SIZE   (250000)
 
#define MIN_TSEARCH_SIZE   (1 * KB)
 
#define MAX_TSEARCH_SIZE   (4 * MB)
 
#define DEFAULT_TSEARCH_SIZE   (64 * KB)
 
#define MIN_UDP_PORT   (1024)
 
#define MAX_UDP_PORT   (65535)
 
#define DEFAULT_UDP_PORT   (7000)
 
#define MIN_USERFAULTFD_BYTES   (4 * KB)
 
#define MAX_USERFAULTFD_BYTES   (MAX_MEM_LIMIT)
 
#define DEFAULT_USERFAULTFD_BYTES   (16 * MB)
 
#define MIN_VM_BYTES   (4 * KB)
 
#define MAX_VM_BYTES   (MAX_MEM_LIMIT)
 
#define DEFAULT_VM_BYTES   (256 * MB)
 
#define MIN_VM_HANG   (0)
 
#define MAX_VM_HANG   (3600)
 
#define DEFAULT_VM_HANG   (~0ULL)
 
#define MIN_VM_RW_BYTES   (4 * KB)
 
#define MAX_VM_RW_BYTES   (MAX_MEM_LIMIT)
 
#define DEFAULT_VM_RW_BYTES   (16 * MB)
 
#define MIN_VM_SPLICE_BYTES   (4 * KB)
 
#define MAX_VM_SPLICE_BYTES   (64 * MB)
 
#define DEFAULT_VM_SPLICE_BYTES   (64 * KB)
 
#define MIN_ZOMBIES   (1)
 
#define MAX_ZOMBIES   (1000000)
 
#define DEFAULT_ZOMBIES   (8192)
 
#define TIMEOUT_NOT_SET   (~0ULL)
 
#define DEFAULT_TIMEOUT   (60 * 60 * 24)
 
#define DEFAULT_BACKOFF   (0)
 
#define DEFAULT_LINKS   (8192)
 
#define DEFAULT_DIRS   (8192)
 
#define STR_SHARED_SIZE   (65536 * 32)
 
#define MEM_CACHE_SIZE   (65536 * 32)
 
#define DEFAULT_CACHE_LEVEL   3
 
#define UNDEFINED   (-1)
 
#define PAGE_MAPPED   (0x01)
 
#define PAGE_MAPPED_FAIL   (0x02)
 
#define TYPEOF_CAST(a)
 
#define STRESS_NBITS(a)   (sizeof(a[0]) * 8)
 
#define STRESS_GETBIT(a, i)
 
#define STRESS_CLRBIT(a, i)
 
#define STRESS_SETBIT(a, i)
 
#define STRESS_MWC_SEED_Z   (362436069UL)
 
#define STRESS_MWC_SEED_W   (521288629UL)
 
#define STRESS_MWC_SEED()   stress_mwc_seed(STRESS_MWC_SEED_W, STRESS_MWC_SEED_Z)
 
#define SIZEOF_ARRAY(a)   (sizeof(a) / sizeof(a[0]))
 
#define TARGET_CLONES
 
#define IOPRIO_CLASS_RT   (1)
 
#define IOPRIO_CLASS_BE   (2)
 
#define IOPRIO_CLASS_IDLE   (3)
 
#define IOPRIO_WHO_PROCESS   (1)
 
#define IOPRIO_WHO_PGRP   (2)
 
#define IOPRIO_WHO_USER   (3)
 
#define IOPRIO_PRIO_VALUE(class, data)   (((class) << 13) | data)
 
#define SHIM_CAP_IS_ROOT   (-1)
 
#define SHIM_CAP_CHOWN   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_DAC_OVERRIDE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_DAC_READ_SEARCH   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_FOWNER   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_FSETID   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_KILL   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SETGID   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SETUID   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SETPCAP   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_LINUX_IMMUTABLE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_NET_BIND_SERVICE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_NET_BROADCAST   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_NET_ADMIN   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_NET_RAW   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_IPC_LOCK   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_IPC_OWNER   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_MODULE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_RAWIO   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_CHROOT   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_PTRACE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_PACCT   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_ADMIN   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_BOOT   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_NICE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_RESOURCE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_TIME   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYS_TTY_CONFIG   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_MKNOD   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_LEASE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_AUDIT_WRITE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_AUDIT_CONTROL   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SETFCAP   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_MAC_OVERRIDE   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_MAC_ADMIN   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_SYSLOG   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_WAKE_ALARM   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_BLOCK_SUSPEND   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_AUDIT_READ   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_PERFMON   SHIM_CAP_IS_ROOT
 
#define SHIM_CAP_BPF   SHIM_CAP_IS_ROOT
 
#define STRESS_THERMAL_ZONES   (1)
 
#define STRESS_THERMAL_ZONES_MAX   (31) /* best if prime */
 
#define STRESS_WARN_HASH_MAX   (128)
 
#define STRESSORS(MACRO)
 
#define STRESSOR_ENUM(name)    STRESS_ ## name,
 
#define STRESSOR_DECL(name)    extern stressor_info_t stress_ ## name ## _info;
 
#define shim_clflush(ptr)   do { } while (0) /* No-op */
 
#define STRESS_OOMABLE_NORMAL   (0x00000000) /* Normal oomability */
 
#define STRESS_OOMABLE_DROP_CAP   (0x00000001) /* Drop capabilities */
 
#define STRESS_OOMABLE_QUIET   (0x00000002) /* Don't report activity */
 
#define STRESS_SIGSTKSZ   (stress_sig_stack_size())
 
#define STRESS_MINSIGSTKSZ   (stress_min_sig_stack_size())
 
#define stress_warn_once()   stress_warn_once_hash(__FILE__, __LINE__)
 
#define NET_ADDR_ANY   (0)
 
#define NET_ADDR_LOOPBACK   (1)
 
#define SHIM_STATX_TYPE   (0x00000001U)
 
#define SHIM_STATX_MODE   (0x00000002U)
 
#define SHIM_STATX_NLINK   (0x00000004U)
 
#define SHIM_STATX_UID   (0x00000008U)
 
#define SHIM_STATX_GID   (0x00000010U)
 
#define SHIM_STATX_ATIME   (0x00000020U)
 
#define SHIM_STATX_MTIME   (0x00000040U)
 
#define SHIM_STATX_CTIME   (0x00000080U)
 
#define SHIM_STATX_INO   (0x00000100U)
 
#define SHIM_STATX_SIZE   (0x00000200U)
 
#define SHIM_STATX_BLOCKS   (0x00000400U)
 
#define SHIM_STATX_BASIC_STATS   (0x000007ffU)
 
#define SHIM_STATX_BTIME   (0x00000800U)
 
#define SHIM_STATX_ALL   (0x00000fffU)
 
#define P_PIDFD   (3)
 
#define shim_unconstify_ptr(ptr)   (ptr)
 

Typedefs

typedef long int __kernel_long_t
 
typedef unsigned long int __kernel_ulong_t
 
typedef struct stress_stressor_infostress_pstressor_info_t
 
typedef struct stress_setting stress_setting_t
 
typedef uint32_t stress_class_t
 
typedef struct stress_hash stress_hash_t
 
typedef int(* stress_func_t) (const stress_args_t *args)
 
typedef struct stress_tz_info stress_tz_info_t
 
typedef struct stress_stressor_info stress_stressor_t
 
typedef enum stress_cache_type stress_cache_type_t
 
typedef struct stress_cpu_cache stress_cpu_cache_t
 
typedef struct stress_cpu stress_cpu_t
 
typedef struct stress_cpus stress_cpus_t
 
typedef int stress_oomable_child_func_t(const stress_args_t *args, void *context)
 
typedef long shim_loff_t
 
typedef uint64_t shim_off64_t
 

Enumerations

enum  stress_type_id_t {
  TYPE_ID_UNDEFINED , TYPE_ID_UINT8 , TYPE_ID_INT8 , TYPE_ID_UINT16 ,
  TYPE_ID_INT16 , TYPE_ID_UINT32 , TYPE_ID_INT32 , TYPE_ID_UINT64 ,
  TYPE_ID_INT64 , TYPE_ID_SIZE_T , TYPE_ID_SSIZE_T , TYPE_ID_UINT ,
  TYPE_ID_INT , TYPE_ID_ULONG , TYPE_ID_LONG , TYPE_ID_OFF_T ,
  TYPE_ID_STR , TYPE_ID_BOOL , TYPE_ID_UINTPTR_T
}
 
enum  stress_id_t {
  STRESS_START = -1 , STRESS_access , STRESS_af_alg , STRESS_affinity ,
  STRESS_aio , STRESS_aiol , STRESS_apparmor , STRESS_alarm ,
  STRESS_atomic , STRESS_bad_altstack , STRESS_bad_ioctl , STRESS_bigheap ,
  STRESS_bind_mount , STRESS_binderfs , STRESS_branch , STRESS_brk ,
  STRESS_bsearch , STRESS_cache , STRESS_cap , STRESS_chattr ,
  STRESS_chdir , STRESS_chmod , STRESS_chown , STRESS_chroot ,
  STRESS_clock , STRESS_clone , STRESS_close , STRESS_context ,
  STRESS_copy_file , STRESS_cpu , STRESS_cpu_online , STRESS_crypt ,
  STRESS_cyclic , STRESS_daemon , STRESS_dccp , STRESS_dentry ,
  STRESS_dev , STRESS_dev_shm , STRESS_dir , STRESS_dirdeep ,
  STRESS_dirmany , STRESS_dnotify , STRESS_dup , STRESS_dynlib ,
  STRESS_efivar , STRESS_enosys , STRESS_env , STRESS_epoll ,
  STRESS_eventfd , STRESS_exec , STRESS_exit_group , STRESS_fallocate ,
  STRESS_fanotify , STRESS_fault , STRESS_fcntl , STRESS_fiemap ,
  STRESS_fifo , STRESS_file_ioctl , STRESS_filename , STRESS_flock ,
  STRESS_fork , STRESS_fp_error , STRESS_fpunch , STRESS_fstat ,
  STRESS_full , STRESS_funccall , STRESS_funcret , STRESS_futex ,
  STRESS_get , STRESS_getdent , STRESS_getrandom , STRESS_handle ,
  STRESS_hdd , STRESS_heapsort , STRESS_hrtimers , STRESS_hsearch ,
  STRESS_icache , STRESS_icmp_flood , STRESS_idle_page , STRESS_inode_flags ,
  STRESS_inotify , STRESS_io , STRESS_iomix , STRESS_ioport ,
  STRESS_ioprio , STRESS_io_uring , STRESS_ipsec_mb , STRESS_itimer ,
  STRESS_judy , STRESS_kcmp , STRESS_key , STRESS_kill ,
  STRESS_klog , STRESS_l1cache , STRESS_landlock , STRESS_lease ,
  STRESS_link , STRESS_list , STRESS_loadavg , STRESS_locka ,
  STRESS_lockbus , STRESS_lockf , STRESS_lockofd , STRESS_longjmp ,
  STRESS_loop , STRESS_lsearch , STRESS_madvise , STRESS_malloc ,
  STRESS_matrix , STRESS_matrix_3d , STRESS_mcontend , STRESS_membarrier ,
  STRESS_memcpy , STRESS_memfd , STRESS_memhotplug , STRESS_memrate ,
  STRESS_memthrash , STRESS_mergesort , STRESS_mincore , STRESS_misaligned ,
  STRESS_mknod , STRESS_mlock , STRESS_mlockmany , STRESS_mmap ,
  STRESS_mmapaddr , STRESS_mmapfixed , STRESS_mmapfork , STRESS_mmaphuge ,
  STRESS_mmapmany , STRESS_mq , STRESS_mremap , STRESS_msg ,
  STRESS_msync , STRESS_munmap , STRESS_nanosleep , STRESS_netdev ,
  STRESS_netlink_proc , STRESS_netlink_task , STRESS_nice , STRESS_nop ,
  STRESS_null , STRESS_numa , STRESS_oom_pipe , STRESS_opcode ,
  STRESS_open , STRESS_pci , STRESS_personality , STRESS_physpage ,
  STRESS_pidfd , STRESS_ping_sock , STRESS_pipe , STRESS_pipeherd ,
  STRESS_pkey , STRESS_poll , STRESS_prctl , STRESS_prefetch ,
  STRESS_procfs , STRESS_pthread , STRESS_ptrace , STRESS_pty ,
  STRESS_qsort , STRESS_quota , STRESS_radixsort , STRESS_ramfs ,
  STRESS_rawdev , STRESS_rawpkt , STRESS_rawsock , STRESS_rawudp ,
  STRESS_rdrand , STRESS_readahead , STRESS_reboot , STRESS_remap ,
  STRESS_rename , STRESS_resources , STRESS_revio , STRESS_rlimit ,
  STRESS_rmap , STRESS_rseq , STRESS_rtc , STRESS_schedpolicy ,
  STRESS_sctp , STRESS_seal , STRESS_seccomp , STRESS_secretmem ,
  STRESS_seek , STRESS_sem , STRESS_sem_sysv , STRESS_sendfile ,
  STRESS_session , STRESS_set , STRESS_shellsort , STRESS_shm ,
  STRESS_shm_sysv , STRESS_sigabrt , STRESS_sigchld , STRESS_sigfd ,
  STRESS_sigfpe , STRESS_sigio , STRESS_signal , STRESS_signest ,
  STRESS_sigpending , STRESS_sigpipe , STRESS_sigq , STRESS_sigrt ,
  STRESS_sigsegv , STRESS_sigsuspend , STRESS_sigtrap , STRESS_skiplist ,
  STRESS_sleep , STRESS_smi , STRESS_sock , STRESS_sockabuse ,
  STRESS_sockdiag , STRESS_sockfd , STRESS_sockpair , STRESS_sockmany ,
  STRESS_softlockup , STRESS_spawn , STRESS_splice , STRESS_stack ,
  STRESS_stackmmap , STRESS_str , STRESS_stream , STRESS_swap ,
  STRESS_switch , STRESS_symlink , STRESS_sync_file , STRESS_sysbadaddr ,
  STRESS_sysinfo , STRESS_sysinval , STRESS_sysfs , STRESS_tee ,
  STRESS_timer , STRESS_timerfd , STRESS_tlb_shootdown , STRESS_tmpfs ,
  STRESS_tree , STRESS_tsc , STRESS_tsearch , STRESS_tun ,
  STRESS_udp , STRESS_udp_flood , STRESS_unshare , STRESS_uprobe ,
  STRESS_urandom , STRESS_userfaultfd , STRESS_utime , STRESS_vdso ,
  STRESS_vecmath , STRESS_verity , STRESS_vfork , STRESS_vforkmany ,
  STRESS_vm , STRESS_vm_addr , STRESS_vm_rw , STRESS_vm_segv ,
  STRESS_vm_splice , STRESS_wait , STRESS_watchdog , STRESS_wcs ,
  STRESS_x86syscall , STRESS_xattr , STRESS_yield , STRESS_zero ,
  STRESS_zlib , STRESS_zombie , STRESS_MAX
}
 
enum  stress_op_t {
  OPT_undefined = 0 , OPT_query = '?' , OPT_all = 'a' , OPT_backoff = 'b' ,
  OPT_bigheap = 'B' , OPT_cpu = 'c' , OPT_cache = 'C' , OPT_hdd = 'd' ,
  OPT_dentry = 'D' , OPT_fork = 'f' , OPT_fallocate = 'F' , OPT_io = 'i' ,
  OPT_job = 'j' , OPT_help = 'h' , OPT_keep_name = 'k' , OPT_cpu_load = 'l' ,
  OPT_vm = 'm' , OPT_metrics = 'M' , OPT_dry_run = 'n' , OPT_rename = 'R' ,
  OPT_open = 'o' , OPT_pipe = 'p' , OPT_poll = 'P' , OPT_quiet = 'q' ,
  OPT_random = 'r' , OPT_switch = 's' , OPT_sock = 'S' , OPT_timeout = 't' ,
  OPT_timer = 'T' , OPT_urandom = 'u' , OPT_verbose = 'v' , OPT_version = 'V' ,
  OPT_yield = 'y' , OPT_yaml = 'Y' , OPT_exclude = 'x' , OPT_long_ops_start = 0x7f ,
  OPT_abort , OPT_access , OPT_access_ops , OPT_affinity ,
  OPT_affinity_delay , OPT_affinity_ops , OPT_affinity_pin , OPT_affinity_rand ,
  OPT_affinity_sleep , OPT_af_alg , OPT_af_alg_ops , OPT_af_alg_dump ,
  OPT_aggressive , OPT_aio , OPT_aio_ops , OPT_aio_requests ,
  OPT_aiol , OPT_aiol_ops , OPT_aiol_requests , OPT_alarm ,
  OPT_alarm_ops , OPT_apparmor , OPT_apparmor_ops , OPT_atomic ,
  OPT_atomic_ops , OPT_bad_altstack , OPT_bad_altstack_ops , OPT_bad_ioctl ,
  OPT_bad_ioctl_ops , OPT_branch , OPT_branch_ops , OPT_brk ,
  OPT_brk_ops , OPT_brk_mlock , OPT_brk_notouch , OPT_bsearch ,
  OPT_bsearch_ops , OPT_bsearch_size , OPT_bigheap_ops , OPT_bigheap_growth ,
  OPT_bind_mount , OPT_bind_mount_ops , OPT_binderfs , OPT_binderfs_ops ,
  OPT_class , OPT_cache_ops , OPT_cache_prefetch , OPT_cache_flush ,
  OPT_cache_fence , OPT_cache_sfence , OPT_cache_level , OPT_cache_ways ,
  OPT_cache_no_affinity , OPT_cap , OPT_cap_ops , OPT_chattr ,
  OPT_chattr_ops , OPT_chdir , OPT_chdir_dirs , OPT_chdir_ops ,
  OPT_chmod , OPT_chmod_ops , OPT_chown , OPT_chown_ops ,
  OPT_chroot , OPT_chroot_ops , OPT_clock , OPT_clock_ops ,
  OPT_clone , OPT_clone_ops , OPT_clone_max , OPT_close ,
  OPT_close_ops , OPT_context , OPT_context_ops , OPT_copy_file ,
  OPT_copy_file_ops , OPT_copy_file_bytes , OPT_cpu_ops , OPT_cpu_method ,
  OPT_cpu_load_slice , OPT_cpu_online , OPT_cpu_online_ops , OPT_cpu_online_all ,
  OPT_crypt , OPT_crypt_ops , OPT_cyclic , OPT_cyclic_ops ,
  OPT_cyclic_method , OPT_cyclic_policy , OPT_cyclic_prio , OPT_cyclic_sleep ,
  OPT_cyclic_dist , OPT_daemon , OPT_daemon_ops , OPT_dccp ,
  OPT_dccp_domain , OPT_dccp_ops , OPT_dccp_opts , OPT_dccp_port ,
  OPT_dentry_ops , OPT_dentries , OPT_dentry_order , OPT_dev ,
  OPT_dev_ops , OPT_dev_file , OPT_dev_shm , OPT_dev_shm_ops ,
  OPT_dir , OPT_dir_ops , OPT_dir_dirs , OPT_dirdeep ,
  OPT_dirdeep_ops , OPT_dirdeep_dirs , OPT_dirdeep_inodes , OPT_dirmany ,
  OPT_dirmany_ops , OPT_dnotify , OPT_dnotify_ops , OPT_dup ,
  OPT_dup_ops , OPT_dynlib , OPT_dynlib_ops , OPT_efivar ,
  OPT_efivar_ops , OPT_enosys , OPT_enosys_ops , OPT_env ,
  OPT_env_ops , OPT_epoll , OPT_epoll_ops , OPT_epoll_port ,
  OPT_epoll_domain , OPT_eventfd , OPT_eventfd_ops , OPT_eventfd_nonblock ,
  OPT_exec , OPT_exec_ops , OPT_exec_max , OPT_exit_group ,
  OPT_exit_group_ops , OPT_fallocate_ops , OPT_fallocate_bytes , OPT_fanotify ,
  OPT_fanotify_ops , OPT_fault , OPT_fault_ops , OPT_fcntl ,
  OPT_fcntl_ops , OPT_fiemap , OPT_fiemap_ops , OPT_fiemap_bytes ,
  OPT_fifo , OPT_fifo_ops , OPT_fifo_readers , OPT_file_ioctl ,
  OPT_file_ioctl_ops , OPT_filename , OPT_filename_ops , OPT_filename_opts ,
  OPT_flock , OPT_flock_ops , OPT_fork_ops , OPT_fork_max ,
  OPT_fork_vm , OPT_fp_error , OPT_fp_error_ops , OPT_fpunch ,
  OPT_fpunch_ops , OPT_fstat , OPT_fstat_ops , OPT_fstat_dir ,
  OPT_ftrace , OPT_full , OPT_full_ops , OPT_funccall ,
  OPT_funccall_ops , OPT_funccall_method , OPT_funcret , OPT_funcret_ops ,
  OPT_funcret_method , OPT_futex , OPT_futex_ops , OPT_get ,
  OPT_get_ops , OPT_getrandom , OPT_getrandom_ops , OPT_getdent ,
  OPT_getdent_ops , OPT_handle , OPT_handle_ops , OPT_hdd_bytes ,
  OPT_hdd_write_size , OPT_hdd_ops , OPT_hdd_opts , OPT_heapsort ,
  OPT_heapsort_ops , OPT_heapsort_integers , OPT_hrtimers , OPT_hrtimers_ops ,
  OPT_hsearch , OPT_hsearch_ops , OPT_hsearch_size , OPT_icache ,
  OPT_icache_ops , OPT_icmp_flood , OPT_icmp_flood_ops , OPT_idle_page ,
  OPT_idle_page_ops , OPT_ignite_cpu , OPT_inode_flags , OPT_inode_flags_ops ,
  OPT_inotify , OPT_inotify_ops , OPT_iomix , OPT_iomix_bytes ,
  OPT_iomix_ops , OPT_ioport , OPT_ioport_ops , OPT_ioport_opts ,
  OPT_ionice_class , OPT_ionice_level , OPT_ioprio , OPT_ioprio_ops ,
  OPT_iostat , OPT_io_ops , OPT_io_uring , OPT_io_uring_ops ,
  OPT_ipsec_mb , OPT_ipsec_mb_ops , OPT_ipsec_mb_feature , OPT_itimer ,
  OPT_itimer_ops , OPT_itimer_freq , OPT_itimer_rand , OPT_judy ,
  OPT_judy_ops , OPT_judy_size , OPT_kcmp , OPT_kcmp_ops ,
  OPT_key , OPT_key_ops , OPT_kill , OPT_kill_ops ,
  OPT_klog , OPT_klog_ops , OPT_l1cache , OPT_l1cache_ops ,
  OPT_l1cache_line_size , OPT_l1cache_size , OPT_l1cache_sets , OPT_l1cache_ways ,
  OPT_landlock , OPT_landlock_ops , OPT_lease , OPT_lease_ops ,
  OPT_lease_breakers , OPT_link , OPT_link_ops , OPT_list ,
  OPT_list_ops , OPT_list_method , OPT_list_size , OPT_loadavg ,
  OPT_loadavg_ops , OPT_lockbus , OPT_lockbus_ops , OPT_locka ,
  OPT_locka_ops , OPT_lockf , OPT_lockf_ops , OPT_lockf_nonblock ,
  OPT_lockofd , OPT_lockofd_ops , OPT_log_brief , OPT_log_file ,
  OPT_longjmp , OPT_longjmp_ops , OPT_loop , OPT_loop_ops ,
  OPT_lsearch , OPT_lsearch_ops , OPT_lsearch_size , OPT_madvise ,
  OPT_madvise_ops , OPT_malloc , OPT_malloc_ops , OPT_malloc_bytes ,
  OPT_malloc_max , OPT_malloc_pthreads , OPT_malloc_threshold , OPT_malloc_touch ,
  OPT_matrix , OPT_matrix_ops , OPT_matrix_size , OPT_matrix_method ,
  OPT_matrix_yx , OPT_matrix_3d , OPT_matrix_3d_ops , OPT_matrix_3d_size ,
  OPT_matrix_3d_method , OPT_matrix_3d_zyx , OPT_maximize , OPT_max_fd ,
  OPT_mcontend , OPT_mcontend_ops , OPT_membarrier , OPT_membarrier_ops ,
  OPT_memcpy , OPT_memcpy_ops , OPT_memcpy_method , OPT_memfd ,
  OPT_memfd_ops , OPT_memfd_bytes , OPT_memfd_fds , OPT_memhotplug ,
  OPT_memhotplug_ops , OPT_memrate , OPT_memrate_ops , OPT_memrate_rd_mbs ,
  OPT_memrate_wr_mbs , OPT_memrate_bytes , OPT_memthrash , OPT_memthrash_ops ,
  OPT_memthrash_method , OPT_mergesort , OPT_mergesort_ops , OPT_mergesort_integers ,
  OPT_metrics_brief , OPT_mincore , OPT_mincore_ops , OPT_mincore_rand ,
  OPT_misaligned , OPT_misaligned_ops , OPT_misaligned_method , OPT_mknod ,
  OPT_mknod_ops , OPT_minimize , OPT_mlock , OPT_mlock_ops ,
  OPT_mlockmany , OPT_mlockmany_ops , OPT_mlockmany_procs , OPT_mmap ,
  OPT_mmap_ops , OPT_mmap_bytes , OPT_mmap_file , OPT_mmap_async ,
  OPT_mmap_mprotect , OPT_mmap_osync , OPT_mmap_odirect , OPT_mmap_mmap2 ,
  OPT_mmapaddr , OPT_mmapaddr_ops , OPT_mmapfixed , OPT_mmapfixed_ops ,
  OPT_mmapfork , OPT_mmapfork_ops , OPT_mmaphuge , OPT_mmaphuge_ops ,
  OPT_mmaphuge_mmaps , OPT_mmapmany , OPT_mmapmany_ops , OPT_mq ,
  OPT_mq_ops , OPT_mq_size , OPT_mremap , OPT_mremap_ops ,
  OPT_mremap_bytes , OPT_mremap_mlock , OPT_msg , OPT_msg_ops ,
  OPT_msg_types , OPT_msync , OPT_msync_bytes , OPT_msync_ops ,
  OPT_munmap , OPT_munmap_ops , OPT_nanosleep , OPT_nanosleep_ops ,
  OPT_netdev , OPT_netdev_ops , OPT_netlink_proc , OPT_netlink_proc_ops ,
  OPT_netlink_task , OPT_netlink_task_ops , OPT_nice , OPT_nice_ops ,
  OPT_no_madvise , OPT_no_oom_adjust , OPT_no_rand_seed , OPT_nop ,
  OPT_nop_ops , OPT_nop_instr , OPT_null , OPT_null_ops ,
  OPT_numa , OPT_numa_ops , OPT_oomable , OPT_oom_pipe ,
  OPT_oom_pipe_ops , OPT_opcode , OPT_opcode_ops , OPT_opcode_method ,
  OPT_open_ops , OPT_open_fd , OPT_page_in , OPT_pathological ,
  OPT_pci , OPT_pci_ops , OPT_perf_stats , OPT_personality ,
  OPT_personality_ops , OPT_physpage , OPT_physpage_ops , OPT_pidfd ,
  OPT_pidfd_ops , OPT_ping_sock , OPT_ping_sock_ops , OPT_pipe_ops ,
  OPT_pipe_size , OPT_pipe_data_size , OPT_pipeherd , OPT_pipeherd_ops ,
  OPT_pipeherd_yield , OPT_pkey , OPT_pkey_ops , OPT_poll_ops ,
  OPT_poll_fds , OPT_prefetch , OPT_prefetch_ops , OPT_prefetch_l3_size ,
  OPT_prctl , OPT_prctl_ops , OPT_procfs , OPT_procfs_ops ,
  OPT_pthread , OPT_pthread_ops , OPT_pthread_max , OPT_ptrace ,
  OPT_ptrace_ops , OPT_pty , OPT_pty_ops , OPT_pty_max ,
  OPT_qsort , OPT_qsort_ops , OPT_qsort_integers , OPT_quota ,
  OPT_quota_ops , OPT_radixsort , OPT_radixsort_ops , OPT_radixsort_size ,
  OPT_ramfs , OPT_ramfs_ops , OPT_ramfs_size , OPT_rawdev ,
  OPT_rawdev_method , OPT_rawdev_ops , OPT_rawpkt , OPT_rawpkt_ops ,
  OPT_rawpkt_port , OPT_rawsock , OPT_rawsock_ops , OPT_rawudp ,
  OPT_rawudp_ops , OPT_rawudp_port , OPT_rdrand , OPT_rdrand_ops ,
  OPT_readahead , OPT_readahead_ops , OPT_readahead_bytes , OPT_reboot ,
  OPT_reboot_ops , OPT_remap , OPT_remap_ops , OPT_rename_ops ,
  OPT_resources , OPT_resources_ops , OPT_revio , OPT_revio_ops ,
  OPT_revio_opts , OPT_revio_bytes , OPT_rlimit , OPT_rlimit_ops ,
  OPT_rmap , OPT_rmap_ops , OPT_rseq , OPT_rseq_ops ,
  OPT_rtc , OPT_rtc_ops , OPT_sched , OPT_sched_prio ,
  OPT_schedpolicy , OPT_schedpolicy_ops , OPT_sched_period , OPT_sched_runtime ,
  OPT_sched_deadline , OPT_sched_reclaim , OPT_sctp , OPT_sctp_ops ,
  OPT_sctp_domain , OPT_sctp_port , OPT_seal , OPT_seal_ops ,
  OPT_seccomp , OPT_seccomp_ops , OPT_secretmem , OPT_secretmem_ops ,
  OPT_seed , OPT_seek , OPT_seek_ops , OPT_seek_punch ,
  OPT_seek_size , OPT_sendfile , OPT_sendfile_ops , OPT_sendfile_size ,
  OPT_sem , OPT_sem_ops , OPT_sem_procs , OPT_sem_sysv ,
  OPT_sem_sysv_ops , OPT_sem_sysv_procs , OPT_session , OPT_session_ops ,
  OPT_set , OPT_set_ops , OPT_shellsort , OPT_shellsort_ops ,
  OPT_shellsort_integers , OPT_shm , OPT_shm_ops , OPT_shm_bytes ,
  OPT_shm_objects , OPT_shm_sysv , OPT_shm_sysv_ops , OPT_shm_sysv_bytes ,
  OPT_shm_sysv_segments , OPT_sequential , OPT_sigabrt , OPT_sigabrt_ops ,
  OPT_sigchld , OPT_sigchld_ops , OPT_sigfd , OPT_sigfd_ops ,
  OPT_sigfpe , OPT_sigfpe_ops , OPT_sigio , OPT_sigio_ops ,
  OPT_signal , OPT_signal_ops , OPT_signest , OPT_signest_ops ,
  OPT_sigpending , OPT_sigpending_ops , OPT_sigpipe , OPT_sigpipe_ops ,
  OPT_sigq , OPT_sigq_ops , OPT_sigrt , OPT_sigrt_ops ,
  OPT_sigsegv , OPT_sigsegv_ops , OPT_sigsuspend , OPT_sigsuspend_ops ,
  OPT_sigtrap , OPT_sigtrap_ops , OPT_skiplist , OPT_skiplist_ops ,
  OPT_skiplist_size , OPT_skip_silent , OPT_sleep , OPT_sleep_ops ,
  OPT_sleep_max , OPT_smart , OPT_smi , OPT_smi_ops ,
  OPT_sock_ops , OPT_sock_domain , OPT_sock_nodelay , OPT_sock_opts ,
  OPT_sock_port , OPT_sock_protocol , OPT_sock_type , OPT_sock_zerocopy ,
  OPT_sockabuse , OPT_sockabuse_ops , OPT_sockdiag , OPT_sockdiag_ops ,
  OPT_sockfd , OPT_sockfd_ops , OPT_sockfd_port , OPT_sockmany ,
  OPT_sockmany_ops , OPT_sockpair , OPT_sockpair_ops , OPT_softlockup ,
  OPT_softlockup_ops , OPT_swap , OPT_swap_ops , OPT_switch_ops ,
  OPT_switch_freq , OPT_spawn , OPT_spawn_ops , OPT_splice ,
  OPT_splice_ops , OPT_splice_bytes , OPT_stack , OPT_stack_ops ,
  OPT_stack_fill , OPT_stack_mlock , OPT_stackmmap , OPT_stackmmap_ops ,
  OPT_str , OPT_str_ops , OPT_str_method , OPT_stream ,
  OPT_stream_ops , OPT_stream_index , OPT_stream_l3_size , OPT_stream_madvise ,
  OPT_stressors , OPT_symlink , OPT_symlink_ops , OPT_sync_file ,
  OPT_sync_file_ops , OPT_sync_file_bytes , OPT_sysbadaddr , OPT_sysbadaddr_ops ,
  OPT_sysinfo , OPT_sysinfo_ops , OPT_sysinval , OPT_sysinval_ops ,
  OPT_sysfs , OPT_sysfs_ops , OPT_syslog , OPT_tee ,
  OPT_tee_ops , OPT_taskset , OPT_temp_path , OPT_thermalstat ,
  OPT_thermal_zones , OPT_thrash , OPT_timer_slack , OPT_timer_ops ,
  OPT_timer_freq , OPT_timer_rand , OPT_timerfd , OPT_timerfd_ops ,
  OPT_timerfd_fds , OPT_timerfd_freq , OPT_timerfd_rand , OPT_times ,
  OPT_timestamp , OPT_tlb_shootdown , OPT_tlb_shootdown_ops , OPT_tmpfs ,
  OPT_tmpfs_ops , OPT_tmpfs_mmap_async , OPT_tmpfs_mmap_file , OPT_tree ,
  OPT_tree_ops , OPT_tree_method , OPT_tree_size , OPT_tsc ,
  OPT_tsc_ops , OPT_tsearch , OPT_tsearch_ops , OPT_tsearch_size ,
  OPT_tun , OPT_tun_ops , OPT_tun_tap , OPT_udp ,
  OPT_udp_ops , OPT_udp_port , OPT_udp_domain , OPT_udp_lite ,
  OPT_udp_flood , OPT_udp_flood_ops , OPT_udp_flood_domain , OPT_unshare ,
  OPT_unshare_ops , OPT_uprobe , OPT_uprobe_ops , OPT_urandom_ops ,
  OPT_userfaultfd , OPT_userfaultfd_ops , OPT_userfaultfd_bytes , OPT_utime ,
  OPT_utime_ops , OPT_utime_fsync , OPT_vdso , OPT_vdso_ops ,
  OPT_vdso_func , OPT_vecmath , OPT_vecmath_ops , OPT_verify ,
  OPT_verity , OPT_verity_ops , OPT_vfork , OPT_vfork_ops ,
  OPT_vfork_max , OPT_vfork_vm , OPT_vforkmany , OPT_vforkmany_ops ,
  OPT_vforkmany_vm , OPT_vm_bytes , OPT_vm_hang , OPT_vm_keep ,
  OPT_vm_mmap_populate , OPT_vm_mmap_locked , OPT_vm_ops , OPT_vm_madvise ,
  OPT_vm_method , OPT_vm_addr , OPT_vm_addr_method , OPT_vm_addr_ops ,
  OPT_vm_rw , OPT_vm_rw_ops , OPT_vm_rw_bytes , OPT_vm_segv ,
  OPT_vm_segv_ops , OPT_vm_splice , OPT_vm_splice_ops , OPT_vm_splice_bytes ,
  OPT_vmstat , OPT_wait , OPT_wait_ops , OPT_watchdog ,
  OPT_watchdog_ops , OPT_wcs , OPT_wcs_ops , OPT_wcs_method ,
  OPT_x86syscall , OPT_x86syscall_ops , OPT_x86syscall_func , OPT_xattr ,
  OPT_xattr_ops , OPT_yield_ops , OPT_zero , OPT_zero_ops ,
  OPT_zlib , OPT_zlib_ops , OPT_zlib_level , OPT_zlib_mem_level ,
  OPT_zlib_method , OPT_zlib_window_bits , OPT_zlib_stream_bytes , OPT_zlib_strategy ,
  OPT_zombie , OPT_zombie_ops , OPT_zombie_max
}
 
enum  stress_cache_type { CACHE_TYPE_UNKNOWN = 0 , CACHE_TYPE_DATA , CACHE_TYPE_INSTRUCTION , CACHE_TYPE_UNIFIED }
 
enum  shim_pid_type {
  SHIM_PIDTYPE_PID , SHIM_PIDTYPE_TGID , SHIM_PIDTYPE_PGID , SHIM_PIDTYPE_SID ,
  SHIM_PIDTYPE_MAX
}
 

Functions

static void shim_builtin_prefetch (const void *addr,...)
 
int pr_msg (FILE *fp, const uint64_t flag, const char *const fmt, va_list va)
 
int pr_yaml (FILE *fp, const char *const fmt,...)
 
void pr_yaml_runinfo (FILE *fp)
 
void pr_runinfo (void)
 
void pr_openlog (const char *filename)
 
void pr_closelog (void)
 
void pr_fail_check (int *rc)
 
void pr_dbg (const char *fmt,...)
 
void pr_dbg_skip (const char *fmt,...)
 
void pr_inf (const char *fmt,...)
 
void pr_inf_skip (const char *fmt,...)
 
void pr_err (const char *fmt,...)
 
void pr_err_skip (const char *fmt,...)
 
void pr_fail (const char *fmt,...)
 
void pr_tidy (const char *fmt,...)
 
void pr_lock (bool *locked)
 
void pr_unlock (bool *locked)
 
void pr_inf_lock (bool *locked, const char *fmt,...)
 
void pr_dbg_lock (bool *locked, const char *fmt,...)
 
static void shim_mb (void)
 
static void inc_counter (const stress_args_t *args)
 
static uint64_t get_counter (const stress_args_t *args)
 
static void set_counter (const stress_args_t *args, const uint64_t val)
 
static void add_counter (const stress_args_t *args, const uint64_t inc)
 
static bool keep_stressing_flag (void)
 
static void keep_stressing_set_flag (const bool setting)
 
static bool keep_stressing (const stress_args_t *args)
 
int stress_set_setting (const char *name, const stress_type_id_t type_id, const void *value)
 
int stress_set_setting_global (const char *name, const stress_type_id_t type_id, const void *value)
 
bool stress_get_setting (const char *name, void *value)
 
void stress_settings_free (void)
 
uint64_t stress_uint64_zero (void)
 
static void stress_uint8_put (const uint8_t a)
 
static void stress_uint16_put (const uint16_t a)
 
static void stress_uint32_put (const uint32_t a)
 
static void stress_uint64_put (const uint64_t a)
 
static void stress_float_put (const float a)
 
static void stress_double_put (const double a)
 
static void stress_long_double_put (const long double a)
 
static void stress_void_ptr_put (volatile void *const a)
 
int stress_temp_filename (char *path, const size_t len, const char *name, const pid_t pid, const uint32_t instance, const uint64_t magic)
 
int stress_temp_filename_args (const stress_args_t *args, char *path, const size_t len, const uint64_t magic)
 
int stress_temp_dir (char *path, const size_t len, const char *name, const pid_t pid, const uint32_t instance)
 
int stress_temp_dir_args (const stress_args_t *args, char *path, const size_t len)
 
int stress_temp_dir_mk (const char *name, const pid_t pid, const uint32_t instance)
 
int stress_temp_dir_mk_args (const stress_args_t *args)
 
int stress_temp_dir_rm (const char *name, const pid_t pid, const uint32_t instance)
 
int stress_temp_dir_rm_args (const stress_args_t *args)
 
void stress_cwd_readwriteable (void)
 
const char * stress_signal_name (const int signum)
 
const char * stress_strsignal (const int signum)
 
static void shim_mfence (void)
 
uint32_t stress_mwc32 (void)
 
uint64_t stress_mwc64 (void)
 
uint16_t stress_mwc16 (void)
 
uint8_t stress_mwc8 (void)
 
uint8_t stress_mwc1 (void)
 
void stress_mwc_seed (const uint32_t w, const uint32_t z)
 
void stress_mwc_reseed (void)
 
double stress_timeval_to_double (const struct timeval *tv)
 
double stress_time_now (void)
 
const char * stress_duration_to_str (const double duration)
 
bool stress_cpu_is_x86 (void)
 
size_t stress_mk_filename (char *fullname, const size_t fullname_len, const char *pathname, const char *filename)
 
void stress_set_oom_adjustment (const char *name, const bool killable)
 
bool stress_process_oomed (const pid_t pid)
 
int stress_oomable_child (const stress_args_t *args, void *context, stress_oomable_child_func_t func, const int flag)
 
int stress_set_sched (const pid_t pid, const int sched, const int sched_priority, const bool quiet)
 
int stress_set_deadline_sched (const pid_t, const uint64_t period, const uint64_t runtime, const uint64_t deadline, const bool quiet)
 
int sched_settings_apply (const bool quiet)
 
const char * stress_get_sched_name (const int sched)
 
void stress_set_iopriority (const int32_t class, const int32_t level)
 
void stress_set_proc_name_init (int argc, char *argv[], char *envp[])
 
void stress_set_proc_name (const char *name)
 
void stress_set_proc_state (const char *name, const int state)
 
int stress_get_unused_uid (uid_t *uid)
 
void stress_sig_handler_exit (int signum)
 
int stress_mlock_region (const void *addr_start, const void *addr_end)
 
uint64_t stress_get_uint64 (const char *const str)
 
uint64_t stress_get_uint64_scale (const char *const str, const stress_scale_t scales[], const char *const msg)
 
uint64_t stress_get_uint64_percent (const char *const str, const uint32_t instances, const uint64_t max, const char *const errmsg)
 
uint64_t stress_get_uint64_byte (const char *const str)
 
uint64_t stress_get_uint64_byte_memory (const char *const str, const uint32_t instances)
 
uint64_t stress_get_uint64_byte_filesystem (const char *const str, const uint32_t instances)
 
uint64_t stress_get_uint64_time (const char *const str)
 
void stress_check_value (const char *const msg, const int val)
 
void stress_check_range (const char *const opt, const uint64_t val, const uint64_t lo, const uint64_t hi)
 
void stress_check_range_bytes (const char *const opt, const uint64_t val, const uint64_t lo, const uint64_t hi)
 
int stress_set_cpu_affinity (const char *arg)
 
uint32_t stress_get_uint32 (const char *const str)
 
int32_t stress_get_int32 (const char *const str)
 
int32_t stress_get_opt_sched (const char *const str)
 
int32_t stress_get_opt_ionice_class (const char *const str)
 
size_t stress_sig_stack_size (void)
 
size_t stress_min_sig_stack_size (void)
 
size_t stress_min_pthread_stack_size (void)
 
void stress_shared_unmap (void)
 
void stress_log_system_mem_info (void)
 
char * stress_munge_underscore (const char *str)
 
size_t stress_get_pagesize (void)
 
int32_t stress_get_processors_online (void)
 
int32_t stress_get_processors_configured (void)
 
int32_t stress_get_ticks_per_second (void)
 
ssize_t stress_get_stack_direction (void)
 
void * stress_get_stack_top (void *start, size_t size)
 
void stress_get_memlimits (size_t *shmall, size_t *freemem, size_t *totalmem, size_t *freeswap)
 
int stress_get_load_avg (double *min1, double *min5, double *min15)
 
void stress_set_max_limits (void)
 
void stress_parent_died_alarm (void)
 
int stress_process_dumpable (const bool dumpable)
 
int stress_set_timer_slack_ns (const char *opt)
 
void stress_set_timer_slack (void)
 
int stress_set_temp_path (const char *path)
 
const char * stress_get_temp_path (void)
 
void stress_temp_path_free (void)
 
void stress_strnrnd (char *str, const size_t len)
 
void stress_get_cache_size (uint64_t *l2, uint64_t *l3)
 
unsigned int stress_get_cpu (void)
 
const char * stress_get_compiler (void)
 
const char * stress_get_uname_info (void)
 
int stress_cache_alloc (const char *name)
 
void stress_cache_free (void)
 
void stress_ignite_cpu_start (void)
 
void stress_ignite_cpu_stop (void)
 
ssize_t system_write (const char *path, const char *buf, const size_t buf_len)
 
int stress_set_nonblock (const int fd)
 
ssize_t system_read (const char *path, char *buf, const size_t buf_len)
 
bool stress_is_prime64 (const uint64_t n)
 
uint64_t stress_get_prime64 (const uint64_t n)
 
size_t stress_get_file_limit (void)
 
size_t stress_get_max_file_limit (void)
 
int stress_get_bad_fd (void)
 
void stress_vmstat_start (void)
 
void stress_vmstat_stop (void)
 
int stress_sigaltstack (void *stack, const size_t size)
 
int stress_sighandler (const char *name, const int signum, void(*handler)(int), struct sigaction *orig_action)
 
int stress_sighandler_default (const int signum)
 
void stress_handle_stop_stressing (int dummy)
 
int stress_sig_stop_stressing (const char *name, const int sig)
 
int stress_sigrestore (const char *name, const int signum, struct sigaction *orig_action)
 
int stress_not_implemented (const stress_args_t *args)
 
size_t stress_probe_max_pipe_size (void)
 
void * stress_align_address (const void *addr, const size_t alignment)
 
void stress_mmap_set (uint8_t *buf, const size_t sz, const size_t page_size)
 
int stress_mmap_check (uint8_t *buf, const size_t sz, const size_t page_size)
 
uint64_t stress_get_phys_mem_size (void)
 
uint64_t stress_get_filesystem_size (void)
 
ssize_t stress_read_buffer (int, void *, ssize_t, bool)
 
ssize_t stress_write_buffer (int, void *, ssize_t, bool)
 
uint64_t stress_get_filesystem_available_inodes (void)
 
int stress_kernel_release (const int major, const int minor, const int patchlevel)
 
int stress_get_kernel_release (void)
 
char * stress_uint64_to_str (char *str, size_t len, const uint64_t val)
 
int stress_drop_capabilities (const char *name)
 
bool stress_is_dot_filename (const char *name)
 
char * stress_const_optdup (const char *opt)
 
size_t stress_text_addr (char **start, char **end)
 
bool stress_check_capability (const int capability)
 
bool stress_sigalrm_pending (void)
 
bool stress_is_dev_tty (const int fd)
 
stress_hash_table_tstress_hash_create (const size_t n)
 
stress_hash_tstress_hash_add (stress_hash_table_t *hash_table, const char *str)
 
stress_hash_tstress_hash_get (stress_hash_table_t *hash_table, const char *str)
 
void stress_hash_delete (stress_hash_table_t *hash_table)
 
int stress_try_open (const stress_args_t *args, const char *path, const int flags, const unsigned long timeout_ns)
 
int stress_open_timeout (const char *name, const char *path, const int flags, const unsigned long timeout_ns)
 
uint32_t stress_hash_jenkin (const uint8_t *data, const size_t len)
 
uint32_t stress_hash_pjw (const char *str)
 
uint32_t stress_hash_djb2a (const char *str)
 
uint32_t stress_hash_fnv1a (const char *str)
 
uint32_t stress_hash_sdbm (const char *str)
 
uint32_t stress_hash_nhash (const char *str)
 
uint32_t stress_hash_murmur3_32 (const uint8_t *key, size_t len, uint32_t seed)
 
void stress_dirent_list_free (struct dirent **dlist, const int n)
 
int stress_dirent_list_prune (struct dirent **dlist, const int n)
 
uint16_t stress_ipv4_checksum (uint16_t *ptr, const size_t n)
 
int stress_read_fdinfo (const pid_t pid, const int fd)
 
pid_t stress_get_unused_pid_racy (const bool fork_test)
 
size_t stress_hostname_length (void)
 
int32_t stress_set_vmstat (const char *const str)
 
int32_t stress_set_thermalstat (const char *const str)
 
int32_t stress_set_iostat (const char *const str)
 
void stress_misc_stats_set (stress_misc_stats_t *misc_stats, const int idx, const char *description, const double value)
 
int stress_tty_width (void)
 
size_t stress_get_extents (const int fd)
 
bool stress_redo_fork (const int err)
 
void stress_smart_start (void)
 
void stress_smart_stop (void)
 
int stress_ftrace_start (void)
 
void stress_ftrace_stop (void)
 
void stress_ftrace_free (void)
 
void stress_ftrace_add_pid (const pid_t pid)
 
int stress_module_load (const char *name, const char *alias, const char *options, bool *already_loaded)
 
int stress_module_unload (const char *name, const char *alias, const bool already_loaded)
 
static int exit_status (const int err)
 
static void * stress_align_stack (void *stack_top)
 
bool stress_warn_once_hash (const char *filename, const int line)
 
int stress_parse_jobfile (int argc, char **argv, const char *jobfile)
 
int stress_parse_opts (int argc, char **argv, const bool jobmode)
 
int stress_madvise_random (void *addr, const size_t length)
 
void stress_madvise_pid_all_pages (const pid_t pid, const int advise)
 
int stress_mincore_touch_pages (void *buf, const size_t buf_len)
 
int stress_mincore_touch_pages_interruptible (void *buf, const size_t buf_len)
 
void stress_mount_free (char *mnts[], const int n)
 
int stress_mount_get (char *mnts[], const int max)
 
int stress_tz_init (stress_tz_info_t **tz_info_list)
 
void stress_tz_free (stress_tz_info_t **tz_info_list)
 
int stress_tz_get_temperatures (stress_tz_info_t **tz_info_list, stress_tz_t *tz)
 
void stress_tz_dump (FILE *yaml, stress_stressor_t *procs_head)
 
void stress_set_net_port (const char *optname, const char *opt, const int min_port, const int max_port, int *port)
 
int stress_set_net_domain (const int domain_mask, const char *name, const char *domain_name, int *domain)
 
void stress_set_sockaddr (const char *name, const uint32_t instance, const pid_t ppid, const int domain, const int port, struct sockaddr **sockaddr, socklen_t *len, const int net_addr)
 
void stress_set_sockaddr_port (const int domain, const int port, struct sockaddr *sockaddr)
 
stress_cpus_tstress_get_all_cpu_cache_details (void)
 
uint16_t stress_get_max_cache_level (const stress_cpus_t *cpus)
 
stress_cpu_cache_tstress_get_cpu_cache (const stress_cpus_t *cpus, const uint16_t cache_level)
 
void stress_free_cpu_caches (stress_cpus_t *cpus)
 
int stress_thrash_start (void)
 
void stress_thrash_stop (void)
 
void stress_adjust_pthread_max (const uint64_t max)
 
void stress_adjust_sleep_max (const uint64_t max)
 
void stress_set_stack_smash_check_flag (const bool flag)
 
int shim_arch_prctl (int code, unsigned long addr)
 
int shim_brk (void *addr)
 
int shim_cacheflush (char *addr, int nbytes, int cache)
 
void shim_flush_icache (void *begin, void *end)
 
int shim_clock_adjtime (clockid_t clk_id, struct shim_timex *tx)
 
int shim_clock_getres (clockid_t clk_id, struct timespec *res)
 
int shim_clock_gettime (clockid_t clk_id, struct timespec *tp)
 
int shim_clock_settime (clockid_t clk_id, struct timespec *tp)
 
int sys_clone3 (struct shim_clone_args *cl_args, size_t size)
 
int shim_close_range (unsigned int fd, unsigned int max_fd, unsigned int flags)
 
ssize_t shim_copy_file_range (int fd_in, shim_loff_t *off_in, int fd_out, shim_loff_t *off_out, size_t len, unsigned int flags)
 
int shim_dup3 (int oldfd, int newfd, int flags)
 
int shim_execveat (int dir_fd, const char *pathname, char *const argv[], char *const envp[], int flags)
 
void shim_exit_group (int status)
 
int shim_fallocate (int fd, int mode, off_t offset, off_t len)
 
int shim_fdatasync (int fd)
 
ssize_t shim_fgetxattr (int fd, const char *name, void *value, size_t size)
 
ssize_t shim_flistxattr (int fd, char *list, size_t size)
 
int shim_fsconfig (int fd, unsigned int cmd, const char *key, const void *value, int aux)
 
int shim_fsetxattr (int fd, const char *name, const void *value, size_t size, int flags)
 
int shim_fsmount (int fd, unsigned int flags, unsigned int ms_flags)
 
int shim_fsopen (const char *fsname, unsigned int flags)
 
int shim_fsync (int fd)
 
int shim_futex_wait (const void *futex, const int val, const struct timespec *timeout)
 
int shim_futex_wake (const void *futex, const int n)
 
long shim_getcpu (unsigned *cpu, unsigned *node, void *tcache)
 
int shim_getdents (unsigned int fd, struct shim_linux_dirent *dirp, unsigned int count)
 
int shim_getdents64 (unsigned int fd, struct shim_linux_dirent64 *dirp, unsigned int count)
 
char * shim_getlogin (void)
 
int shim_get_mempolicy (int *mode, unsigned long *nodemask, unsigned long maxnode, void *addr, unsigned long flags)
 
int shim_getrandom (void *buff, size_t buflen, unsigned int flags)
 
int shim_getrusage (int who, struct rusage *usage)
 
int shim_gettid (void)
 
ssize_t shim_getxattr (const char *path, const char *name, void *value, size_t size)
 
int shim_ioprio_set (int which, int who, int ioprio)
 
int shim_ioprio_get (int which, int who)
 
long shim_kcmp (pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2)
 
int shim_klogctl (int type, char *bufp, int len)
 
ssize_t shim_lgetxattr (const char *path, const char *name, void *value, size_t size)
 
ssize_t shim_llistxattr (const char *path, char *list, size_t size)
 
int shim_lsetxattr (const char *path, const char *name, const void *value, size_t size, int flags)
 
ssize_t shim_listxattr (const char *path, char *list, size_t size)
 
int shim_lookup_dcookie (uint64_t cookie, char *buffer, size_t len)
 
int shim_lremovexattr (const char *path, const char *name)
 
int shim_madvise (void *addr, size_t length, int advice)
 
long shim_mbind (void *addr, unsigned long len, int mode, const unsigned long *nodemask, unsigned long maxnode, unsigned flags)
 
int shim_membarrier (int cmd, int flags, int cpu_id)
 
int shim_memfd_create (const char *name, unsigned int flags)
 
int shim_memfd_secret (unsigned long flags)
 
long shim_migrate_pages (int pid, unsigned long maxnode, const unsigned long *old_nodes, const unsigned long *new_nodes)
 
int shim_mincore (void *addr, size_t length, unsigned char *vec)
 
int shim_mlock (const void *addr, size_t len)
 
int shim_mlock2 (const void *addr, size_t len, int flags)
 
int shim_mlockall (int flags)
 
int shim_move_mount (int from_dfd, const char *from_pathname, int to_dfd, const char *to_pathname, unsigned int flags)
 
long shim_move_pages (int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags)
 
int shim_msync (void *addr, size_t length, int flags)
 
int shim_munlock (const void *addr, size_t len)
 
int shim_munlockall (void)
 
int shim_modify_ldt (int func, void *ptr, unsigned long bytecount)
 
int shim_nanosleep_uint64 (uint64_t usec)
 
int shim_nice (int inc)
 
time_t shim_time (time_t *tloc)
 
int shim_gettimeofday (struct timeval *tv, struct timezone *tz)
 
int shim_pidfd_getfd (int pidfd, int targetfd, unsigned int flags)
 
int shim_pidfd_open (pid_t pid, unsigned int flags)
 
int shim_pidfd_send_signal (int pidfd, int sig, siginfo_t *info, unsigned int flags)
 
int shim_pkey_alloc (unsigned long flags, unsigned long access_rights)
 
int shim_pkey_free (int pkey)
 
int shim_pkey_mprotect (void *addr, size_t len, int prot, int pkey)
 
int shim_pkey_get (int pkey)
 
int shim_pkey_set (int pkey, unsigned int rights)
 
ssize_t shim_process_madvise (int pidfd, const struct iovec *iovec, unsigned long vlen, int advice, unsigned int flags)
 
int shim_process_mrelease (int pidfd, unsigned int flags)
 
int shim_quotactl_fd (unsigned int fd, unsigned int cmd, int id, void *addr)
 
ssize_t shim_readlink (const char *pathname, char *buf, size_t bufsiz)
 
int shim_reboot (int magic, int magic2, int cmd, void *arg)
 
int shim_removexattr (const char *path, const char *name)
 
void * shim_sbrk (intptr_t increment)
 
int shim_sched_getattr (pid_t pid, struct shim_sched_attr *attr, unsigned int size, unsigned int flags)
 
int shim_sched_setattr (pid_t pid, struct shim_sched_attr *attr, unsigned int flags)
 
long shim_sgetmask (void)
 
long shim_ssetmask (long newmask)
 
int shim_stime (const time_t *t)
 
int shim_sched_yield (void)
 
int shim_set_mempolicy (int mode, unsigned long *nodemask, unsigned long maxnode)
 
int shim_seccomp (unsigned int operation, unsigned int flags, void *args)
 
ssize_t shim_statx (int dfd, const char *filename, unsigned int flags, unsigned int mask, struct shim_statx *buffer)
 
int shim_setxattr (const char *path, const char *name, const void *value, size_t size, int flags)
 
size_t shim_strlcat (char *dst, const char *src, size_t len)
 
size_t shim_strlcpy (char *dst, const char *src, size_t len)
 
int shim_sync_file_range (int fd, shim_off64_t offset, shim_off64_t nbytes, unsigned int flags)
 
int shim_sysfs (int option,...)
 
int shim_tgkill (int tgid, int tid, int sig)
 
int shim_tkill (int tid, int sig)
 
int shim_fremovexattr (int fd, const char *name)
 
int shim_unshare (int flags)
 
int shim_userfaultfd (int flags)
 
int shim_usleep (uint64_t usec)
 
int shim_usleep_interruptible (uint64_t usec)
 
int shim_ustat (dev_t dev, struct shim_ustat *ubuf)
 
int shim_vhangup (void)
 
pid_t shim_waitpid (pid_t pid, int *wstatus, int options)
 
pid_t shim_wait (int *wstatus)
 
pid_t shim_wait3 (int *wstatus, int options, struct rusage *rusage)
 
pid_t shim_wait4 (pid_t pid, int *wstatus, int options, struct rusage *rusage)
 

Variables

stressor_info_t stress_access_info
 
stressor_info_t stress_af_alg_info
 
stressor_info_t stress_affinity_info
 
stressor_info_t stress_aio_info
 
stressor_info_t stress_aiol_info
 
stressor_info_t stress_apparmor_info
 
stressor_info_t stress_alarm_info
 
stressor_info_t stress_atomic_info
 
stressor_info_t stress_bad_altstack_info
 
stressor_info_t stress_bad_ioctl_info
 
stressor_info_t stress_bigheap_info
 
stressor_info_t stress_bind_mount_info
 
stressor_info_t stress_binderfs_info
 
stressor_info_t stress_branch_info
 
stressor_info_t stress_brk_info
 
stressor_info_t stress_bsearch_info
 
stressor_info_t stress_cache_info
 
stressor_info_t stress_cap_info
 
stressor_info_t stress_chattr_info
 
stressor_info_t stress_chdir_info
 
stressor_info_t stress_chmod_info
 
stressor_info_t stress_chown_info
 
stressor_info_t stress_chroot_info
 
stressor_info_t stress_clock_info
 
stressor_info_t stress_clone_info
 
stressor_info_t stress_close_info
 
stressor_info_t stress_context_info
 
stressor_info_t stress_copy_file_info
 
stressor_info_t stress_cpu_info
 
stressor_info_t stress_cpu_online_info
 
stressor_info_t stress_crypt_info
 
stressor_info_t stress_cyclic_info
 
stressor_info_t stress_daemon_info
 
stressor_info_t stress_dccp_info
 
stressor_info_t stress_dentry_info
 
stressor_info_t stress_dev_info
 
stressor_info_t stress_dev_shm_info
 
stressor_info_t stress_dir_info
 
stressor_info_t stress_dirdeep_info
 
stressor_info_t stress_dirmany_info
 
stressor_info_t stress_dnotify_info
 
stressor_info_t stress_dup_info
 
stressor_info_t stress_dynlib_info
 
stressor_info_t stress_efivar_info
 
stressor_info_t stress_enosys_info
 
stressor_info_t stress_env_info
 
stressor_info_t stress_epoll_info
 
stressor_info_t stress_eventfd_info
 
stressor_info_t stress_exec_info
 
stressor_info_t stress_exit_group_info
 
stressor_info_t stress_fallocate_info
 
stressor_info_t stress_fanotify_info
 
stressor_info_t stress_fault_info
 
stressor_info_t stress_fcntl_info
 
stressor_info_t stress_fiemap_info
 
stressor_info_t stress_fifo_info
 
stressor_info_t stress_file_ioctl_info
 
stressor_info_t stress_filename_info
 
stressor_info_t stress_flock_info
 
stressor_info_t stress_fork_info
 
stressor_info_t stress_fp_error_info
 
stressor_info_t stress_fpunch_info
 
stressor_info_t stress_fstat_info
 
stressor_info_t stress_full_info
 
stressor_info_t stress_funccall_info
 
stressor_info_t stress_funcret_info
 
stressor_info_t stress_futex_info
 
stressor_info_t stress_get_info
 
stressor_info_t stress_getdent_info
 
stressor_info_t stress_getrandom_info
 
stressor_info_t stress_handle_info
 
stressor_info_t stress_hdd_info
 
stressor_info_t stress_heapsort_info
 
stressor_info_t stress_hrtimers_info
 
stressor_info_t stress_hsearch_info
 
stressor_info_t stress_icache_info
 
stressor_info_t stress_icmp_flood_info
 
stressor_info_t stress_idle_page_info
 
stressor_info_t stress_inode_flags_info
 
stressor_info_t stress_inotify_info
 
stressor_info_t stress_io_info
 
stressor_info_t stress_iomix_info
 
stressor_info_t stress_ioport_info
 
stressor_info_t stress_ioprio_info
 
stressor_info_t stress_io_uring_info
 
stressor_info_t stress_ipsec_mb_info
 
stressor_info_t stress_itimer_info
 
stressor_info_t stress_judy_info
 
stressor_info_t stress_kcmp_info
 
stressor_info_t stress_key_info
 
stressor_info_t stress_kill_info
 
stressor_info_t stress_klog_info
 
stressor_info_t stress_l1cache_info
 
stressor_info_t stress_landlock_info
 
stressor_info_t stress_lease_info
 
stressor_info_t stress_link_info
 
stressor_info_t stress_list_info
 
stressor_info_t stress_loadavg_info
 
stressor_info_t stress_locka_info
 
stressor_info_t stress_lockbus_info
 
stressor_info_t stress_lockf_info
 
stressor_info_t stress_lockofd_info
 
stressor_info_t stress_longjmp_info
 
stressor_info_t stress_loop_info
 
stressor_info_t stress_lsearch_info
 
stressor_info_t stress_madvise_info
 
stressor_info_t stress_malloc_info
 
stressor_info_t stress_matrix_info
 
stressor_info_t stress_matrix_3d_info
 
stressor_info_t stress_mcontend_info
 
stressor_info_t stress_membarrier_info
 
stressor_info_t stress_memcpy_info
 
stressor_info_t stress_memfd_info
 
stressor_info_t stress_memhotplug_info
 
stressor_info_t stress_memrate_info
 
stressor_info_t stress_memthrash_info
 
stressor_info_t stress_mergesort_info
 
stressor_info_t stress_mincore_info
 
stressor_info_t stress_misaligned_info
 
stressor_info_t stress_mknod_info
 
stressor_info_t stress_mlock_info
 
stressor_info_t stress_mlockmany_info
 
stressor_info_t stress_mmap_info
 
stressor_info_t stress_mmapaddr_info
 
stressor_info_t stress_mmapfixed_info
 
stressor_info_t stress_mmapfork_info
 
stressor_info_t stress_mmaphuge_info
 
stressor_info_t stress_mmapmany_info
 
stressor_info_t stress_mq_info
 
stressor_info_t stress_mremap_info
 
stressor_info_t stress_msg_info
 
stressor_info_t stress_msync_info
 
stressor_info_t stress_munmap_info
 
stressor_info_t stress_nanosleep_info
 
stressor_info_t stress_netdev_info
 
stressor_info_t stress_netlink_proc_info
 
stressor_info_t stress_netlink_task_info
 
stressor_info_t stress_nice_info
 
stressor_info_t stress_nop_info
 
stressor_info_t stress_null_info
 
stressor_info_t stress_numa_info
 
stressor_info_t stress_oom_pipe_info
 
stressor_info_t stress_opcode_info
 
stressor_info_t stress_open_info
 
stressor_info_t stress_pci_info
 
stressor_info_t stress_personality_info
 
stressor_info_t stress_physpage_info
 
stressor_info_t stress_pidfd_info
 
stressor_info_t stress_ping_sock_info
 
stressor_info_t stress_pipe_info
 
stressor_info_t stress_pipeherd_info
 
stressor_info_t stress_pkey_info
 
stressor_info_t stress_poll_info
 
stressor_info_t stress_prctl_info
 
stressor_info_t stress_prefetch_info
 
stressor_info_t stress_procfs_info
 
stressor_info_t stress_pthread_info
 
stressor_info_t stress_ptrace_info
 
stressor_info_t stress_pty_info
 
stressor_info_t stress_qsort_info
 
stressor_info_t stress_quota_info
 
stressor_info_t stress_radixsort_info
 
stressor_info_t stress_ramfs_info
 
stressor_info_t stress_rawdev_info
 
stressor_info_t stress_rawpkt_info
 
stressor_info_t stress_rawsock_info
 
stressor_info_t stress_rawudp_info
 
stressor_info_t stress_rdrand_info
 
stressor_info_t stress_readahead_info
 
stressor_info_t stress_reboot_info
 
stressor_info_t stress_remap_info
 
stressor_info_t stress_rename_info
 
stressor_info_t stress_resources_info
 
stressor_info_t stress_revio_info
 
stressor_info_t stress_rlimit_info
 
stressor_info_t stress_rmap_info
 
stressor_info_t stress_rseq_info
 
stressor_info_t stress_rtc_info
 
stressor_info_t stress_schedpolicy_info
 
stressor_info_t stress_sctp_info
 
stressor_info_t stress_seal_info
 
stressor_info_t stress_seccomp_info
 
stressor_info_t stress_secretmem_info
 
stressor_info_t stress_seek_info
 
stressor_info_t stress_sem_info
 
stressor_info_t stress_sem_sysv_info
 
stressor_info_t stress_sendfile_info
 
stressor_info_t stress_session_info
 
stressor_info_t stress_set_info
 
stressor_info_t stress_shellsort_info
 
stressor_info_t stress_shm_info
 
stressor_info_t stress_shm_sysv_info
 
stressor_info_t stress_sigabrt_info
 
stressor_info_t stress_sigchld_info
 
stressor_info_t stress_sigfd_info
 
stressor_info_t stress_sigfpe_info
 
stressor_info_t stress_sigio_info
 
stressor_info_t stress_signal_info
 
stressor_info_t stress_signest_info
 
stressor_info_t stress_sigpending_info
 
stressor_info_t stress_sigpipe_info
 
stressor_info_t stress_sigq_info
 
stressor_info_t stress_sigrt_info
 
stressor_info_t stress_sigsegv_info
 
stressor_info_t stress_sigsuspend_info
 
stressor_info_t stress_sigtrap_info
 
stressor_info_t stress_skiplist_info
 
stressor_info_t stress_sleep_info
 
stressor_info_t stress_smi_info
 
stressor_info_t stress_sock_info
 
stressor_info_t stress_sockabuse_info
 
stressor_info_t stress_sockdiag_info
 
stressor_info_t stress_sockfd_info
 
stressor_info_t stress_sockpair_info
 
stressor_info_t stress_sockmany_info
 
stressor_info_t stress_softlockup_info
 
stressor_info_t stress_spawn_info
 
stressor_info_t stress_splice_info
 
stressor_info_t stress_stack_info
 
stressor_info_t stress_stackmmap_info
 
stressor_info_t stress_str_info
 
stressor_info_t stress_stream_info
 
stressor_info_t stress_swap_info
 
stressor_info_t stress_switch_info
 
stressor_info_t stress_symlink_info
 
stressor_info_t stress_sync_file_info
 
stressor_info_t stress_sysbadaddr_info
 
stressor_info_t stress_sysinfo_info
 
stressor_info_t stress_sysinval_info
 
stressor_info_t stress_sysfs_info
 
stressor_info_t stress_tee_info
 
stressor_info_t stress_timer_info
 
stressor_info_t stress_timerfd_info
 
stressor_info_t stress_tlb_shootdown_info
 
stressor_info_t stress_tmpfs_info
 
stressor_info_t stress_tree_info
 
stressor_info_t stress_tsc_info
 
stressor_info_t stress_tsearch_info
 
stressor_info_t stress_tun_info
 
stressor_info_t stress_udp_info
 
stressor_info_t stress_udp_flood_info
 
stressor_info_t stress_unshare_info
 
stressor_info_t stress_uprobe_info
 
stressor_info_t stress_urandom_info
 
stressor_info_t stress_userfaultfd_info
 
stressor_info_t stress_utime_info
 
stressor_info_t stress_vdso_info
 
stressor_info_t stress_vecmath_info
 
stressor_info_t stress_verity_info
 
stressor_info_t stress_vfork_info
 
stressor_info_t stress_vforkmany_info
 
stressor_info_t stress_vm_info
 
stressor_info_t stress_vm_addr_info
 
stressor_info_t stress_vm_rw_info
 
stressor_info_t stress_vm_segv_info
 
stressor_info_t stress_vm_splice_info
 
stressor_info_t stress_wait_info
 
stressor_info_t stress_watchdog_info
 
stressor_info_t stress_wcs_info
 
stressor_info_t stress_x86syscall_info
 
stressor_info_t stress_xattr_info
 
stressor_info_t stress_yield_info
 
stressor_info_t stress_zero_info
 
stressor_info_t stress_zlib_info
 
stressor_info_t stress_zombie_info
 
stress_stressor_tg_stressor_current
 
const char * g_app_name
 
stress_shared_tg_shared
 
uint64_t g_opt_timeout
 
uint64_t g_opt_flags
 
int32_t g_opt_sequential
 
int32_t g_opt_parallel
 
volatile bool g_keep_stressing_flag
 
volatile bool g_caught_sigint
 
pid_t g_pgrp
 
jmp_buf g_error_env
 
stress_put_val_t g_put_val
 

Macro Definition Documentation

◆ _ATFILE_SOURCE

#define _ATFILE_SOURCE

Definition at line 29 of file stress-ng.h.

◆ _FILE_OFFSET_BITS

#define _FILE_OFFSET_BITS   (64)

Definition at line 38 of file stress-ng.h.

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 28 of file stress-ng.h.

◆ _LARGEFILE64_SOURCE

#define _LARGEFILE64_SOURCE

Definition at line 34 of file stress-ng.h.

◆ _LARGEFILE_SOURCE

#define _LARGEFILE_SOURCE

Definition at line 31 of file stress-ng.h.

◆ ABORT_FAILURES

#define ABORT_FAILURES   (5) /* Number of failures before we abort */

Definition at line 909 of file stress-ng.h.

◆ ALIGN128

#define ALIGN128

Definition at line 1292 of file stress-ng.h.

◆ ALIGN64

#define ALIGN64

Definition at line 1301 of file stress-ng.h.

◆ ALIGN_CACHELINE

#define ALIGN_CACHELINE   ALIGN128

Definition at line 1313 of file stress-ng.h.

◆ ALIGNED

#define ALIGNED (   a)

Definition at line 1283 of file stress-ng.h.

◆ ALWAYS_INLINE

#define ALWAYS_INLINE

Definition at line 1232 of file stress-ng.h.

◆ CASE_FALLTHROUGH

#define CASE_FALLTHROUGH   /* Fallthrough */

Definition at line 1206 of file stress-ng.h.

◆ CLASS_CPU

#define CLASS_CPU   STRESS_BIT_UL(0) /* CPU only */

Definition at line 972 of file stress-ng.h.

◆ CLASS_CPU_CACHE

#define CLASS_CPU_CACHE   STRESS_BIT_UL(2) /* CPU cache */

Definition at line 974 of file stress-ng.h.

◆ CLASS_DEV

#define CLASS_DEV   STRESS_BIT_UL(11) /* device (null, zero, etc) */

Definition at line 983 of file stress-ng.h.

◆ CLASS_FILESYSTEM

#define CLASS_FILESYSTEM   STRESS_BIT_UL(10) /* file system */

Definition at line 982 of file stress-ng.h.

◆ CLASS_INTERRUPT

#define CLASS_INTERRUPT   STRESS_BIT_UL(7) /* interrupt floods */

Definition at line 979 of file stress-ng.h.

◆ CLASS_IO

#define CLASS_IO   STRESS_BIT_UL(3) /* I/O read/writes etc */

Definition at line 975 of file stress-ng.h.

◆ CLASS_MEMORY

#define CLASS_MEMORY   STRESS_BIT_UL(1) /* Memory thrashers */

Definition at line 973 of file stress-ng.h.

◆ CLASS_NETWORK

#define CLASS_NETWORK   STRESS_BIT_UL(4) /* Network, sockets, etc */

Definition at line 976 of file stress-ng.h.

◆ CLASS_OS

#define CLASS_OS   STRESS_BIT_UL(8) /* generic OS tests */

Definition at line 980 of file stress-ng.h.

◆ CLASS_PATHOLOGICAL

#define CLASS_PATHOLOGICAL   STRESS_BIT_UL(13) /* can hang a machine */

Definition at line 985 of file stress-ng.h.

◆ CLASS_PIPE_IO

#define CLASS_PIPE_IO   STRESS_BIT_UL(9) /* pipe I/O */

Definition at line 981 of file stress-ng.h.

◆ CLASS_SCHEDULER

#define CLASS_SCHEDULER   STRESS_BIT_UL(5) /* Scheduling */

Definition at line 977 of file stress-ng.h.

◆ CLASS_SECURITY

#define CLASS_SECURITY   STRESS_BIT_UL(12) /* security APIs */

Definition at line 984 of file stress-ng.h.

◆ CLASS_VM

#define CLASS_VM   STRESS_BIT_UL(6) /* VM stress, big memory, swapping */

Definition at line 978 of file stress-ng.h.

◆ DCCP_BUF

#define DCCP_BUF   (1024) /* DCCP I/O buffer size */

Definition at line 904 of file stress-ng.h.

◆ DEFAULT_AIO_LINUX_REQUESTS

#define DEFAULT_AIO_LINUX_REQUESTS   (64)

Definition at line 1495 of file stress-ng.h.

◆ DEFAULT_AIO_REQUESTS

#define DEFAULT_AIO_REQUESTS   (16)

Definition at line 1491 of file stress-ng.h.

◆ DEFAULT_BACKOFF

#define DEFAULT_BACKOFF   (0)

Definition at line 1803 of file stress-ng.h.

◆ DEFAULT_BIGHEAP_GROWTH

#define DEFAULT_BIGHEAP_GROWTH   (64 * KB)

Definition at line 1499 of file stress-ng.h.

◆ DEFAULT_BSEARCH_SIZE

#define DEFAULT_BSEARCH_SIZE   (64 * KB)

Definition at line 1503 of file stress-ng.h.

◆ DEFAULT_CACHE_LEVEL

#define DEFAULT_CACHE_LEVEL   3

Definition at line 1809 of file stress-ng.h.

◆ DEFAULT_CHDIR_DIRS

#define DEFAULT_CHDIR_DIRS   (8192)

Definition at line 1507 of file stress-ng.h.

◆ DEFAULT_CLONES

#define DEFAULT_CLONES   (8192)

Definition at line 1511 of file stress-ng.h.

◆ DEFAULT_COPY_FILE_BYTES

#define DEFAULT_COPY_FILE_BYTES   (256 * MB)

Definition at line 1515 of file stress-ng.h.

◆ DEFAULT_COPY_FILE_SIZE

#define DEFAULT_COPY_FILE_SIZE   (2 * MB)

Definition at line 1516 of file stress-ng.h.

◆ DEFAULT_DCCP_PORT

#define DEFAULT_DCCP_PORT   (10000)

Definition at line 1520 of file stress-ng.h.

◆ DEFAULT_DENTRIES

#define DEFAULT_DENTRIES   (2048)

Definition at line 1524 of file stress-ng.h.

◆ DEFAULT_DIR_DIRS

#define DEFAULT_DIR_DIRS   (8192)

Definition at line 1528 of file stress-ng.h.

◆ DEFAULT_DIRS

#define DEFAULT_DIRS   (8192)

Definition at line 1805 of file stress-ng.h.

◆ DEFAULT_EPOLL_PORT

#define DEFAULT_EPOLL_PORT   (6000)

Definition at line 1532 of file stress-ng.h.

◆ DEFAULT_EXECS

#define DEFAULT_EXECS   (1)

Definition at line 1568 of file stress-ng.h.

◆ DEFAULT_FALLOCATE_BYTES

#define DEFAULT_FALLOCATE_BYTES   (1 * GB)

Definition at line 1544 of file stress-ng.h.

◆ DEFAULT_FIEMAP_SIZE

#define DEFAULT_FIEMAP_SIZE   (16 * MB)

Definition at line 1548 of file stress-ng.h.

◆ DEFAULT_FIFO_READERS

#define DEFAULT_FIFO_READERS   (4)

Definition at line 1552 of file stress-ng.h.

◆ DEFAULT_FORKS

#define DEFAULT_FORKS   (1)

Definition at line 1572 of file stress-ng.h.

◆ DEFAULT_HDD_BYTES

#define DEFAULT_HDD_BYTES   (1 * GB)

Definition at line 1536 of file stress-ng.h.

◆ DEFAULT_HDD_WRITE_SIZE

#define DEFAULT_HDD_WRITE_SIZE   (64 * 1024)

Definition at line 1540 of file stress-ng.h.

◆ DEFAULT_HEAPSORT_SIZE

#define DEFAULT_HEAPSORT_SIZE   (256 * KB)

Definition at line 1576 of file stress-ng.h.

◆ DEFAULT_HSEARCH_SIZE

#define DEFAULT_HSEARCH_SIZE   (8 * KB)

Definition at line 1592 of file stress-ng.h.

◆ DEFAULT_IOMIX_BYTES

#define DEFAULT_IOMIX_BYTES   (1 * GB)

Definition at line 1580 of file stress-ng.h.

◆ DEFAULT_ITIMER_FREQ

#define DEFAULT_ITIMER_FREQ   (1000000)

Definition at line 1556 of file stress-ng.h.

◆ DEFAULT_JUDY_SIZE

#define DEFAULT_JUDY_SIZE   (256 * KB)

Definition at line 1584 of file stress-ng.h.

◆ DEFAULT_LEASE_BREAKERS

#define DEFAULT_LEASE_BREAKERS   (1)

Definition at line 1596 of file stress-ng.h.

◆ DEFAULT_LINKS

#define DEFAULT_LINKS   (8192)

Definition at line 1804 of file stress-ng.h.

◆ DEFAULT_LIST_SIZE

#define DEFAULT_LIST_SIZE   (5000)

Definition at line 1600 of file stress-ng.h.

◆ DEFAULT_LSEARCH_SIZE

#define DEFAULT_LSEARCH_SIZE   (8 * KB)

Definition at line 1604 of file stress-ng.h.

◆ DEFAULT_MALLOC_BYTES

#define DEFAULT_MALLOC_BYTES   (64 * KB)

Definition at line 1608 of file stress-ng.h.

◆ DEFAULT_MALLOC_MAX

#define DEFAULT_MALLOC_MAX   (64 * KB)

Definition at line 1612 of file stress-ng.h.

◆ DEFAULT_MALLOC_THRESHOLD

#define DEFAULT_MALLOC_THRESHOLD   (128 * KB)

Definition at line 1616 of file stress-ng.h.

◆ DEFAULT_MATRIX3D_SIZE

#define DEFAULT_MATRIX3D_SIZE   (64)

Definition at line 1624 of file stress-ng.h.

◆ DEFAULT_MATRIX_SIZE

#define DEFAULT_MATRIX_SIZE   (256)

Definition at line 1620 of file stress-ng.h.

◆ DEFAULT_MEMFD_BYTES

#define DEFAULT_MEMFD_BYTES   (256 * MB)

Definition at line 1628 of file stress-ng.h.

◆ DEFAULT_MEMFD_FDS

#define DEFAULT_MEMFD_FDS   (256)

Definition at line 1632 of file stress-ng.h.

◆ DEFAULT_MEMRATE_BYTES

#define DEFAULT_MEMRATE_BYTES   (256 * MB)

Definition at line 1644 of file stress-ng.h.

◆ DEFAULT_MERGESORT_SIZE

#define DEFAULT_MERGESORT_SIZE   (256 * KB)

Definition at line 1636 of file stress-ng.h.

◆ DEFAULT_MMAP_BYTES

#define DEFAULT_MMAP_BYTES   (256 * MB)

Definition at line 1640 of file stress-ng.h.

◆ DEFAULT_MQ_SIZE

#define DEFAULT_MQ_SIZE   (10)

Definition at line 1560 of file stress-ng.h.

◆ DEFAULT_MREMAP_BYTES [1/2]

#define DEFAULT_MREMAP_BYTES   (256 * MB)

Definition at line 1649 of file stress-ng.h.

◆ DEFAULT_MREMAP_BYTES [2/2]

#define DEFAULT_MREMAP_BYTES   (256 * MB)

Definition at line 1649 of file stress-ng.h.

◆ DEFAULT_MSYNC_BYTES

#define DEFAULT_MSYNC_BYTES   (256 * MB)

Definition at line 1653 of file stress-ng.h.

◆ DEFAULT_PARALLEL

#define DEFAULT_PARALLEL   (0) /* Disabled */

Definition at line 1694 of file stress-ng.h.

◆ DEFAULT_PTHREAD

#define DEFAULT_PTHREAD   (1024)

Definition at line 1657 of file stress-ng.h.

◆ DEFAULT_PTYS

#define DEFAULT_PTYS   (65536)

Definition at line 1661 of file stress-ng.h.

◆ DEFAULT_QSORT_SIZE

#define DEFAULT_QSORT_SIZE   (256 * KB)

Definition at line 1665 of file stress-ng.h.

◆ DEFAULT_RADIXSORT_SIZE

#define DEFAULT_RADIXSORT_SIZE   (256 * KB)

Definition at line 1669 of file stress-ng.h.

◆ DEFAULT_RAWPKT_PORT

#define DEFAULT_RAWPKT_PORT   (14000)

Definition at line 1739 of file stress-ng.h.

◆ DEFAULT_RAWUDP_PORT

#define DEFAULT_RAWUDP_PORT   (13000)

Definition at line 1735 of file stress-ng.h.

◆ DEFAULT_READAHEAD_BYTES

#define DEFAULT_READAHEAD_BYTES   (64 * MB)

Definition at line 1673 of file stress-ng.h.

◆ DEFAULT_REVIO_BYTES

#define DEFAULT_REVIO_BYTES   (1 * GB)

Definition at line 1677 of file stress-ng.h.

◆ DEFAULT_SCTP_PORT

#define DEFAULT_SCTP_PORT   (9000)

Definition at line 1681 of file stress-ng.h.

◆ DEFAULT_SEEK_SIZE

#define DEFAULT_SEEK_SIZE   (16 * MB)

Definition at line 1689 of file stress-ng.h.

◆ DEFAULT_SEMAPHORE_PROCS

#define DEFAULT_SEMAPHORE_PROCS   (2)

Definition at line 1564 of file stress-ng.h.

◆ DEFAULT_SENDFILE_SIZE

#define DEFAULT_SENDFILE_SIZE   (4 * MB)

Definition at line 1685 of file stress-ng.h.

◆ DEFAULT_SEQUENTIAL

#define DEFAULT_SEQUENTIAL   (0) /* Disabled */

Definition at line 1693 of file stress-ng.h.

◆ DEFAULT_SHELLSORT_SIZE

#define DEFAULT_SHELLSORT_SIZE   (256 * KB)

Definition at line 1698 of file stress-ng.h.

◆ DEFAULT_SHM_POSIX_BYTES

#define DEFAULT_SHM_POSIX_BYTES   (8 * MB)

Definition at line 1710 of file stress-ng.h.

◆ DEFAULT_SHM_POSIX_OBJECTS

#define DEFAULT_SHM_POSIX_OBJECTS   (32)

Definition at line 1714 of file stress-ng.h.

◆ DEFAULT_SHM_SYSV_BYTES

#define DEFAULT_SHM_SYSV_BYTES   (8 * MB)

Definition at line 1702 of file stress-ng.h.

◆ DEFAULT_SHM_SYSV_SEGMENTS

#define DEFAULT_SHM_SYSV_SEGMENTS   (8)

Definition at line 1706 of file stress-ng.h.

◆ DEFAULT_SKIPLIST_SIZE

#define DEFAULT_SKIPLIST_SIZE   (64 * KB)

Definition at line 1720 of file stress-ng.h.

◆ DEFAULT_SLEEP

#define DEFAULT_SLEEP   (1024)

Definition at line 1724 of file stress-ng.h.

◆ DEFAULT_SOCKABUSE_PORT

#define DEFAULT_SOCKABUSE_PORT   (12000)

Definition at line 1731 of file stress-ng.h.

◆ DEFAULT_SOCKET_FD_PORT

#define DEFAULT_SOCKET_FD_PORT   (8000)

Definition at line 1743 of file stress-ng.h.

◆ DEFAULT_SOCKET_MANY_PORT

#define DEFAULT_SOCKET_MANY_PORT   (11000)

Definition at line 1730 of file stress-ng.h.

◆ DEFAULT_SOCKET_PORT

#define DEFAULT_SOCKET_PORT   (5000)

Definition at line 1728 of file stress-ng.h.

◆ DEFAULT_SPLICE_BYTES

#define DEFAULT_SPLICE_BYTES   (64 * KB)

Definition at line 1747 of file stress-ng.h.

◆ DEFAULT_STREAM_L3_SIZE

#define DEFAULT_STREAM_L3_SIZE   (4 * MB)

Definition at line 1751 of file stress-ng.h.

◆ DEFAULT_SYNC_FILE_BYTES

#define DEFAULT_SYNC_FILE_BYTES   (1 * GB)

Definition at line 1755 of file stress-ng.h.

◆ DEFAULT_TIMEOUT

#define DEFAULT_TIMEOUT   (60 * 60 * 24)

Definition at line 1802 of file stress-ng.h.

◆ DEFAULT_TIMER_FREQ

#define DEFAULT_TIMER_FREQ   (1000000)

Definition at line 1759 of file stress-ng.h.

◆ DEFAULT_TIMERFD_FREQ

#define DEFAULT_TIMERFD_FREQ   (1000000)

Definition at line 1763 of file stress-ng.h.

◆ DEFAULT_TREE_SIZE

#define DEFAULT_TREE_SIZE   (250000)

Definition at line 1767 of file stress-ng.h.

◆ DEFAULT_TSEARCH_SIZE

#define DEFAULT_TSEARCH_SIZE   (64 * KB)

Definition at line 1771 of file stress-ng.h.

◆ DEFAULT_UDP_PORT

#define DEFAULT_UDP_PORT   (7000)

Definition at line 1775 of file stress-ng.h.

◆ DEFAULT_USERFAULTFD_BYTES

#define DEFAULT_USERFAULTFD_BYTES   (16 * MB)

Definition at line 1779 of file stress-ng.h.

◆ DEFAULT_VFORKS

#define DEFAULT_VFORKS   (1)

Definition at line 1588 of file stress-ng.h.

◆ DEFAULT_VM_BYTES

#define DEFAULT_VM_BYTES   (256 * MB)

Definition at line 1783 of file stress-ng.h.

◆ DEFAULT_VM_HANG

#define DEFAULT_VM_HANG   (~0ULL)

Definition at line 1787 of file stress-ng.h.

◆ DEFAULT_VM_RW_BYTES

#define DEFAULT_VM_RW_BYTES   (16 * MB)

Definition at line 1791 of file stress-ng.h.

◆ DEFAULT_VM_SPLICE_BYTES

#define DEFAULT_VM_SPLICE_BYTES   (64 * KB)

Definition at line 1795 of file stress-ng.h.

◆ DEFAULT_ZOMBIES

#define DEFAULT_ZOMBIES   (8192)

Definition at line 1799 of file stress-ng.h.

◆ DOMAIN_ALL

#define DOMAIN_ALL   (DOMAIN_INET | DOMAIN_INET6 | DOMAIN_UNIX)

Definition at line 1083 of file stress-ng.h.

◆ DOMAIN_INET

#define DOMAIN_INET   (0x00000001) /* AF_INET */

Definition at line 1078 of file stress-ng.h.

◆ DOMAIN_INET6

#define DOMAIN_INET6   (0x00000002) /* AF_INET6 */

Definition at line 1079 of file stress-ng.h.

◆ DOMAIN_INET_ALL

#define DOMAIN_INET_ALL   (DOMAIN_INET | DOMAIN_INET6)

Definition at line 1082 of file stress-ng.h.

◆ DOMAIN_UNIX

#define DOMAIN_UNIX   (0x00000004) /* AF_UNIX */

Definition at line 1080 of file stress-ng.h.

◆ EB

#define EB   (1ULL << 60)

Definition at line 1460 of file stress-ng.h.

◆ EXIT_BY_SYS_EXIT

#define EXIT_BY_SYS_EXIT   (6)

Definition at line 840 of file stress-ng.h.

◆ EXIT_FAILURE

#define EXIT_FAILURE   (1)

Definition at line 834 of file stress-ng.h.

◆ EXIT_METRICS_UNTRUSTWORTHY

#define EXIT_METRICS_UNTRUSTWORTHY   (7)

Definition at line 841 of file stress-ng.h.

◆ EXIT_NO_RESOURCE

#define EXIT_NO_RESOURCE   (3)

Definition at line 837 of file stress-ng.h.

◆ EXIT_NOT_IMPLEMENTED

#define EXIT_NOT_IMPLEMENTED   (4)

Definition at line 838 of file stress-ng.h.

◆ EXIT_NOT_SUCCESS

#define EXIT_NOT_SUCCESS   (2)

Definition at line 836 of file stress-ng.h.

◆ EXIT_SIGNALED

#define EXIT_SIGNALED   (5)

Definition at line 839 of file stress-ng.h.

◆ EXIT_SUCESSS

#define EXIT_SUCESSS   (0)

Definition at line 831 of file stress-ng.h.

◆ FORCE_DO_NOTHING

#define FORCE_DO_NOTHING ( )    while (0)

Definition at line 1387 of file stress-ng.h.

◆ FORMAT

#define FORMAT (   func,
  a,
 
)

Definition at line 1343 of file stress-ng.h.

◆ GB

#define GB   (1ULL << 30)

Definition at line 1457 of file stress-ng.h.

◆ HOT

#define HOT

Definition at line 1323 of file stress-ng.h.

◆ IOPRIO_CLASS_BE

#define IOPRIO_CLASS_BE   (2)

Definition at line 1974 of file stress-ng.h.

◆ IOPRIO_CLASS_IDLE

#define IOPRIO_CLASS_IDLE   (3)

Definition at line 1977 of file stress-ng.h.

◆ IOPRIO_CLASS_RT

#define IOPRIO_CLASS_RT   (1)

Definition at line 1971 of file stress-ng.h.

◆ IOPRIO_PRIO_VALUE

#define IOPRIO_PRIO_VALUE (   class,
  data 
)    (((class) << 13) | data)

Definition at line 1991 of file stress-ng.h.

◆ IOPRIO_WHO_PGRP

#define IOPRIO_WHO_PGRP   (2)

Definition at line 1984 of file stress-ng.h.

◆ IOPRIO_WHO_PROCESS

#define IOPRIO_WHO_PROCESS   (1)

Definition at line 1981 of file stress-ng.h.

◆ IOPRIO_WHO_USER

#define IOPRIO_WHO_USER   (3)

Definition at line 1987 of file stress-ng.h.

◆ KB

#define KB   (1ULL << 10)

Definition at line 1455 of file stress-ng.h.

◆ LIKELY

#define LIKELY (   x)    (x)

Definition at line 1358 of file stress-ng.h.

◆ MAX_32

#define MAX_32   (0xffffffffUL)

Definition at line 1469 of file stress-ng.h.

◆ MAX_48

#define MAX_48   (0xffffffffffffULL)

Definition at line 1470 of file stress-ng.h.

◆ MAX_64

#define MAX_64   (0xffffffffffffffffULL)

Definition at line 1471 of file stress-ng.h.

◆ MAX_AIO_LINUX_REQUESTS

#define MAX_AIO_LINUX_REQUESTS   (4096)

Definition at line 1494 of file stress-ng.h.

◆ MAX_AIO_REQUESTS

#define MAX_AIO_REQUESTS   (4096)

Definition at line 1490 of file stress-ng.h.

◆ MAX_BIGHEAP_GROWTH

#define MAX_BIGHEAP_GROWTH   (64 * MB)

Definition at line 1498 of file stress-ng.h.

◆ MAX_BSEARCH_SIZE

#define MAX_BSEARCH_SIZE   (4 * MB)

Definition at line 1502 of file stress-ng.h.

◆ MAX_CHDIR_DIRS

#define MAX_CHDIR_DIRS   (65536)

Definition at line 1506 of file stress-ng.h.

◆ MAX_CLONES

#define MAX_CLONES   (1000000)

Definition at line 1510 of file stress-ng.h.

◆ MAX_COPY_FILE_BYTES

#define MAX_COPY_FILE_BYTES   (MAX_FILE_LIMIT)

Definition at line 1514 of file stress-ng.h.

◆ MAX_DCCP_PORT

#define MAX_DCCP_PORT   (65535)

Definition at line 1519 of file stress-ng.h.

◆ MAX_DENTRIES

#define MAX_DENTRIES   (1000000)

Definition at line 1523 of file stress-ng.h.

◆ MAX_DIR_DIRS

#define MAX_DIR_DIRS   (65536)

Definition at line 1527 of file stress-ng.h.

◆ MAX_EPOLL_PORT

#define MAX_EPOLL_PORT   (65535)

Definition at line 1531 of file stress-ng.h.

◆ MAX_EXECS

#define MAX_EXECS   (16000)

Definition at line 1567 of file stress-ng.h.

◆ MAX_FALLOCATE_BYTES

#define MAX_FALLOCATE_BYTES   (MAX_FILE_LIMIT)

Definition at line 1543 of file stress-ng.h.

◆ MAX_FIEMAP_SIZE

#define MAX_FIEMAP_SIZE   (MAX_FILE_LIMIT)

Definition at line 1547 of file stress-ng.h.

◆ MAX_FIFO_READERS

#define MAX_FIFO_READERS   (64)

Definition at line 1551 of file stress-ng.h.

◆ MAX_FILE_LIMIT

#define MAX_FILE_LIMIT   ((1ULL << ((sizeof(off_t) * 8) - 1)) - 1)

Definition at line 1480 of file stress-ng.h.

◆ MAX_FORKS

#define MAX_FORKS   (16000)

Definition at line 1571 of file stress-ng.h.

◆ MAX_HDD_BYTES

#define MAX_HDD_BYTES   (MAX_FILE_LIMIT)

Definition at line 1535 of file stress-ng.h.

◆ MAX_HDD_WRITE_SIZE

#define MAX_HDD_WRITE_SIZE   (4 * MB)

Definition at line 1539 of file stress-ng.h.

◆ MAX_HEAPSORT_SIZE

#define MAX_HEAPSORT_SIZE   (4 * MB)

Definition at line 1575 of file stress-ng.h.

◆ MAX_HSEARCH_SIZE

#define MAX_HSEARCH_SIZE   (4 * MB)

Definition at line 1591 of file stress-ng.h.

◆ MAX_IOMIX_BYTES

#define MAX_IOMIX_BYTES   (MAX_FILE_LIMIT)

Definition at line 1579 of file stress-ng.h.

◆ MAX_ITIMER_FREQ

#define MAX_ITIMER_FREQ   (100000000)

Definition at line 1555 of file stress-ng.h.

◆ MAX_JUDY_SIZE

#define MAX_JUDY_SIZE   (4 * MB)

Definition at line 1583 of file stress-ng.h.

◆ MAX_LEASE_BREAKERS

#define MAX_LEASE_BREAKERS   (64)

Definition at line 1595 of file stress-ng.h.

◆ MAX_LIST_SIZE

#define MAX_LIST_SIZE   (1000000)

Definition at line 1599 of file stress-ng.h.

◆ MAX_LSEARCH_SIZE

#define MAX_LSEARCH_SIZE   (1 * MB)

Definition at line 1603 of file stress-ng.h.

◆ MAX_MALLOC_BYTES

#define MAX_MALLOC_BYTES   (MAX_MEM_LIMIT)

Definition at line 1607 of file stress-ng.h.

◆ MAX_MALLOC_MAX

#define MAX_MALLOC_MAX   (256 * 1024)

Definition at line 1611 of file stress-ng.h.

◆ MAX_MALLOC_THRESHOLD

#define MAX_MALLOC_THRESHOLD   (256 * MB)

Definition at line 1615 of file stress-ng.h.

◆ MAX_MATRIX3D_SIZE

#define MAX_MATRIX3D_SIZE   (1024)

Definition at line 1623 of file stress-ng.h.

◆ MAX_MATRIX_SIZE

#define MAX_MATRIX_SIZE   (8192)

Definition at line 1619 of file stress-ng.h.

◆ MAX_MEM_LIMIT

#define MAX_MEM_LIMIT   (MAX_48)

Definition at line 1477 of file stress-ng.h.

◆ MAX_MEMFD_BYTES

#define MAX_MEMFD_BYTES   (MAX_MEM_LIMIT)

Definition at line 1627 of file stress-ng.h.

◆ MAX_MEMFD_FDS

#define MAX_MEMFD_FDS   (4096)

Definition at line 1631 of file stress-ng.h.

◆ MAX_MEMRATE_BYTES

#define MAX_MEMRATE_BYTES   (MAX_MEM_LIMIT)

Definition at line 1643 of file stress-ng.h.

◆ MAX_MERGESORT_SIZE

#define MAX_MERGESORT_SIZE   (4 * MB)

Definition at line 1635 of file stress-ng.h.

◆ MAX_MMAP_BYTES

#define MAX_MMAP_BYTES   (MAX_MEM_LIMIT)

Definition at line 1639 of file stress-ng.h.

◆ MAX_MQ_SIZE

#define MAX_MQ_SIZE   (32)

Definition at line 1559 of file stress-ng.h.

◆ MAX_MREMAP_BYTES

#define MAX_MREMAP_BYTES   (MAX_MEM_LIMIT)

Definition at line 1648 of file stress-ng.h.

◆ MAX_MSYNC_BYTES

#define MAX_MSYNC_BYTES   (MAX_FILE_LIMIT)

Definition at line 1652 of file stress-ng.h.

◆ MAX_OPS

#define MAX_OPS   (100000000ULL)

Definition at line 1468 of file stress-ng.h.

◆ MAX_PTHREAD

#define MAX_PTHREAD   (30000)

Definition at line 1656 of file stress-ng.h.

◆ MAX_PTYS

#define MAX_PTYS   (65536)

Definition at line 1660 of file stress-ng.h.

◆ MAX_QSORT_SIZE

#define MAX_QSORT_SIZE   (4 * MB)

Definition at line 1664 of file stress-ng.h.

◆ MAX_RADIXSORT_SIZE

#define MAX_RADIXSORT_SIZE   (4 * MB)

Definition at line 1668 of file stress-ng.h.

◆ MAX_RAWPKT_PORT

#define MAX_RAWPKT_PORT   (65535)

Definition at line 1738 of file stress-ng.h.

◆ MAX_RAWUDP_PORT

#define MAX_RAWUDP_PORT   (65535)

Definition at line 1734 of file stress-ng.h.

◆ MAX_READAHEAD_BYTES

#define MAX_READAHEAD_BYTES   (MAX_FILE_LIMIT)

Definition at line 1672 of file stress-ng.h.

◆ MAX_REVIO_BYTES

#define MAX_REVIO_BYTES   (MAX_FILE_LIMIT)

Definition at line 1676 of file stress-ng.h.

◆ MAX_SCTP_PORT

#define MAX_SCTP_PORT   (65535)

Definition at line 1680 of file stress-ng.h.

◆ MAX_SEEK_SIZE

#define MAX_SEEK_SIZE   (MAX_FILE_LIMIT)

Definition at line 1688 of file stress-ng.h.

◆ MAX_SEMAPHORE_PROCS

#define MAX_SEMAPHORE_PROCS   (64)

Definition at line 1563 of file stress-ng.h.

◆ MAX_SENDFILE_SIZE

#define MAX_SENDFILE_SIZE   (1 * GB)

Definition at line 1684 of file stress-ng.h.

◆ MAX_SEQUENTIAL

#define MAX_SEQUENTIAL   (1000000)

Definition at line 1692 of file stress-ng.h.

◆ MAX_SHELLSORT_SIZE

#define MAX_SHELLSORT_SIZE   (4 * MB)

Definition at line 1697 of file stress-ng.h.

◆ MAX_SHM_POSIX_BYTES

#define MAX_SHM_POSIX_BYTES   (1 * GB)

Definition at line 1709 of file stress-ng.h.

◆ MAX_SHM_POSIX_OBJECTS

#define MAX_SHM_POSIX_OBJECTS   (128)

Definition at line 1713 of file stress-ng.h.

◆ MAX_SHM_SYSV_BYTES

#define MAX_SHM_SYSV_BYTES   (256 * MB)

Definition at line 1701 of file stress-ng.h.

◆ MAX_SHM_SYSV_SEGMENTS

#define MAX_SHM_SYSV_SEGMENTS   (128)

Definition at line 1705 of file stress-ng.h.

◆ MAX_SIGSUSPEND_PIDS

#define MAX_SIGSUSPEND_PIDS   (4)

Definition at line 1716 of file stress-ng.h.

◆ MAX_SKIPLIST_SIZE

#define MAX_SKIPLIST_SIZE   (4 * MB)

Definition at line 1719 of file stress-ng.h.

◆ MAX_SLEEP

#define MAX_SLEEP   (30000)

Definition at line 1723 of file stress-ng.h.

◆ MAX_SOCKET_FD_PORT

#define MAX_SOCKET_FD_PORT   (65535)

Definition at line 1742 of file stress-ng.h.

◆ MAX_SOCKET_PORT

#define MAX_SOCKET_PORT   (65535)

Definition at line 1727 of file stress-ng.h.

◆ MAX_SPLICE_BYTES

#define MAX_SPLICE_BYTES   (64 * MB)

Definition at line 1746 of file stress-ng.h.

◆ MAX_STREAM_L3_SIZE

#define MAX_STREAM_L3_SIZE   (MAX_MEM_LIMIT)

Definition at line 1750 of file stress-ng.h.

◆ MAX_SYNC_FILE_BYTES

#define MAX_SYNC_FILE_BYTES   (MAX_FILE_LIMIT)

Definition at line 1754 of file stress-ng.h.

◆ MAX_TIMER_FREQ

#define MAX_TIMER_FREQ   (100000000)

Definition at line 1758 of file stress-ng.h.

◆ MAX_TIMERFD_FREQ

#define MAX_TIMERFD_FREQ   (100000000)

Definition at line 1762 of file stress-ng.h.

◆ MAX_TREE_SIZE

#define MAX_TREE_SIZE   (25000000)

Definition at line 1766 of file stress-ng.h.

◆ MAX_TSEARCH_SIZE

#define MAX_TSEARCH_SIZE   (4 * MB)

Definition at line 1770 of file stress-ng.h.

◆ MAX_UDP_PORT

#define MAX_UDP_PORT   (65535)

Definition at line 1774 of file stress-ng.h.

◆ MAX_USERFAULTFD_BYTES

#define MAX_USERFAULTFD_BYTES   (MAX_MEM_LIMIT)

Definition at line 1778 of file stress-ng.h.

◆ MAX_VFORKS

#define MAX_VFORKS   (16000)

Definition at line 1587 of file stress-ng.h.

◆ MAX_VM_BYTES

#define MAX_VM_BYTES   (MAX_MEM_LIMIT)

Definition at line 1782 of file stress-ng.h.

◆ MAX_VM_HANG

#define MAX_VM_HANG   (3600)

Definition at line 1786 of file stress-ng.h.

◆ MAX_VM_RW_BYTES

#define MAX_VM_RW_BYTES   (MAX_MEM_LIMIT)

Definition at line 1790 of file stress-ng.h.

◆ MAX_VM_SPLICE_BYTES

#define MAX_VM_SPLICE_BYTES   (64 * MB)

Definition at line 1794 of file stress-ng.h.

◆ MAX_ZOMBIES

#define MAX_ZOMBIES   (1000000)

Definition at line 1798 of file stress-ng.h.

◆ MAXIMIZED_FILE_SIZE

#define MAXIMIZED_FILE_SIZE   ((sizeof(off_t) < 8) ? MAX_FILE_LIMIT : MAX_32)

Definition at line 1486 of file stress-ng.h.

◆ MB

#define MB   (1ULL << 20)

Definition at line 1456 of file stress-ng.h.

◆ MEM_CACHE_SIZE

#define MEM_CACHE_SIZE   (65536 * 32)

Definition at line 1808 of file stress-ng.h.

◆ MIN_AIO_LINUX_REQUESTS

#define MIN_AIO_LINUX_REQUESTS   (1)

Definition at line 1493 of file stress-ng.h.

◆ MIN_AIO_REQUESTS

#define MIN_AIO_REQUESTS   (1)

Definition at line 1489 of file stress-ng.h.

◆ MIN_BIGHEAP_GROWTH

#define MIN_BIGHEAP_GROWTH   (4 * KB)

Definition at line 1497 of file stress-ng.h.

◆ MIN_BSEARCH_SIZE

#define MIN_BSEARCH_SIZE   (1 * KB)

Definition at line 1501 of file stress-ng.h.

◆ MIN_CHDIR_DIRS

#define MIN_CHDIR_DIRS   (64)

Definition at line 1505 of file stress-ng.h.

◆ MIN_CLONES

#define MIN_CLONES   (1)

Definition at line 1509 of file stress-ng.h.

◆ MIN_COPY_FILE_BYTES

#define MIN_COPY_FILE_BYTES   (128 * MB)

Definition at line 1513 of file stress-ng.h.

◆ MIN_DCCP_PORT

#define MIN_DCCP_PORT   (1024)

Definition at line 1518 of file stress-ng.h.

◆ MIN_DENTRIES

#define MIN_DENTRIES   (1)

Definition at line 1522 of file stress-ng.h.

◆ MIN_DIR_DIRS

#define MIN_DIR_DIRS   (64)

Definition at line 1526 of file stress-ng.h.

◆ MIN_EPOLL_PORT

#define MIN_EPOLL_PORT   (1024)

Definition at line 1530 of file stress-ng.h.

◆ MIN_EXECS

#define MIN_EXECS   (1)

Definition at line 1566 of file stress-ng.h.

◆ MIN_FALLOCATE_BYTES

#define MIN_FALLOCATE_BYTES   (1 * MB)

Definition at line 1542 of file stress-ng.h.

◆ MIN_FIEMAP_SIZE

#define MIN_FIEMAP_SIZE   (1 * MB)

Definition at line 1546 of file stress-ng.h.

◆ MIN_FIFO_READERS

#define MIN_FIFO_READERS   (1)

Definition at line 1550 of file stress-ng.h.

◆ MIN_FORKS

#define MIN_FORKS   (1)

Definition at line 1570 of file stress-ng.h.

◆ MIN_HDD_BYTES

#define MIN_HDD_BYTES   (1 * MB)

Definition at line 1534 of file stress-ng.h.

◆ MIN_HDD_WRITE_SIZE

#define MIN_HDD_WRITE_SIZE   (1)

Definition at line 1538 of file stress-ng.h.

◆ MIN_HEAPSORT_SIZE

#define MIN_HEAPSORT_SIZE   (1 * KB)

Definition at line 1574 of file stress-ng.h.

◆ MIN_HSEARCH_SIZE

#define MIN_HSEARCH_SIZE   (1 * KB)

Definition at line 1590 of file stress-ng.h.

◆ MIN_IOMIX_BYTES

#define MIN_IOMIX_BYTES   (1 * MB)

Definition at line 1578 of file stress-ng.h.

◆ MIN_ITIMER_FREQ

#define MIN_ITIMER_FREQ   (1)

Definition at line 1554 of file stress-ng.h.

◆ MIN_JUDY_SIZE

#define MIN_JUDY_SIZE   (1 * KB)

Definition at line 1582 of file stress-ng.h.

◆ MIN_LEASE_BREAKERS

#define MIN_LEASE_BREAKERS   (1)

Definition at line 1594 of file stress-ng.h.

◆ MIN_LIST_SIZE

#define MIN_LIST_SIZE   (64)

Definition at line 1598 of file stress-ng.h.

◆ MIN_LSEARCH_SIZE

#define MIN_LSEARCH_SIZE   (1 * KB)

Definition at line 1602 of file stress-ng.h.

◆ MIN_MALLOC_BYTES

#define MIN_MALLOC_BYTES   (1 * KB)

Definition at line 1606 of file stress-ng.h.

◆ MIN_MALLOC_MAX

#define MIN_MALLOC_MAX   (32)

Definition at line 1610 of file stress-ng.h.

◆ MIN_MALLOC_THRESHOLD

#define MIN_MALLOC_THRESHOLD   (1)

Definition at line 1614 of file stress-ng.h.

◆ MIN_MATRIX3D_SIZE

#define MIN_MATRIX3D_SIZE   (16)

Definition at line 1622 of file stress-ng.h.

◆ MIN_MATRIX_SIZE

#define MIN_MATRIX_SIZE   (16)

Definition at line 1618 of file stress-ng.h.

◆ MIN_MEMFD_BYTES

#define MIN_MEMFD_BYTES   (2 * MB)

Definition at line 1626 of file stress-ng.h.

◆ MIN_MEMFD_FDS

#define MIN_MEMFD_FDS   (8)

Definition at line 1630 of file stress-ng.h.

◆ MIN_MEMRATE_BYTES

#define MIN_MEMRATE_BYTES   (4 * KB)

Definition at line 1642 of file stress-ng.h.

◆ MIN_MERGESORT_SIZE

#define MIN_MERGESORT_SIZE   (1 * KB)

Definition at line 1634 of file stress-ng.h.

◆ MIN_MMAP_BYTES

#define MIN_MMAP_BYTES   (4 * KB)

Definition at line 1638 of file stress-ng.h.

◆ MIN_MQ_SIZE

#define MIN_MQ_SIZE   (1)

Definition at line 1558 of file stress-ng.h.

◆ MIN_MREMAP_BYTES

#define MIN_MREMAP_BYTES   (4 * KB)

Definition at line 1647 of file stress-ng.h.

◆ MIN_MSYNC_BYTES

#define MIN_MSYNC_BYTES   (1 * MB) /* MUST NOT BE page size or less! */

Definition at line 1651 of file stress-ng.h.

◆ MIN_OPS

#define MIN_OPS   (1ULL)

Definition at line 1467 of file stress-ng.h.

◆ MIN_PTHREAD

#define MIN_PTHREAD   (1)

Definition at line 1655 of file stress-ng.h.

◆ MIN_PTYS

#define MIN_PTYS   (8)

Definition at line 1659 of file stress-ng.h.

◆ MIN_QSORT_SIZE

#define MIN_QSORT_SIZE   (1 * KB)

Definition at line 1663 of file stress-ng.h.

◆ MIN_RADIXSORT_SIZE

#define MIN_RADIXSORT_SIZE   (1 * KB)

Definition at line 1667 of file stress-ng.h.

◆ MIN_RAWPKT_PORT

#define MIN_RAWPKT_PORT   (1024)

Definition at line 1737 of file stress-ng.h.

◆ MIN_RAWUDP_PORT

#define MIN_RAWUDP_PORT   (1024)

Definition at line 1733 of file stress-ng.h.

◆ MIN_READAHEAD_BYTES

#define MIN_READAHEAD_BYTES   (1 * MB)

Definition at line 1671 of file stress-ng.h.

◆ MIN_REVIO_BYTES

#define MIN_REVIO_BYTES   (1 * MB)

Definition at line 1675 of file stress-ng.h.

◆ MIN_SCTP_PORT

#define MIN_SCTP_PORT   (1024)

Definition at line 1679 of file stress-ng.h.

◆ MIN_SEEK_SIZE

#define MIN_SEEK_SIZE   (1 * MB)

Definition at line 1687 of file stress-ng.h.

◆ MIN_SEMAPHORE_PROCS

#define MIN_SEMAPHORE_PROCS   (2)

Definition at line 1562 of file stress-ng.h.

◆ MIN_SENDFILE_SIZE

#define MIN_SENDFILE_SIZE   (1 * KB)

Definition at line 1683 of file stress-ng.h.

◆ MIN_SEQUENTIAL

#define MIN_SEQUENTIAL   (0)

Definition at line 1691 of file stress-ng.h.

◆ MIN_SHELLSORT_SIZE

#define MIN_SHELLSORT_SIZE   (1 * KB)

Definition at line 1696 of file stress-ng.h.

◆ MIN_SHM_POSIX_BYTES

#define MIN_SHM_POSIX_BYTES   (1 * MB)

Definition at line 1708 of file stress-ng.h.

◆ MIN_SHM_POSIX_OBJECTS

#define MIN_SHM_POSIX_OBJECTS   (1)

Definition at line 1712 of file stress-ng.h.

◆ MIN_SHM_SYSV_BYTES

#define MIN_SHM_SYSV_BYTES   (1 * MB)

Definition at line 1700 of file stress-ng.h.

◆ MIN_SHM_SYSV_SEGMENTS

#define MIN_SHM_SYSV_SEGMENTS   (1)

Definition at line 1704 of file stress-ng.h.

◆ MIN_SKIPLIST_SIZE

#define MIN_SKIPLIST_SIZE   (1 * KB)

Definition at line 1718 of file stress-ng.h.

◆ MIN_SLEEP

#define MIN_SLEEP   (1)

Definition at line 1722 of file stress-ng.h.

◆ MIN_SOCKET_FD_PORT

#define MIN_SOCKET_FD_PORT   (1024)

Definition at line 1741 of file stress-ng.h.

◆ MIN_SOCKET_PORT

#define MIN_SOCKET_PORT   (1024)

Definition at line 1726 of file stress-ng.h.

◆ MIN_SPLICE_BYTES

#define MIN_SPLICE_BYTES   (1 * KB)

Definition at line 1745 of file stress-ng.h.

◆ MIN_STREAM_L3_SIZE

#define MIN_STREAM_L3_SIZE   (4 * KB)

Definition at line 1749 of file stress-ng.h.

◆ MIN_SYNC_FILE_BYTES

#define MIN_SYNC_FILE_BYTES   (1 * MB)

Definition at line 1753 of file stress-ng.h.

◆ MIN_TIMER_FREQ

#define MIN_TIMER_FREQ   (1)

Definition at line 1757 of file stress-ng.h.

◆ MIN_TIMERFD_FREQ

#define MIN_TIMERFD_FREQ   (1)

Definition at line 1761 of file stress-ng.h.

◆ MIN_TREE_SIZE

#define MIN_TREE_SIZE   (1000)

Definition at line 1765 of file stress-ng.h.

◆ MIN_TSEARCH_SIZE

#define MIN_TSEARCH_SIZE   (1 * KB)

Definition at line 1769 of file stress-ng.h.

◆ MIN_UDP_PORT

#define MIN_UDP_PORT   (1024)

Definition at line 1773 of file stress-ng.h.

◆ MIN_USERFAULTFD_BYTES

#define MIN_USERFAULTFD_BYTES   (4 * KB)

Definition at line 1777 of file stress-ng.h.

◆ MIN_VFORKS

#define MIN_VFORKS   (1)

Definition at line 1586 of file stress-ng.h.

◆ MIN_VM_BYTES

#define MIN_VM_BYTES   (4 * KB)

Definition at line 1781 of file stress-ng.h.

◆ MIN_VM_HANG

#define MIN_VM_HANG   (0)

Definition at line 1785 of file stress-ng.h.

◆ MIN_VM_RW_BYTES

#define MIN_VM_RW_BYTES   (4 * KB)

Definition at line 1789 of file stress-ng.h.

◆ MIN_VM_SPLICE_BYTES

#define MIN_VM_SPLICE_BYTES   (4 * KB)

Definition at line 1793 of file stress-ng.h.

◆ MIN_ZOMBIES

#define MIN_ZOMBIES   (1)

Definition at line 1797 of file stress-ng.h.

◆ MLOCKED_TEXT

#define MLOCKED_TEXT

Definition at line 1335 of file stress-ng.h.

◆ NET_ADDR_ANY

#define NET_ADDR_ANY   (0)

Definition at line 4342 of file stress-ng.h.

◆ NET_ADDR_LOOPBACK

#define NET_ADDR_LOOPBACK   (1)

Definition at line 4343 of file stress-ng.h.

◆ NOCLOBBER

#define NOCLOBBER   static

Definition at line 888 of file stress-ng.h.

◆ NOINLINE

#define NOINLINE

Definition at line 1240 of file stress-ng.h.

◆ NORETURN

#define NORETURN

Definition at line 1214 of file stress-ng.h.

◆ OPT_FLAGS_ABORT

#define OPT_FLAGS_ABORT   STRESS_BIT_ULL(33) /* --abort */

Definition at line 948 of file stress-ng.h.

◆ OPT_FLAGS_AGGRESSIVE

#define OPT_FLAGS_AGGRESSIVE   STRESS_BIT_ULL(21) /* aggressive mode enabled */

Definition at line 936 of file stress-ng.h.

◆ OPT_FLAGS_AGGRESSIVE_MASK

#define OPT_FLAGS_AGGRESSIVE_MASK
Value:
OPT_FLAGS_MMAP_MINCORE | \
OPT_FLAGS_HDD_SYNC | \
OPT_FLAGS_HDD_DSYNC | \
OPT_FLAGS_HDD_DIRECT | \
OPT_FLAGS_AGGRESSIVE | \
OPT_FLAGS_IGNITE_CPU)
#define OPT_FLAGS_MMAP_MADVISE
Definition: stress-ng.h:926

Definition at line 962 of file stress-ng.h.

◆ OPT_FLAGS_ALL

#define OPT_FLAGS_ALL   STRESS_BIT_ULL(22) /* --all mode */

Definition at line 937 of file stress-ng.h.

◆ OPT_FLAGS_CPU_ONLINE_ALL

#define OPT_FLAGS_CPU_ONLINE_ALL   STRESS_BIT_ULL(34) /* --cpu-online-all */

Definition at line 949 of file stress-ng.h.

◆ OPT_FLAGS_DEADLINE_GRUB

#define OPT_FLAGS_DEADLINE_GRUB   STRESS_BIT_ULL(36) /* --sched-reclaim */

Definition at line 951 of file stress-ng.h.

◆ OPT_FLAGS_DRY_RUN

#define OPT_FLAGS_DRY_RUN   STRESS_BIT_ULL(4) /* Don't actually run */

Definition at line 919 of file stress-ng.h.

◆ OPT_FLAGS_FTRACE

#define OPT_FLAGS_FTRACE   STRESS_BIT_ULL(37) /* --ftrace */

Definition at line 952 of file stress-ng.h.

◆ OPT_FLAGS_HDD_DIRECT

#define OPT_FLAGS_HDD_DIRECT   STRESS_BIT_ULL(16) /* HDD O_DIRECT */

Definition at line 931 of file stress-ng.h.

◆ OPT_FLAGS_HDD_DSYNC

#define OPT_FLAGS_HDD_DSYNC   STRESS_BIT_ULL(15) /* HDD O_DYNC */

Definition at line 930 of file stress-ng.h.

◆ OPT_FLAGS_HDD_NOATIME

#define OPT_FLAGS_HDD_NOATIME   STRESS_BIT_ULL(17) /* HDD O_NOATIME */

Definition at line 932 of file stress-ng.h.

◆ OPT_FLAGS_HDD_SYNC

#define OPT_FLAGS_HDD_SYNC   STRESS_BIT_ULL(14) /* HDD O_SYNC */

Definition at line 929 of file stress-ng.h.

◆ OPT_FLAGS_IGNITE_CPU

#define OPT_FLAGS_IGNITE_CPU   STRESS_BIT_ULL(28) /* --cpu-ignite */

Definition at line 943 of file stress-ng.h.

◆ OPT_FLAGS_KEEP_NAME

#define OPT_FLAGS_KEEP_NAME   STRESS_BIT_ULL(8) /* Keep stress names to stress-ng */

Definition at line 923 of file stress-ng.h.

◆ OPT_FLAGS_LOG_BRIEF

#define OPT_FLAGS_LOG_BRIEF   STRESS_BIT_ULL(25) /* --log-brief */

Definition at line 940 of file stress-ng.h.

◆ OPT_FLAGS_MAXIMIZE

#define OPT_FLAGS_MAXIMIZE   STRESS_BIT_ULL(19) /* Maximize */

Definition at line 934 of file stress-ng.h.

◆ OPT_FLAGS_METRICS

#define OPT_FLAGS_METRICS   STRESS_BIT_ULL(5) /* Dump metrics at end */

Definition at line 920 of file stress-ng.h.

◆ OPT_FLAGS_METRICS_BRIEF

#define OPT_FLAGS_METRICS_BRIEF   STRESS_BIT_ULL(9) /* dump brief metrics */

Definition at line 924 of file stress-ng.h.

◆ OPT_FLAGS_MINIMIZE

#define OPT_FLAGS_MINIMIZE   STRESS_BIT_ULL(18) /* Minimize */

Definition at line 933 of file stress-ng.h.

◆ OPT_FLAGS_MINMAX_MASK

#define OPT_FLAGS_MINMAX_MASK    (OPT_FLAGS_MINIMIZE | OPT_FLAGS_MAXIMIZE)

Definition at line 958 of file stress-ng.h.

◆ OPT_FLAGS_MMAP_MADVISE

#define OPT_FLAGS_MMAP_MADVISE   STRESS_BIT_ULL(11) /* enable random madvise settings */

Definition at line 926 of file stress-ng.h.

◆ OPT_FLAGS_MMAP_MINCORE

#define OPT_FLAGS_MMAP_MINCORE   STRESS_BIT_ULL(12) /* mincore force pages into mem */

Definition at line 927 of file stress-ng.h.

◆ OPT_FLAGS_NO_OOM_ADJUST

#define OPT_FLAGS_NO_OOM_ADJUST   STRESS_BIT_ULL(41) /* --no-oom-adjust */

Definition at line 956 of file stress-ng.h.

◆ OPT_FLAGS_NO_RAND_SEED

#define OPT_FLAGS_NO_RAND_SEED   STRESS_BIT_ULL(30) /* --no-rand-seed */

Definition at line 945 of file stress-ng.h.

◆ OPT_FLAGS_OOMABLE

#define OPT_FLAGS_OOMABLE   STRESS_BIT_ULL(32) /* --oomable */

Definition at line 947 of file stress-ng.h.

◆ OPT_FLAGS_PATHOLOGICAL

#define OPT_FLAGS_PATHOLOGICAL   STRESS_BIT_ULL(29) /* --pathological */

Definition at line 944 of file stress-ng.h.

◆ OPT_FLAGS_PERF_STATS

#define OPT_FLAGS_PERF_STATS   STRESS_BIT_ULL(24) /* --perf stats mode */

Definition at line 939 of file stress-ng.h.

◆ OPT_FLAGS_RANDOM

#define OPT_FLAGS_RANDOM   STRESS_BIT_ULL(6) /* Randomize */

Definition at line 921 of file stress-ng.h.

◆ OPT_FLAGS_SEED

#define OPT_FLAGS_SEED   STRESS_BIT_ULL(38) /* --seed */

Definition at line 953 of file stress-ng.h.

◆ OPT_FLAGS_SEQUENTIAL

#define OPT_FLAGS_SEQUENTIAL   STRESS_BIT_ULL(23) /* --sequential mode */

Definition at line 938 of file stress-ng.h.

◆ OPT_FLAGS_SET

#define OPT_FLAGS_SET   STRESS_BIT_ULL(7) /* Set if user specifies stress procs */

Definition at line 922 of file stress-ng.h.

◆ OPT_FLAGS_SKIP_SILENT

#define OPT_FLAGS_SKIP_SILENT   STRESS_BIT_ULL(39) /* --skip-silent */

Definition at line 954 of file stress-ng.h.

◆ OPT_FLAGS_SMART

#define OPT_FLAGS_SMART   STRESS_BIT_ULL(40) /* --smart */

Definition at line 955 of file stress-ng.h.

◆ OPT_FLAGS_SOCKET_NODELAY

#define OPT_FLAGS_SOCKET_NODELAY   STRESS_BIT_ULL(27) /* --sock-nodelay */

Definition at line 942 of file stress-ng.h.

◆ OPT_FLAGS_SYSLOG

#define OPT_FLAGS_SYSLOG   STRESS_BIT_ULL(20) /* log test progress to syslog */

Definition at line 935 of file stress-ng.h.

◆ OPT_FLAGS_THERMAL_ZONES

#define OPT_FLAGS_THERMAL_ZONES   STRESS_BIT_ULL(26) /* --tz thermal zones */

Definition at line 941 of file stress-ng.h.

◆ OPT_FLAGS_THRASH

#define OPT_FLAGS_THRASH   STRESS_BIT_ULL(31) /* --thrash */

Definition at line 946 of file stress-ng.h.

◆ OPT_FLAGS_TIMES

#define OPT_FLAGS_TIMES   STRESS_BIT_ULL(13) /* user/system time summary */

Definition at line 928 of file stress-ng.h.

◆ OPT_FLAGS_TIMESTAMP

#define OPT_FLAGS_TIMESTAMP   STRESS_BIT_ULL(35) /* --timestamp */

Definition at line 950 of file stress-ng.h.

◆ OPT_FLAGS_VERIFY

#define OPT_FLAGS_VERIFY   STRESS_BIT_ULL(10) /* verify mode */

Definition at line 925 of file stress-ng.h.

◆ OPTIMIZE0

#define OPTIMIZE0

Definition at line 1267 of file stress-ng.h.

◆ OPTIMIZE1

#define OPTIMIZE1

Definition at line 1258 of file stress-ng.h.

◆ OPTIMIZE3

#define OPTIMIZE3

Definition at line 1249 of file stress-ng.h.

◆ P_PIDFD

#define P_PIDFD   (3)

Definition at line 4522 of file stress-ng.h.

◆ PAGE_4K

#define PAGE_4K   (1 << PAGE_4K_SHIFT)

Definition at line 1463 of file stress-ng.h.

◆ PAGE_4K_SHIFT

#define PAGE_4K_SHIFT   (12)

Definition at line 1462 of file stress-ng.h.

◆ PAGE_MAPPED

#define PAGE_MAPPED   (0x01)

Definition at line 1812 of file stress-ng.h.

◆ PAGE_MAPPED_FAIL

#define PAGE_MAPPED_FAIL   (0x02)

Definition at line 1813 of file stress-ng.h.

◆ PATH_MAX

#define PATH_MAX   (4096)

Definition at line 882 of file stress-ng.h.

◆ PB

#define PB   (1ULL << 50)

Definition at line 1459 of file stress-ng.h.

◆ PR_ALL

#define PR_ALL   (PR_ERROR | PR_INFO | PR_DEBUG | PR_FAIL)

Definition at line 916 of file stress-ng.h.

◆ pr_dbg_v

#define pr_dbg_v (   fmt,
  ... 
)

Definition at line 1439 of file stress-ng.h.

◆ PR_DEBUG

#define PR_DEBUG   STRESS_BIT_ULL(2) /* Print debug */

Definition at line 914 of file stress-ng.h.

◆ PR_ERROR

#define PR_ERROR   STRESS_BIT_ULL(0) /* Print errors */

Definition at line 912 of file stress-ng.h.

◆ PR_FAIL

#define PR_FAIL   STRESS_BIT_ULL(3) /* Print test failure message */

Definition at line 915 of file stress-ng.h.

◆ PR_INFO

#define PR_INFO   STRESS_BIT_ULL(1) /* Print info */

Definition at line 913 of file stress-ng.h.

◆ PRIME_64

#define PRIME_64   (0x8f0000000017116dULL)

Definition at line 1086 of file stress-ng.h.

◆ RESTRICT

#define RESTRICT

Definition at line 1350 of file stress-ng.h.

◆ SCHED_FLAG_DL_OVERRUN

#define SCHED_FLAG_DL_OVERRUN   (0x04)

Definition at line 87 of file stress-ng.h.

◆ SCHED_FLAG_RECLAIM

#define SCHED_FLAG_RECLAIM   (0x02)

Definition at line 83 of file stress-ng.h.

◆ SCHED_FLAG_RESET_ON_FORK

#define SCHED_FLAG_RESET_ON_FORK   (0x01)

Definition at line 76 of file stress-ng.h.

◆ SECTION

#define SECTION (   s)

Definition at line 1308 of file stress-ng.h.

◆ shim_builtin_memmove

#define shim_builtin_memmove   memmove

Definition at line 1378 of file stress-ng.h.

◆ SHIM_CAP_AUDIT_CONTROL

#define SHIM_CAP_AUDIT_CONTROL   SHIM_CAP_IS_ROOT

Definition at line 2259 of file stress-ng.h.

◆ SHIM_CAP_AUDIT_READ

#define SHIM_CAP_AUDIT_READ   SHIM_CAP_IS_ROOT

Definition at line 2301 of file stress-ng.h.

◆ SHIM_CAP_AUDIT_WRITE

#define SHIM_CAP_AUDIT_WRITE   SHIM_CAP_IS_ROOT

Definition at line 2253 of file stress-ng.h.

◆ SHIM_CAP_BLOCK_SUSPEND

#define SHIM_CAP_BLOCK_SUSPEND   SHIM_CAP_IS_ROOT

Definition at line 2295 of file stress-ng.h.

◆ SHIM_CAP_BPF

#define SHIM_CAP_BPF   SHIM_CAP_IS_ROOT

Definition at line 2313 of file stress-ng.h.

◆ SHIM_CAP_CHOWN

#define SHIM_CAP_CHOWN   SHIM_CAP_IS_ROOT

Definition at line 2078 of file stress-ng.h.

◆ SHIM_CAP_DAC_OVERRIDE

#define SHIM_CAP_DAC_OVERRIDE   SHIM_CAP_IS_ROOT

Definition at line 2084 of file stress-ng.h.

◆ SHIM_CAP_DAC_READ_SEARCH

#define SHIM_CAP_DAC_READ_SEARCH   SHIM_CAP_IS_ROOT

Definition at line 2090 of file stress-ng.h.

◆ SHIM_CAP_FOWNER

#define SHIM_CAP_FOWNER   SHIM_CAP_IS_ROOT

Definition at line 2096 of file stress-ng.h.

◆ SHIM_CAP_FSETID

#define SHIM_CAP_FSETID   SHIM_CAP_IS_ROOT

Definition at line 2102 of file stress-ng.h.

◆ SHIM_CAP_IPC_LOCK

#define SHIM_CAP_IPC_LOCK   SHIM_CAP_IS_ROOT

Definition at line 2163 of file stress-ng.h.

◆ SHIM_CAP_IPC_OWNER

#define SHIM_CAP_IPC_OWNER   SHIM_CAP_IS_ROOT

Definition at line 2169 of file stress-ng.h.

◆ SHIM_CAP_IS_ROOT

#define SHIM_CAP_IS_ROOT   (-1)

Definition at line 2072 of file stress-ng.h.

◆ SHIM_CAP_KILL

#define SHIM_CAP_KILL   SHIM_CAP_IS_ROOT

Definition at line 2108 of file stress-ng.h.

◆ SHIM_CAP_LEASE

#define SHIM_CAP_LEASE   SHIM_CAP_IS_ROOT

Definition at line 2247 of file stress-ng.h.

◆ SHIM_CAP_LINUX_IMMUTABLE

#define SHIM_CAP_LINUX_IMMUTABLE   SHIM_CAP_IS_ROOT

Definition at line 2133 of file stress-ng.h.

◆ SHIM_CAP_MAC_ADMIN

#define SHIM_CAP_MAC_ADMIN   SHIM_CAP_IS_ROOT

Definition at line 2277 of file stress-ng.h.

◆ SHIM_CAP_MAC_OVERRIDE

#define SHIM_CAP_MAC_OVERRIDE   SHIM_CAP_IS_ROOT

Definition at line 2271 of file stress-ng.h.

◆ SHIM_CAP_MKNOD

#define SHIM_CAP_MKNOD   SHIM_CAP_IS_ROOT

Definition at line 2241 of file stress-ng.h.

◆ SHIM_CAP_NET_ADMIN

#define SHIM_CAP_NET_ADMIN   SHIM_CAP_IS_ROOT

Definition at line 2151 of file stress-ng.h.

◆ SHIM_CAP_NET_BIND_SERVICE

#define SHIM_CAP_NET_BIND_SERVICE   SHIM_CAP_IS_ROOT

Definition at line 2139 of file stress-ng.h.

◆ SHIM_CAP_NET_BROADCAST

#define SHIM_CAP_NET_BROADCAST   SHIM_CAP_IS_ROOT

Definition at line 2145 of file stress-ng.h.

◆ SHIM_CAP_NET_RAW

#define SHIM_CAP_NET_RAW   SHIM_CAP_IS_ROOT

Definition at line 2157 of file stress-ng.h.

◆ SHIM_CAP_PERFMON

#define SHIM_CAP_PERFMON   SHIM_CAP_IS_ROOT

Definition at line 2307 of file stress-ng.h.

◆ SHIM_CAP_SETFCAP

#define SHIM_CAP_SETFCAP   SHIM_CAP_IS_ROOT

Definition at line 2265 of file stress-ng.h.

◆ SHIM_CAP_SETGID

#define SHIM_CAP_SETGID   SHIM_CAP_IS_ROOT

Definition at line 2114 of file stress-ng.h.

◆ SHIM_CAP_SETPCAP

#define SHIM_CAP_SETPCAP   SHIM_CAP_IS_ROOT

Definition at line 2127 of file stress-ng.h.

◆ SHIM_CAP_SETUID

#define SHIM_CAP_SETUID   SHIM_CAP_IS_ROOT

Definition at line 2120 of file stress-ng.h.

◆ SHIM_CAP_SYS_ADMIN

#define SHIM_CAP_SYS_ADMIN   SHIM_CAP_IS_ROOT

Definition at line 2205 of file stress-ng.h.

◆ SHIM_CAP_SYS_BOOT

#define SHIM_CAP_SYS_BOOT   SHIM_CAP_IS_ROOT

Definition at line 2211 of file stress-ng.h.

◆ SHIM_CAP_SYS_CHROOT

#define SHIM_CAP_SYS_CHROOT   SHIM_CAP_IS_ROOT

Definition at line 2187 of file stress-ng.h.

◆ SHIM_CAP_SYS_MODULE

#define SHIM_CAP_SYS_MODULE   SHIM_CAP_IS_ROOT

Definition at line 2175 of file stress-ng.h.

◆ SHIM_CAP_SYS_NICE

#define SHIM_CAP_SYS_NICE   SHIM_CAP_IS_ROOT

Definition at line 2217 of file stress-ng.h.

◆ SHIM_CAP_SYS_PACCT

#define SHIM_CAP_SYS_PACCT   SHIM_CAP_IS_ROOT

Definition at line 2199 of file stress-ng.h.

◆ SHIM_CAP_SYS_PTRACE

#define SHIM_CAP_SYS_PTRACE   SHIM_CAP_IS_ROOT

Definition at line 2193 of file stress-ng.h.

◆ SHIM_CAP_SYS_RAWIO

#define SHIM_CAP_SYS_RAWIO   SHIM_CAP_IS_ROOT

Definition at line 2181 of file stress-ng.h.

◆ SHIM_CAP_SYS_RESOURCE

#define SHIM_CAP_SYS_RESOURCE   SHIM_CAP_IS_ROOT

Definition at line 2223 of file stress-ng.h.

◆ SHIM_CAP_SYS_TIME

#define SHIM_CAP_SYS_TIME   SHIM_CAP_IS_ROOT

Definition at line 2229 of file stress-ng.h.

◆ SHIM_CAP_SYS_TTY_CONFIG

#define SHIM_CAP_SYS_TTY_CONFIG   SHIM_CAP_IS_ROOT

Definition at line 2235 of file stress-ng.h.

◆ SHIM_CAP_SYSLOG

#define SHIM_CAP_SYSLOG   SHIM_CAP_IS_ROOT

Definition at line 2283 of file stress-ng.h.

◆ SHIM_CAP_WAKE_ALARM

#define SHIM_CAP_WAKE_ALARM   SHIM_CAP_IS_ROOT

Definition at line 2289 of file stress-ng.h.

◆ shim_clflush

#define shim_clflush (   ptr)    do { } while (0) /* No-op */

Definition at line 4049 of file stress-ng.h.

◆ shim_closelog

#define shim_closelog ( )

Definition at line 1451 of file stress-ng.h.

◆ SHIM_DCACHE

#define SHIM_DCACHE   (1 << 1)

Definition at line 827 of file stress-ng.h.

◆ SHIM_ICACHE

#define SHIM_ICACHE   (1 << 0)

Definition at line 821 of file stress-ng.h.

◆ shim_openlog

#define shim_openlog (   ident,
  option,
  facility 
)

Definition at line 1450 of file stress-ng.h.

◆ SHIM_STATX_ALL

#define SHIM_STATX_ALL   (0x00000fffU)

Definition at line 4475 of file stress-ng.h.

◆ SHIM_STATX_ATIME

#define SHIM_STATX_ATIME   (0x00000020U)

Definition at line 4467 of file stress-ng.h.

◆ SHIM_STATX_BASIC_STATS

#define SHIM_STATX_BASIC_STATS   (0x000007ffU)

Definition at line 4473 of file stress-ng.h.

◆ SHIM_STATX_BLOCKS

#define SHIM_STATX_BLOCKS   (0x00000400U)

Definition at line 4472 of file stress-ng.h.

◆ SHIM_STATX_BTIME

#define SHIM_STATX_BTIME   (0x00000800U)

Definition at line 4474 of file stress-ng.h.

◆ SHIM_STATX_CTIME

#define SHIM_STATX_CTIME   (0x00000080U)

Definition at line 4469 of file stress-ng.h.

◆ SHIM_STATX_GID

#define SHIM_STATX_GID   (0x00000010U)

Definition at line 4466 of file stress-ng.h.

◆ SHIM_STATX_INO

#define SHIM_STATX_INO   (0x00000100U)

Definition at line 4470 of file stress-ng.h.

◆ SHIM_STATX_MODE

#define SHIM_STATX_MODE   (0x00000002U)

Definition at line 4463 of file stress-ng.h.

◆ SHIM_STATX_MTIME

#define SHIM_STATX_MTIME   (0x00000040U)

Definition at line 4468 of file stress-ng.h.

◆ SHIM_STATX_NLINK

#define SHIM_STATX_NLINK   (0x00000004U)

Definition at line 4464 of file stress-ng.h.

◆ SHIM_STATX_SIZE

#define SHIM_STATX_SIZE   (0x00000200U)

Definition at line 4471 of file stress-ng.h.

◆ SHIM_STATX_TYPE

#define SHIM_STATX_TYPE   (0x00000001U)

Definition at line 4462 of file stress-ng.h.

◆ SHIM_STATX_UID

#define SHIM_STATX_UID   (0x00000008U)

Definition at line 4465 of file stress-ng.h.

◆ shim_syslog

#define shim_syslog (   priority,
  format,
  ... 
)

Definition at line 1449 of file stress-ng.h.

◆ shim_unconstify_ptr

#define shim_unconstify_ptr (   ptr)    (ptr)

Definition at line 4555 of file stress-ng.h.

◆ SIZEOF_ARRAY

#define SIZEOF_ARRAY (   a)    (sizeof(a) / sizeof(a[0]))

Definition at line 1835 of file stress-ng.h.

◆ SOCKET_BUF

#define SOCKET_BUF   (8192) /* Socket I/O buffer size */

Definition at line 905 of file stress-ng.h.

◆ SOCKET_PAIR_BUF

#define SOCKET_PAIR_BUF   (64) /* Socket pair I/O buffer size */

Definition at line 907 of file stress-ng.h.

◆ STACK_ALIGNMENT

#define STACK_ALIGNMENT   (64) /* thread stacks align to 64 bytes */

Definition at line 1465 of file stress-ng.h.

◆ STR_SHARED_SIZE

#define STR_SHARED_SIZE   (65536 * 32)

Definition at line 1807 of file stress-ng.h.

◆ STRESS_ASSERT

#define STRESS_ASSERT (   expr)
Value:
enum { STRESS_CONCAT_EXPAND(STRESS_ASSERT_AT_LINE_, __LINE__) = \
1 / !!(expr) };
#define STRESS_CONCAT_EXPAND(a, b)
Definition: stress-ng.h:866

Definition at line 867 of file stress-ng.h.

◆ STRESS_BIT_U

#define STRESS_BIT_U (   shift)    (1U << shift)

Definition at line 811 of file stress-ng.h.

◆ STRESS_BIT_UL

#define STRESS_BIT_UL (   shift)    (1UL << shift)

Definition at line 812 of file stress-ng.h.

◆ STRESS_BIT_ULL

#define STRESS_BIT_ULL (   shift)    (1ULL << shift)

Definition at line 813 of file stress-ng.h.

◆ STRESS_CLRBIT

#define STRESS_CLRBIT (   a,
 
)
Value:
(a[i / STRESS_NBITS(a)] &= \
~(TYPEOF_CAST(a[0])1 << (i & (STRESS_NBITS(a)-1))))
#define STRESS_NBITS(a)
Definition: stress-ng.h:1822
#define TYPEOF_CAST(a)
Definition: stress-ng.h:1818

Definition at line 1825 of file stress-ng.h.

◆ STRESS_CONCAT

#define STRESS_CONCAT (   a,
 
)    a ## b

Definition at line 865 of file stress-ng.h.

◆ STRESS_CONCAT_EXPAND

#define STRESS_CONCAT_EXPAND (   a,
 
)    STRESS_CONCAT(a, b)

Definition at line 866 of file stress-ng.h.

◆ STRESS_FD_MAX

#define STRESS_FD_MAX   (65536) /* Max fds if we can't figure it out */

Definition at line 901 of file stress-ng.h.

◆ STRESS_GETBIT

#define STRESS_GETBIT (   a,
 
)
Value:
(a[i / STRESS_NBITS(a)] & \
(TYPEOF_CAST(a[0])1 << (i & (STRESS_NBITS(a)-1))))

Definition at line 1823 of file stress-ng.h.

◆ STRESS_MAXIMUM

#define STRESS_MAXIMUM (   a,
 
)    (((a) > (b)) ? (a) : (b))

Definition at line 872 of file stress-ng.h.

◆ STRESS_MICROSECOND

#define STRESS_MICROSECOND   (1000000L)

Definition at line 858 of file stress-ng.h.

◆ STRESS_MILLISECOND

#define STRESS_MILLISECOND   (1000L)

Definition at line 859 of file stress-ng.h.

◆ STRESS_MINIMUM

#define STRESS_MINIMUM (   a,
 
)    (((a) < (b)) ? (a) : (b))

Definition at line 871 of file stress-ng.h.

◆ STRESS_MINSIGSTKSZ

#define STRESS_MINSIGSTKSZ   (stress_min_sig_stack_size())

Definition at line 4157 of file stress-ng.h.

◆ STRESS_MISC_STATS_MAX

#define STRESS_MISC_STATS_MAX   (10)

Definition at line 1096 of file stress-ng.h.

◆ STRESS_MWC_SEED

#define STRESS_MWC_SEED ( )    stress_mwc_seed(STRESS_MWC_SEED_W, STRESS_MWC_SEED_Z)

Definition at line 1833 of file stress-ng.h.

◆ STRESS_MWC_SEED_W

#define STRESS_MWC_SEED_W   (521288629UL)

Definition at line 1832 of file stress-ng.h.

◆ STRESS_MWC_SEED_Z

#define STRESS_MWC_SEED_Z   (362436069UL)

Definition at line 1831 of file stress-ng.h.

◆ STRESS_NANOSECOND

#define STRESS_NANOSECOND   (1000000000L)

Definition at line 857 of file stress-ng.h.

◆ STRESS_NBITS

#define STRESS_NBITS (   a)    (sizeof(a[0]) * 8)

Definition at line 1822 of file stress-ng.h.

◆ STRESS_OOMABLE_DROP_CAP

#define STRESS_OOMABLE_DROP_CAP   (0x00000001) /* Drop capabilities */

Definition at line 4102 of file stress-ng.h.

◆ STRESS_OOMABLE_NORMAL

#define STRESS_OOMABLE_NORMAL   (0x00000000) /* Normal oomability */

Definition at line 4101 of file stress-ng.h.

◆ STRESS_OOMABLE_QUIET

#define STRESS_OOMABLE_QUIET   (0x00000002) /* Don't report activity */

Definition at line 4103 of file stress-ng.h.

◆ STRESS_PAGE_IN

#define STRESS_PAGE_IN

Definition at line 891 of file stress-ng.h.

◆ STRESS_PRAGMA_POP

#define STRESS_PRAGMA_POP

Definition at line 1406 of file stress-ng.h.

◆ STRESS_PRAGMA_PUSH

#define STRESS_PRAGMA_PUSH

Definition at line 1405 of file stress-ng.h.

◆ STRESS_PRAGMA_WARN_OFF

#define STRESS_PRAGMA_WARN_OFF

Definition at line 1407 of file stress-ng.h.

◆ STRESS_PROCS_MAX

#define STRESS_PROCS_MAX   (8192) /* Max number of processes per stressor */

Definition at line 902 of file stress-ng.h.

◆ STRESS_SETBIT

#define STRESS_SETBIT (   a,
 
)
Value:
(a[i / STRESS_NBITS(a)] |= \
(TYPEOF_CAST(a[0])1 << (i & (STRESS_NBITS(a)-1))))

Definition at line 1827 of file stress-ng.h.

◆ STRESS_SIGSTKSZ

#define STRESS_SIGSTKSZ   (stress_sig_stack_size())

Definition at line 4156 of file stress-ng.h.

◆ STRESS_STATE_DEINIT

#define STRESS_STATE_DEINIT   (3)

Definition at line 849 of file stress-ng.h.

◆ STRESS_STATE_EXIT

#define STRESS_STATE_EXIT   (5)

Definition at line 851 of file stress-ng.h.

◆ STRESS_STATE_INIT

#define STRESS_STATE_INIT   (1)

Definition at line 847 of file stress-ng.h.

◆ STRESS_STATE_RUN

#define STRESS_STATE_RUN   (2)

Definition at line 848 of file stress-ng.h.

◆ STRESS_STATE_START

#define STRESS_STATE_START   (0)

Definition at line 846 of file stress-ng.h.

◆ STRESS_STATE_STOP

#define STRESS_STATE_STOP   (4)

Definition at line 850 of file stress-ng.h.

◆ STRESS_STATE_WAIT

#define STRESS_STATE_WAIT   (6)

Definition at line 852 of file stress-ng.h.

◆ STRESS_THERMAL_ZONES

#define STRESS_THERMAL_ZONES   (1)

Definition at line 2348 of file stress-ng.h.

◆ STRESS_THERMAL_ZONES_MAX

#define STRESS_THERMAL_ZONES_MAX   (31) /* best if prime */

Definition at line 2349 of file stress-ng.h.

◆ STRESS_TRY_AGAIN

#define STRESS_TRY_AGAIN   (5) /* Device busy, try again */

Definition at line 899 of file stress-ng.h.

◆ STRESS_TRY_OPEN_EXIT_FAIL

#define STRESS_TRY_OPEN_EXIT_FAIL   (3) /* Can't get _exit() status */

Definition at line 897 of file stress-ng.h.

◆ STRESS_TRY_OPEN_FAIL

#define STRESS_TRY_OPEN_FAIL   (4) /* Can't open file */

Definition at line 898 of file stress-ng.h.

◆ STRESS_TRY_OPEN_FORK_FAIL

#define STRESS_TRY_OPEN_FORK_FAIL   (1) /* Try failed, e.g. can't fork */

Definition at line 895 of file stress-ng.h.

◆ STRESS_TRY_OPEN_OK

#define STRESS_TRY_OPEN_OK   (0) /* File can be opened */

Definition at line 894 of file stress-ng.h.

◆ STRESS_TRY_OPEN_WAIT_FAIL

#define STRESS_TRY_OPEN_WAIT_FAIL   (2) /* Wait on child open failed */

Definition at line 896 of file stress-ng.h.

◆ STRESS_WARN_HASH_MAX

#define STRESS_WARN_HASH_MAX   (128)

Definition at line 2388 of file stress-ng.h.

◆ stress_warn_once

#define stress_warn_once ( )    stress_warn_once_hash(__FILE__, __LINE__)

Definition at line 4312 of file stress-ng.h.

◆ STRESSOR_DECL

#define STRESSOR_DECL (   name)     extern stressor_info_t stress_ ## name ## _info;

Definition at line 2725 of file stress-ng.h.

◆ STRESSOR_ENUM

#define STRESSOR_ENUM (   name)     STRESS_ ## name,

Definition at line 2719 of file stress-ng.h.

◆ STRESSORS

#define STRESSORS (   MACRO)

Definition at line 2449 of file stress-ng.h.

◆ TARGET_CLONES

#define TARGET_CLONES

Definition at line 1962 of file stress-ng.h.

◆ TB

#define TB   (1ULL << 40)

Definition at line 1458 of file stress-ng.h.

◆ TIMEOUT_NOT_SET

#define TIMEOUT_NOT_SET   (~0ULL)

Definition at line 1801 of file stress-ng.h.

◆ TYPEOF_CAST

#define TYPEOF_CAST (   a)

Definition at line 1818 of file stress-ng.h.

◆ UDP_BUF

#define UDP_BUF   (1024) /* UDP I/O buffer size */

Definition at line 906 of file stress-ng.h.

◆ UNDEFINED

#define UNDEFINED   (-1)

Definition at line 1810 of file stress-ng.h.

◆ UNLIKELY

#define UNLIKELY (   x)    (x)

Definition at line 1359 of file stress-ng.h.

◆ WARN_UNUSED

#define WARN_UNUSED

Definition at line 1275 of file stress-ng.h.

◆ WEAK

#define WEAK

Definition at line 1223 of file stress-ng.h.

Typedef Documentation

◆ __kernel_long_t

typedef long int __kernel_long_t

Definition at line 805 of file stress-ng.h.

◆ __kernel_ulong_t

typedef unsigned long int __kernel_ulong_t

Definition at line 808 of file stress-ng.h.

◆ shim_loff_t

typedef long shim_loff_t

Definition at line 4379 of file stress-ng.h.

◆ shim_off64_t

typedef uint64_t shim_off64_t

Definition at line 4385 of file stress-ng.h.

◆ stress_cache_type_t

◆ stress_class_t

typedef uint32_t stress_class_t

Definition at line 1088 of file stress-ng.h.

◆ stress_cpu_cache_t

◆ stress_cpu_t

typedef struct stress_cpu stress_cpu_t

◆ stress_cpus_t

typedef struct stress_cpus stress_cpus_t

◆ stress_func_t

typedef int(* stress_func_t) (const stress_args_t *args)

Definition at line 2318 of file stress-ng.h.

◆ stress_hash_t

typedef struct stress_hash stress_hash_t

◆ stress_oomable_child_func_t

typedef int stress_oomable_child_func_t(const stress_args_t *args, void *context)

Definition at line 4099 of file stress-ng.h.

◆ stress_pstressor_info_t

Definition at line 1018 of file stress-ng.h.

◆ stress_setting_t

◆ stress_stressor_t

◆ stress_tz_info_t

Enumeration Type Documentation

◆ shim_pid_type

Enumerator
SHIM_PIDTYPE_PID 
SHIM_PIDTYPE_TGID 
SHIM_PIDTYPE_PGID 
SHIM_PIDTYPE_SID 
SHIM_PIDTYPE_MAX 

Definition at line 4534 of file stress-ng.h.

◆ stress_cache_type

Enumerator
CACHE_TYPE_UNKNOWN 
CACHE_TYPE_DATA 
CACHE_TYPE_INSTRUCTION 
CACHE_TYPE_UNIFIED 

Definition at line 3857 of file stress-ng.h.

◆ stress_id_t

Enumerator
STRESS_START 
STRESS_access 
STRESS_af_alg 
STRESS_affinity 
STRESS_aio 
STRESS_aiol 
STRESS_apparmor 
STRESS_alarm 
STRESS_atomic 
STRESS_bad_altstack 
STRESS_bad_ioctl 
STRESS_bigheap 
STRESS_bind_mount 
STRESS_binderfs 
STRESS_branch 
STRESS_brk 
STRESS_bsearch 
STRESS_cache 
STRESS_cap 
STRESS_chattr 
STRESS_chdir 
STRESS_chmod 
STRESS_chown 
STRESS_chroot 
STRESS_clock 
STRESS_clone 
STRESS_close 
STRESS_context 
STRESS_copy_file 
STRESS_cpu 
STRESS_cpu_online 
STRESS_crypt 
STRESS_cyclic 
STRESS_daemon 
STRESS_dccp 
STRESS_dentry 
STRESS_dev 
STRESS_dev_shm 
STRESS_dir 
STRESS_dirdeep 
STRESS_dirmany 
STRESS_dnotify 
STRESS_dup 
STRESS_dynlib 
STRESS_efivar 
STRESS_enosys 
STRESS_env 
STRESS_epoll 
STRESS_eventfd 
STRESS_exec 
STRESS_exit_group 
STRESS_fallocate 
STRESS_fanotify 
STRESS_fault 
STRESS_fcntl 
STRESS_fiemap 
STRESS_fifo 
STRESS_file_ioctl 
STRESS_filename 
STRESS_flock 
STRESS_fork 
STRESS_fp_error 
STRESS_fpunch 
STRESS_fstat 
STRESS_full 
STRESS_funccall 
STRESS_funcret 
STRESS_futex 
STRESS_get 
STRESS_getdent 
STRESS_getrandom 
STRESS_handle 
STRESS_hdd 
STRESS_heapsort 
STRESS_hrtimers 
STRESS_hsearch 
STRESS_icache 
STRESS_icmp_flood 
STRESS_idle_page 
STRESS_inode_flags 
STRESS_inotify 
STRESS_io 
STRESS_iomix 
STRESS_ioport 
STRESS_ioprio 
STRESS_io_uring 
STRESS_ipsec_mb 
STRESS_itimer 
STRESS_judy 
STRESS_kcmp 
STRESS_key 
STRESS_kill 
STRESS_klog 
STRESS_l1cache 
STRESS_landlock 
STRESS_lease 
STRESS_link 
STRESS_list 
STRESS_loadavg 
STRESS_locka 
STRESS_lockbus 
STRESS_lockf 
STRESS_lockofd 
STRESS_longjmp 
STRESS_loop 
STRESS_lsearch 
STRESS_madvise 
STRESS_malloc 
STRESS_matrix 
STRESS_matrix_3d 
STRESS_mcontend