Commit 27efeb67 authored by Andi Kleen's avatar Andi Kleen Committed by Ingo Molnar

x86: make ptrace.h safe to include from assembler code

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 3aa88cdf
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
#define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */
#ifndef __ASSEMBLY__
/* configuration/status structure used in PTRACE_BTS_CONFIG and /* configuration/status structure used in PTRACE_BTS_CONFIG and
PTRACE_BTS_STATUS commands. PTRACE_BTS_STATUS commands.
*/ */
...@@ -91,6 +92,7 @@ struct ptrace_bts_config { ...@@ -91,6 +92,7 @@ struct ptrace_bts_config {
/* buffer overflow signal */ /* buffer overflow signal */
unsigned int signal; unsigned int signal;
}; };
#endif
#define PTRACE_BTS_O_TRACE 0x1 /* branch trace */ #define PTRACE_BTS_O_TRACE 0x1 /* branch trace */
#define PTRACE_BTS_O_SCHED 0x2 /* scheduling events w/ jiffies */ #define PTRACE_BTS_O_SCHED 0x2 /* scheduling events w/ jiffies */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment