context_tracking.h 526 B

123456789101112131415161718
  1. #ifndef _LINUX_CONTEXT_TRACKING_H
  2. #define _LINUX_CONTEXT_TRACKING_H
  3. #ifdef CONFIG_CONTEXT_TRACKING
  4. #include <linux/sched.h>
  5. extern void user_enter(void);
  6. extern void user_exit(void);
  7. extern void context_tracking_task_switch(struct task_struct *prev,
  8. struct task_struct *next);
  9. #else
  10. static inline void user_enter(void) { }
  11. static inline void user_exit(void) { }
  12. static inline void context_tracking_task_switch(struct task_struct *prev,
  13. struct task_struct *next) { }
  14. #endif /* !CONFIG_CONTEXT_TRACKING */
  15. #endif