| 1 | // SPDX-License-Identifier: GPL-2.0-or-latercxx . . $ `<file>/src/include/pip_stress.h`/ |
| 2 | #ifndef __PIP_STRESS_H |
| 3 | #define __PIP_STRESS_Hcxx . . $ `src/include/pip_stress.h:3:9`! |
| 4 | |
| 5 | #include <stdio.h> |
| 6 | #include <stdlib.h> |
| 7 | #include <unistd.h> |
| 8 | #include <errno.h> |
| 9 | #include <sys/mman.h> |
| 10 | #include <string.h> |
| 11 | #include <stdarg.h> |
| 12 | #include <pthread.h> |
| 13 | #include <sys/types.h> |
| 14 | #include <sys/wait.h> |
| 15 | #include <signal.h> |
| 16 | #include <sched.h> |
| 17 | |
| 18 | #include "rt-utils.h"cxx . . $ `<file>/src/include/rt-utils.h`/ |
| 19 | #include "rt-error.h"cxx . . $ `<file>/src/include/rt-error.h`/ |
| 20 | |
| 21 | void lowcxx . . $ low(d4f767463ce0a6b3).(pid_tcxx . . $ pid_t# pid); /* low priority process */ |
| 22 | void mediumcxx . . $ medium(49f6e7a06ebc5aa8).(void); /* medium priority process */ |
| 23 | void highcxx . . $ high(d4f767463ce0a6b3).(pid_tcxx . . $ pid_t# pid); /* high priority process */ |
| 24 | void init_statecxx . . $ init_state(49f6e7a06ebc5aa8).(void); |
| 25 | |
| 26 | void *mmap_pagecxx . . $ mmap_page(50c7df7de5344ebb).(void); |
| 27 | long process_shared_mutex_availablecxx . . $ process_shared_mutex_available(da6335ded91d79c2).(void); |
| 28 | void Pthread_mutexattr_initcxx . . $ Pthread_mutexattr_init(8897c885d8ee1039).(pthread_mutexattr_tcxx . . $ pthread_mutexattr_t# *attr); |
| 29 | void Pthread_mutexattr_setpsharedcxx . . $ Pthread_mutexattr_setpshared(9eb95a6600ee7d50).(pthread_mutexattr_tcxx . . $ pthread_mutexattr_t# *attr, int pshared); |
| 30 | void Pthread_mutexattr_setprotocolcxx . . $ Pthread_mutexattr_setprotocol(9eb95a6600ee7d50).(pthread_mutexattr_tcxx . . $ pthread_mutexattr_t# *attr, int protocol); |
| 31 | void Pthread_mutex_initcxx . . $ Pthread_mutex_init(c71919e603de4103).(pthread_mutex_tcxx . . $ pthread_mutex_t# *mutex, pthread_mutexattr_tcxx . . $ pthread_mutexattr_t# *attr); |
| 32 | void Pthread_mutex_lockcxx . . $ Pthread_mutex_lock(4f83bfebf4bb9c8b).(pthread_mutex_tcxx . . $ pthread_mutex_t# *mutex); |
| 33 | void Pthread_mutex_unlockcxx . . $ Pthread_mutex_unlock(4f83bfebf4bb9c8b).(pthread_mutex_tcxx . . $ pthread_mutex_t# *mutex); |
| 34 | |
| 35 | void init_shared_pthread_mutexcxx . . $ init_shared_pthread_mutex(b3840a7275456684).(pthread_mutex_tcxx . . $ pthread_mutex_t# *mutex, int protocol); |
| 36 | int set_rt_priocxx . . $ set_rt_prio(2326284602b0bb2d).(pid_tcxx . . $ pid_t# pid, int prio, int policy); |
| 37 | int get_rt_priocxx . . $ get_rt_prio(7864480464b09eea).(pid_tcxx . . $ pid_t# pid); |
| 38 | |
| 39 | #define PROTRWcxx . . $ `src/include/pip_stress.h:39:9`! PROT_READcxx . . $ `<external>/17226767460805440860/mman-linux.h:32:9`!|PROT_WRITEcxx . . $ `<external>/17226767460805440860/mman-linux.h:33:9`! |
| 40 | #define MMAP_FLAGScxx . . $ `src/include/pip_stress.h:40:9`! MAP_SHAREDcxx . . $ `<external>/17226767460805440860/mman-linux.h:42:9`!|MAP_ANONYMOUScxx . . $ `<external>/17226767460805440860/mman-linux.h:55:10`! |
| 41 | |
| 42 | #endif /* __PIP_STRESS_H */ |