Blame view

arch/x86/include/asm/resume-trace.h 540 Bytes
1965aae3c   H. Peter Anvin   x86: Fix ASM_X86_...
1
2
  #ifndef _ASM_X86_RESUME_TRACE_H
  #define _ASM_X86_RESUME_TRACE_H
3578facf7   Thomas Gleixner   x86: merge resume...
3
4
  
  #include <asm/asm.h>
c6fd5d49e   Joe Perches   include/asm-x86/r...
5
6
  #define TRACE_RESUME(user)					\
  do {								\
3578facf7   Thomas Gleixner   x86: merge resume...
7
  	if (pm_trace_enabled) {					\
63687a528   Jan Beulich   x86: move traceda...
8
  		const void *tracedata;				\
8df9676d6   H. Peter Anvin   x86: <asm/asm.h> ...
9
10
  		asm volatile(_ASM_MOV " $1f,%0
  "		\
c6fd5d49e   Joe Perches   include/asm-x86/r...
11
12
13
14
15
16
17
18
19
  			     ".section .tracedata,\"a\"
  "	\
  			     "1:\t.word %c1
  \t"		\
  			     _ASM_PTR " %c2
  "			\
  			     ".previous"			\
  			     :"=r" (tracedata)			\
  			     : "i" (__LINE__), "i" (__FILE__));	\
3578facf7   Thomas Gleixner   x86: merge resume...
20
21
22
  		generate_resume_trace(tracedata, user);		\
  	}							\
  } while (0)
1965aae3c   H. Peter Anvin   x86: Fix ASM_X86_...
23
  #endif /* _ASM_X86_RESUME_TRACE_H */