#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "helpers/sysfs.h"
Go to the source code of this file.
|
unsigned int | sysfs_read_file (const char *path, char *buf, size_t buflen) |
|
int | sysfs_is_cpu_online (unsigned int cpu) |
|
unsigned int | sysfs_idlestate_read_file (unsigned int cpu, unsigned int idlestate, const char *fname, char *buf, size_t buflen) |
|
unsigned long | sysfs_get_idlestate_latency (unsigned int cpu, unsigned int idlestate) |
|
unsigned long | sysfs_get_idlestate_usage (unsigned int cpu, unsigned int idlestate) |
|
unsigned long long | sysfs_get_idlestate_time (unsigned int cpu, unsigned int idlestate) |
|
char * | sysfs_get_idlestate_name (unsigned int cpu, unsigned int idlestate) |
|
char * | sysfs_get_idlestate_desc (unsigned int cpu, unsigned int idlestate) |
|
int | sysfs_get_idlestate_count (unsigned int cpu) |
|
char * | sysfs_get_cpuidle_governor (void) |
|
char * | sysfs_get_cpuidle_driver (void) |
|
int | sysfs_get_sched (const char *smt_mc) |
|
int | sysfs_set_sched (const char *smt_mc, int val) |
|
- Enumerator:
CPUIDLE_GOVERNOR |
|
CPUIDLE_GOVERNOR_RO |
|
CPUIDLE_DRIVER |
|
MAX_CPUIDLE_STRING_FILES |
|
Definition at line 304 of file sysfs.c.
- Enumerator:
IDLESTATE_DESC |
|
IDLESTATE_NAME |
|
MAX_IDLESTATE_STRING_FILES |
|
Definition at line 188 of file sysfs.c.
- Enumerator:
IDLESTATE_USAGE |
|
IDLESTATE_POWER |
|
IDLESTATE_LATENCY |
|
IDLESTATE_TIME |
|
MAX_IDLESTATE_VALUE_FILES |
|
Definition at line 145 of file sysfs.c.
char* sysfs_get_cpuidle_governor |
( |
void |
| ) |
|
int sysfs_get_idlestate_count |
( |
unsigned int |
cpu | ) |
|
char* sysfs_get_idlestate_desc |
( |
unsigned int |
cpu, |
|
|
unsigned int |
idlestate |
|
) |
| |
unsigned long sysfs_get_idlestate_latency |
( |
unsigned int |
cpu, |
|
|
unsigned int |
idlestate |
|
) |
| |
char* sysfs_get_idlestate_name |
( |
unsigned int |
cpu, |
|
|
unsigned int |
idlestate |
|
) |
| |
unsigned long long sysfs_get_idlestate_time |
( |
unsigned int |
cpu, |
|
|
unsigned int |
idlestate |
|
) |
| |
unsigned long sysfs_get_idlestate_usage |
( |
unsigned int |
cpu, |
|
|
unsigned int |
idlestate |
|
) |
| |
int sysfs_is_cpu_online |
( |
unsigned int |
cpu | ) |
|