monitor.h File Reference

Prototypes for rt-mon interface functions. More...

Go to the source code of this file.

Functions

int monitor_start (const sched_t *sched, const l4_threadid_t *thread)
 Start the histogramm of dl overflow of a thread.
void monitor_thread_dl (l4_threadid_t *thread, l4_cpu_time_t time)
 Monitor the consumed time of a thread using the rt_mon lib.

Variables

int monitor_enable


Detailed Description

Prototypes for rt-mon interface functions.

Date:
11/12/2004
Author:
Jork Loeser <jork.loeser@inf.tu-dresden.de>

Definition in file monitor.h.


Function Documentation

int monitor_start ( const sched_t sched,
const l4_threadid_t *  thread 
)

Start the histogramm of dl overflow of a thread.

Precondition:
scheds-lock should be hold outside

Definition at line 30 of file monitor.c.

References sched_t::dl_hist, is_dp(), lock_scheds(), sched_cur_threads, scheds, thread_equal(), and unlock_scheds().

Referenced by l4cpu_reserve_watch_component().

void monitor_thread_dl ( l4_threadid_t *  thread,
l4_cpu_time_t  time 
)

Monitor the consumed time of a thread using the rt_mon lib.

Parameters:
thread the thread itself
time consumed time of the thread so far

Definition at line 61 of file monitor.c.

References sched_t::dl_old, is_dp(), lock_scheds(), sched_cur_threads, scheds, thread_equal(), and unlock_scheds().

Referenced by watcher_fn().


Variable Documentation

Definition at line 35 of file main.c.

Referenced by l4cpu_reserve_watch_component(), main(), and watcher_fn().


CPU reservation server Reference Manual, written by Jork Loeser  © 2004