LCOV - code coverage report
Current view: top level - lkbce/arch/x86/include/asm - current.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 3 33.3 %
Date: 2017-01-25 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #ifndef _ASM_X86_CURRENT_H
       2             : #define _ASM_X86_CURRENT_H
       3             : 
       4             : #include <linux/compiler.h>
       5             : #include <asm/percpu.h>
       6             : 
       7             : #ifndef __ASSEMBLY__
       8             : struct task_struct;
       9             : 
      10           1 : DECLARE_PER_CPU(struct task_struct *, current_task);
      11             : 
      12             : static __always_inline struct task_struct *get_current(void)
      13             : {
      14           0 :         return percpu_read_stable(current_task);
      15           0 : }
      16             : 
      17             : #define current get_current()
      18             : 
      19             : #endif /* __ASSEMBLY__ */
      20             : 
      21             : #endif /* _ASM_X86_CURRENT_H */

Generated by: LCOV version 1.10