Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
cpupower-monitor.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <libgen.h>
#include "idle_monitor/cpupower-monitor.h"
#include "idle_monitor/idle_monitors.h"
#include "helpers/helpers.h"
#include "idle_monitors.def"

Go to the source code of this file.

Macros

#define DEF(x)   & x ## _monitor ,
 

Enumerations

enum  operation_mode_e { list = 1, show, show_all }
 

Functions

long long timespec_diff_us (struct timespec start, struct timespec end)
 
void print_n_spaces (int n)
 
int fill_string_with_spaces (char *s, int n)
 
void print_header (int topology_depth)
 
void print_results (int topology_depth, int cpu)
 
void list_monitors (void)
 
int fork_it (char **argv)
 
int do_interval_measure (int i)
 
int cmd_monitor (int argc, char **argv)
 

Variables

struct cpuidle_monitorall_monitors []
 

Macro Definition Documentation

#define DEF (   x)    & x ## _monitor ,

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

Enumeration Type Documentation

Enumerator:
list 
show 
show_all 

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

Function Documentation

int cmd_monitor ( int  argc,
char **  argv 
)

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

int do_interval_measure ( int  i)

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

int fill_string_with_spaces ( char s,
int  n 
)

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

int fork_it ( char **  argv)

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

void list_monitors ( void  )

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

void print_header ( int  topology_depth)

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

void print_n_spaces ( int  n)

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

void print_results ( int  topology_depth,
int  cpu 
)

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

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

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

Variable Documentation

struct cpuidle_monitor* all_monitors[]
Initial value:
= {
0
}

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