diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:47:56 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:47:56 +0300 |
commit | c558a99e0be506a9abdf677f0ca4490644e05fc1 (patch) | |
tree | 17aef678ad05a32ef96ce8385703cb3fe089a5c7 /sys/include/tos.h | |
parent | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (diff) |
Import sources from 2011-03-30 iso image - sys/include
Diffstat (limited to 'sys/include/tos.h')
-rwxr-xr-x | sys/include/tos.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/include/tos.h b/sys/include/tos.h new file mode 100755 index 000000000..f61127cdd --- /dev/null +++ b/sys/include/tos.h @@ -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; |