2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _SYSTEM_SCHEDULER_DEFS_H
6 #define _SYSTEM_SCHEDULER_DEFS_H
11 struct scheduling_analysis_thread_wait_object
;
13 struct scheduling_analysis_thread
{
15 char name
[B_OS_NAME_LENGTH
];
18 bigtime_t total_run_time
;
19 bigtime_t min_run_time
;
20 bigtime_t max_run_time
;
23 bigtime_t total_latency
;
24 bigtime_t min_latency
;
25 bigtime_t max_latency
;
28 bigtime_t total_rerun_time
;
29 bigtime_t min_rerun_time
;
30 bigtime_t max_rerun_time
;
32 bigtime_t unspecified_wait_time
;
36 scheduling_analysis_thread_wait_object
* wait_objects
;
40 struct scheduling_analysis_wait_object
{
43 char name
[B_OS_NAME_LENGTH
];
44 void* referenced_object
;
48 struct scheduling_analysis_thread_wait_object
{
50 scheduling_analysis_wait_object
* wait_object
;
53 scheduling_analysis_thread_wait_object
* next_in_list
;
57 struct scheduling_analysis
{
59 scheduling_analysis_thread
** threads
;
60 uint64 wait_object_count
;
61 uint64 thread_wait_object_count
;
65 #endif /* _SYSTEM_SCHEDULER_DEFS_H */