Thomas Gleixner | 3578fac | 2008-01-30 13:30:38 +0100 | [diff] [blame] | 1 | #ifndef _ASM_X86_RESUME_TRACE_H |
| 2 | #define _ASM_X86_RESUME_TRACE_H |
| 3 | |
| 4 | #include <asm/asm.h> |
| 5 | |
| 6 | #define TRACE_RESUME(user) do { \ |
| 7 | if (pm_trace_enabled) { \ |
| 8 | void *tracedata; \ |
| 9 | asm volatile(_ASM_MOV_UL " $1f,%0\n" \ |
| 10 | ".section .tracedata,\"a\"\n" \ |
| 11 | "1:\t.word %c1\n\t" \ |
| 12 | _ASM_PTR " %c2\n" \ |
| 13 | ".previous" \ |
| 14 | :"=r" (tracedata) \ |
| 15 | : "i" (__LINE__), "i" (__FILE__)); \ |
| 16 | generate_resume_trace(tracedata, user); \ |
| 17 | } \ |
| 18 | } while (0) |
| 19 | |
Thomas Gleixner | 96a388d | 2007-10-11 11:20:03 +0200 | [diff] [blame] | 20 | #endif |