monitor.c File Reference

Go to the source code of this file.

Functions

static int thread_equal (l4_threadid_t a, l4_threadid_t b)
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 enable_rt_mon


Detailed Description

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

Definition in file monitor.c.


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().

static int thread_equal ( l4_threadid_t  a,
l4_threadid_t  b 
) [inline, static]

Definition at line 21 of file monitor.c.

Referenced by monitor_start(), monitor_thread_dl(), and watch_hit_ts().


Variable Documentation

Definition at line 19 of file monitor.c.


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