1 #include <linux/stddef.h>
2 #include <linux/sched.h>
6 #define DEFINE(sym, val) \
7 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
10 #define DEFINE_STR(sym, val) asm volatile("\n->" #sym " " STR(val) " " #val: : )
12 #define BLANK() asm volatile("\n->" : : )
14 #define OFFSET(sym, str, mem) \
15 DEFINE(sym, offsetof(struct str, mem));
19 OFFSET(HOST_TASK_DEBUGREGS, task_struct, thread.arch.debugregs);
20 DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
22 OFFSET(HOST_TASK_EXTERN_PID, task_struct, thread.mode.tt.extern_pid);
24 #include <common-offsets.h>