1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_PM_TRACE_H
3 #define _ASM_X86_PM_TRACE_H
7 #define TRACE_RESUME(user) \
9 if (pm_trace_enabled) { \
10 const void *tracedata; \
11 asm volatile(_ASM_MOV " $1f,%0\n" \
12 ".section .tracedata,\"a\"\n" \
17 : "i" (__LINE__), "i" (__FILE__)); \
18 generate_pm_trace(tracedata, user); \
22 #define TRACE_SUSPEND(user) TRACE_RESUME(user)
24 #endif /* _ASM_X86_PM_TRACE_H */