Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
cpupower-monitor.h File Reference
#include <stdarg.h>
#include <time.h>
#include "idle_monitor/idle_monitors.h"

Go to the source code of this file.

Data Structures

struct  cstate
 
struct  cpuidle_monitor
 

Macros

#define MONITORS_MAX   20
 
#define MONITOR_NAME_LEN   20
 
#define CSTATE_NAME_LEN   5
 
#define CSTATE_DESC_LEN   60
 
#define print_overflow_err(mes, ov)
 

Typedefs

typedef struct cstate cstate_t
 

Enumerations

enum  power_range_e {
  RANGE_THREAD, RANGE_CORE, RANGE_PACKAGE, RANGE_MACHINE,
  RANGE_MAX
}
 

Functions

long long timespec_diff_us (struct timespec start, struct timespec end)
 

Variables

int cpu_count
 

Macro Definition Documentation

#define CSTATE_DESC_LEN   60

Definition at line 19 of file cpupower-monitor.h.

#define CSTATE_NAME_LEN   5

Definition at line 18 of file cpupower-monitor.h.

#define MONITOR_NAME_LEN   20

Definition at line 17 of file cpupower-monitor.h.

#define MONITORS_MAX   20

Definition at line 16 of file cpupower-monitor.h.

#define print_overflow_err (   mes,
  ov 
)
Value:
{ \
fprintf(stderr, gettext("Measure took %u seconds, but registers could " \
"overflow at %u seconds, results " \
"could be inaccurate\n"), mes, ov); \
}

Definition at line 61 of file cpupower-monitor.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
RANGE_THREAD 
RANGE_CORE 
RANGE_PACKAGE 
RANGE_MACHINE 
RANGE_MAX 

Definition at line 24 of file cpupower-monitor.h.

Function Documentation

long long timespec_diff_us ( struct timespec  start,
struct timespec  end 
)

Definition at line 52 of file cpupower-monitor.c.

Variable Documentation

int cpu_count

Definition at line 21 of file cpupower-monitor.h.