Go to the source code of this file.
returns time since epoch in µs
- Return values
-
Definition at line 39 of file system.c.
sets up the cpu affinity and scheduler priority
- Parameters
-
config | benchmark config values |
Definition at line 164 of file system.c.
notifies the user that the benchmark may run some time
- Parameters
-
config | benchmark config values |
Definition at line 138 of file system.c.
int set_cpu_affinity |
( |
unsigned int |
cpu | ) |
|
sets cpu affinity for the process
- Parameters
-
cpu | cpu# to which the affinity should be set |
- Return values
-
0 | on success |
-1 | when setting the affinity failed |
Definition at line 87 of file system.c.
int set_cpufreq_governor |
( |
char * |
governor, |
|
|
unsigned int |
cpu |
|
) |
| |
sets the cpufreq governor
- Parameters
-
governor | cpufreq governor name |
cpu | cpu for which the governor should be set |
- Return values
-
0 | on success |
-1 | when failed |
Definition at line 58 of file system.c.
int set_process_priority |
( |
int |
priority | ) |
|
sets the process priority parameter
- Parameters
-
- Return values
-
0 | on success |
-1 | when setting the priority failed |
Definition at line 114 of file system.c.