SST/macro
|
#include <sstmac/libraries/pthread/sstmac_sys_types.h>
#include <sstmac/libraries/pthread/sstmac_cpu_set.h>
#include <sstmac/libraries/pthread/sstmac_sched_clear_macros.h>
#include <sstmac/libraries/pthread/sstmac_sched_macro.h>
Go to the source code of this file.
Macros | |
#define | SSTMAC_CPU_SETSIZE 64 |
#define | SSTMAC_CPU_SET(cpu, cpusetp) SSTMAC_CPU_SET_S(cpu, 64, cpusetp) |
#define | SSTMAC_CPU_CLR(cpu, cpusetp) SSTMAC_CPU_CLR_S(cpu, 64, cpusetp) |
#define | SSTMAC_CPU_ISSET(cpu, cpusetp) SSTMAC_CPU_ISSET_S(cpu, 64, cpusetp) |
#define | SSTMAC_CPU_ZERO(cpusetp) SSTMAC_CPU_ZERO_S(64, cpusetp) |
#define | SSTMAC_CPU_COUNT(cpusetp) SSTMAC_CPU_COUNT_S(64, cpusetp) |
#define | SSTMAC_CPU_EQUAL(cpusetp1, cpusetp2) SSTMAC_CPU_EQUAL_S(64, cpusetp1, cpusetp2) |
#define | SSTMAC_CPU_AND(destset, srcset1, srcset2) SSTMAC_CPU_AND_S(destset, 64, srcset1, srcset2) |
#define | SSTMAC_CPU_OR(destset, srcset1, srcset2) SSTMAC_CPU_OR_S(destset, 64, srcset1, srcset2) |
#define | SSTMAC_CPU_XOR(destset, srcset1, srcset2) SSTMAC_CPU_XOR_S(destset, 64, srcset1, srcset2) |
#define | SSTMAC_CPU_ALLOC_SIZE(count) (1<<count) |
Functions | |
int | SSTMAC_sched_setparam (pid_t pid, const struct sched_param *param) |
int | SSTMAC_sched_getparam (pid_t pid, struct sched_param *param) |
int | SSTMAC_sched_setscheduler (pid_t pid, int policy, const struct sched_param *param) |
int | SSTMAC_sched_getscheduler (pid_t pid) |
int | SSTMAC_sched_yield (void) |
int | SSTMAC_sched_get_priority_max (int algorithm) |
int | SSTMAC_sched_get_priority_min (int algorithm) |
int | SSTMAC_sched_rr_get_interval (pid_t pid, struct timespec *t) |
void | SSTMAC_CPU_SET_S (int cpu, size_t setsize, sstmac_cpu_set_t *cpusetp) |
void | SSTMAC_CPU_CLR_S (int cpu, size_t setsize, sstmac_cpu_set_t *cpusetp) |
int | SSTMAC_CPU_ISSET_S (int cpu, size_t setsize, sstmac_cpu_set_t *) |
void | SSTMAC_CPU_ZERO_S (size_t setsize, sstmac_cpu_set_t *cpusetp) |
int | SSTMAC_CPU_COUNT_S (size_t setsize, sstmac_cpu_set_t *cpusetp) |
int | SSTMAC_CPU_EQUAL_S (size_t setsize, sstmac_cpu_set_t *cpusetp1, sstmac_cpu_set_t *cpusetp2) |
void | SSTMAC_CPU_AND_S (size_t setsize, sstmac_cpu_set_t *destset, sstmac_cpu_set_t *srcset1, sstmac_cpu_set_t *srcset2) |
void | SSTMAC_CPU_OR_S (size_t setsize, sstmac_cpu_set_t *destset, sstmac_cpu_set_t *srcset1, sstmac_cpu_set_t *srcset2) |
void | SSTMAC_CPU_XOR_S (size_t setsize, sstmac_cpu_set_t *destset, sstmac_cpu_set_t *srcset1, sstmac_cpu_set_t *srcset2) |
sstmac_cpu_set_t * | SSTMAC_CPU_ALLOC (int count) |
void | SSTMAC_CPU_FREE (sstmac_cpu_set_t *cpuset) |
int | SSTMAC_sched_setaffinity (pid_t pid, size_t cpusetsize, const sstmac_cpu_set_t *cpuset) |
int | SSTMAC_sched_getaffinity (pid_t pid, size_t cpusetsize, sstmac_cpu_set_t *cpuset) |
#define SSTMAC_CPU_ALLOC_SIZE | ( | count | ) | (1<<count) |
Definition at line 67 of file sstmac_sched.h.
#define SSTMAC_CPU_AND | ( | destset, | |
srcset1, | |||
srcset2 | |||
) | SSTMAC_CPU_AND_S(destset, 64, srcset1, srcset2) |
Definition at line 59 of file sstmac_sched.h.
#define SSTMAC_CPU_CLR | ( | cpu, | |
cpusetp | |||
) | SSTMAC_CPU_CLR_S(cpu, 64, cpusetp) |
Definition at line 45 of file sstmac_sched.h.
#define SSTMAC_CPU_COUNT | ( | cpusetp | ) | SSTMAC_CPU_COUNT_S(64, cpusetp) |
Definition at line 48 of file sstmac_sched.h.
#define SSTMAC_CPU_EQUAL | ( | cpusetp1, | |
cpusetp2 | |||
) | SSTMAC_CPU_EQUAL_S(64, cpusetp1, cpusetp2) |
Definition at line 56 of file sstmac_sched.h.
#define SSTMAC_CPU_ISSET | ( | cpu, | |
cpusetp | |||
) | SSTMAC_CPU_ISSET_S(cpu, 64, cpusetp) |
Definition at line 46 of file sstmac_sched.h.
#define SSTMAC_CPU_OR | ( | destset, | |
srcset1, | |||
srcset2 | |||
) | SSTMAC_CPU_OR_S(destset, 64, srcset1, srcset2) |
Definition at line 60 of file sstmac_sched.h.
#define SSTMAC_CPU_SET | ( | cpu, | |
cpusetp | |||
) | SSTMAC_CPU_SET_S(cpu, 64, cpusetp) |
Definition at line 44 of file sstmac_sched.h.
#define SSTMAC_CPU_SETSIZE 64 |
Definition at line 42 of file sstmac_sched.h.
#define SSTMAC_CPU_XOR | ( | destset, | |
srcset1, | |||
srcset2 | |||
) | SSTMAC_CPU_XOR_S(destset, 64, srcset1, srcset2) |
Definition at line 61 of file sstmac_sched.h.
#define SSTMAC_CPU_ZERO | ( | cpusetp | ) | SSTMAC_CPU_ZERO_S(64, cpusetp) |
Definition at line 47 of file sstmac_sched.h.
sstmac_cpu_set_t* SSTMAC_CPU_ALLOC | ( | int | count | ) |
void SSTMAC_CPU_AND_S | ( | size_t | setsize, |
sstmac_cpu_set_t * | destset, | ||
sstmac_cpu_set_t * | srcset1, | ||
sstmac_cpu_set_t * | srcset2 | ||
) |
void SSTMAC_CPU_CLR_S | ( | int | cpu, |
size_t | setsize, | ||
sstmac_cpu_set_t * | cpusetp | ||
) |
int SSTMAC_CPU_COUNT_S | ( | size_t | setsize, |
sstmac_cpu_set_t * | cpusetp | ||
) |
int SSTMAC_CPU_EQUAL_S | ( | size_t | setsize, |
sstmac_cpu_set_t * | cpusetp1, | ||
sstmac_cpu_set_t * | cpusetp2 | ||
) |
void SSTMAC_CPU_FREE | ( | sstmac_cpu_set_t * | cpuset | ) |
int SSTMAC_CPU_ISSET_S | ( | int | cpu, |
size_t | setsize, | ||
sstmac_cpu_set_t * | |||
) |
void SSTMAC_CPU_OR_S | ( | size_t | setsize, |
sstmac_cpu_set_t * | destset, | ||
sstmac_cpu_set_t * | srcset1, | ||
sstmac_cpu_set_t * | srcset2 | ||
) |
void SSTMAC_CPU_SET_S | ( | int | cpu, |
size_t | setsize, | ||
sstmac_cpu_set_t * | cpusetp | ||
) |
void SSTMAC_CPU_XOR_S | ( | size_t | setsize, |
sstmac_cpu_set_t * | destset, | ||
sstmac_cpu_set_t * | srcset1, | ||
sstmac_cpu_set_t * | srcset2 | ||
) |
void SSTMAC_CPU_ZERO_S | ( | size_t | setsize, |
sstmac_cpu_set_t * | cpusetp | ||
) |
|
inline |
Definition at line 30 of file sstmac_sched.h.
|
inline |
Definition at line 35 of file sstmac_sched.h.
References SSTMAC_sched_rr_get_interval().
int SSTMAC_sched_getaffinity | ( | pid_t | pid, |
size_t | cpusetsize, | ||
sstmac_cpu_set_t * | cpuset | ||
) |
int SSTMAC_sched_getparam | ( | pid_t | pid, |
struct sched_param * | param | ||
) |
int SSTMAC_sched_getscheduler | ( | pid_t | pid | ) |
int SSTMAC_sched_rr_get_interval | ( | pid_t | pid, |
struct timespec * | t | ||
) |
Referenced by SSTMAC_sched_get_priority_min().
int SSTMAC_sched_setaffinity | ( | pid_t | pid, |
size_t | cpusetsize, | ||
const sstmac_cpu_set_t * | cpuset | ||
) |
int SSTMAC_sched_setparam | ( | pid_t | pid, |
const struct sched_param * | param | ||
) |
int SSTMAC_sched_setscheduler | ( | pid_t | pid, |
int | policy, | ||
const struct sched_param * | param | ||
) |
int SSTMAC_sched_yield | ( | void | ) |