pmm  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
pmm_loadmonitor.c File Reference

Code for monitoring the load on a machine. More...

#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include "pmm_load.h"
#include "pmm_log.h"
#include "pmm_cfgparser.h"

Go to the source code of this file.

Functions

void * loadmonitor (void *loadhistory)

Variables

int signal_quit
 signal to indicate benchmark should be terminated
pthread_mutex_t signal_quit_mutex
 mutex for accessing singal_quit

Detailed Description

Code for monitoring the load on a machine.

Contains the load monitoring thread of pmm

Definition in file pmm_loadmonitor.c.

Function Documentation

void* loadmonitor ( void *  loadhistory)

load monitor thread

monitors and writes load to disk until a quit signal is detected

Parameters
loadhistoryvoid pointer to the load history structue
Returns
void pointer to integer describing return status, 0 for success -1 for failure

Definition at line 54 of file pmm_loadmonitor.c.

Variable Documentation

int signal_quit

signal to indicate benchmark should be terminated

Definition at line 57 of file pmm_main.c.

pthread_mutex_t signal_quit_mutex

mutex for accessing singal_quit

Definition at line 58 of file pmm_main.c.