first usable version of kernel and commands
After an year of hard work, this is a first "usable" version of Jehanne.
This commit is contained in:
35
sys/include/trace.h
Normal file
35
sys/include/trace.h
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the UCB release of Plan 9. It is subject to the license
|
||||
* terms in the LICENSE file found in the top-level directory of this
|
||||
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
|
||||
* part of the UCB release of Plan 9, including this file, may be copied,
|
||||
* modified, propagated, or distributed except according to the terms contained
|
||||
* in the LICENSE file.
|
||||
*/
|
||||
|
||||
typedef enum Tevent {
|
||||
SAdmit = 0, /* Edf admit */
|
||||
SRelease, /* Edf release, waiting to be scheduled */
|
||||
SEdf, /* running under EDF */
|
||||
SRun, /* running best effort */
|
||||
SReady, /* runnable but not running */
|
||||
SSleep, /* blocked */
|
||||
SYield, /* blocked waiting for release */
|
||||
SSlice, /* slice exhausted */
|
||||
SDeadline, /* proc's deadline */
|
||||
SExpel, /* Edf expel */
|
||||
SDead, /* proc dies */
|
||||
SInts, /* Interrupt start */
|
||||
SInte, /* Interrupt end */
|
||||
SUser, /* user event */
|
||||
SLock, /* blocked on a queue or lock */
|
||||
Nevent,
|
||||
} Tevent;
|
||||
|
||||
typedef struct Traceevent Traceevent;
|
||||
struct Traceevent {
|
||||
uint32_t pid;
|
||||
uint32_t etype; /* Event type */
|
||||
int64_t time; /* time stamp */
|
||||
uint32_t core; /* core number */
|
||||
};
|
Reference in New Issue
Block a user