1 #include "linux/sched.h"
2 #include "linux/stddef.h"
4 extern void print(char *name
, char *type
, int offset
);
5 extern void print_ptr(char *name
, char *type
, int offset
);
6 extern void print_head(void);
7 extern void print_tail(void);
9 int main(int argc
, char **argv
)
12 print_ptr("TASK_REGS", "union uml_pt_regs",
13 offsetof(struct task_struct
, thread
.regs
));
14 print("TASK_PID", "int", offsetof(struct task_struct
, pid
));