 |
Flowgrind
Advanced TCP traffic generator
|
Go to the documentation of this file.
26 #ifndef _FG_AFFINITY_H_
27 #define _FG_AFFINITY_H_
ncore_query
Query type for get_ncores().
@ NCORE_CONFIG
Total number of processors configured.
int get_ncores(enum ncore_query query)
Return either the total number of configured or available cores.
@ NCORE_CURRENT
Processors available to the current process.
int pthread_setaffinity(pthread_t thread, unsigned core)
Set CPU affinity of the thread thread to the core core.
static int core
CPU core to which flowgrindd should bind to.
int pthread_getaffinity(pthread_t thread, unsigned *core)
Returns the CPU affinity of thread thread in the buffer pointed to by core.