Import sources from 2011-03-30 iso image - sys/include
This commit is contained in:
parent
e5888a1ffd
commit
c558a99e0b
105 changed files with 11410 additions and 0 deletions
24
sys/include/tos.h
Executable file
24
sys/include/tos.h
Executable file
|
@ -0,0 +1,24 @@
|
|||
typedef struct Tos Tos;
|
||||
typedef struct Plink Plink;
|
||||
|
||||
#pragma incomplete Plink
|
||||
|
||||
struct Tos {
|
||||
struct /* Per process profiling */
|
||||
{
|
||||
Plink *pp; /* known to be 0(ptr) */
|
||||
Plink *next; /* known to be 4(ptr) */
|
||||
Plink *last;
|
||||
Plink *first;
|
||||
ulong pid;
|
||||
ulong what;
|
||||
} prof;
|
||||
uvlong cyclefreq; /* cycle clock frequency if there is one, 0 otherwise */
|
||||
vlong kcycles; /* cycles spent in kernel */
|
||||
vlong pcycles; /* cycles spent in process (kernel + user) */
|
||||
ulong pid; /* might as well put the pid here */
|
||||
ulong clock;
|
||||
/* top of stack is here */
|
||||
};
|
||||
|
||||
extern Tos *_tos;
|
Loading…
Add table
Add a link
Reference in a new issue