]> git.lizzy.rs Git - plan9front.git/blob - sys/include/tos.h
merge
[plan9front.git] / sys / include / tos.h
1 typedef struct Tos Tos;
2 typedef struct Plink Plink;
3
4 #pragma incomplete Plink
5
6 struct Tos {
7         struct                  /* Per process profiling */
8         {
9                 Plink   *pp;    /* known to be 0(ptr) */
10                 Plink   *next;  /* known to be 4(ptr) */
11                 Plink   *last;
12                 Plink   *first;
13                 ulong   pid;
14                 ulong   what;
15         } prof;
16         uvlong  cyclefreq;      /* cycle clock frequency if there is one, 0 otherwise */
17         vlong   kcycles;        /* cycles spent in kernel */
18         vlong   pcycles;        /* cycles spent in process (kernel + user) */
19         ulong   pid;            /* might as well put the pid here */
20         ulong   clock;
21         /* top of stack is here */
22 };
23
24 extern Tos *_tos;