Skip to content

Commit

Permalink
x86: make ptrace.h safe to include from assembler code
Browse files Browse the repository at this point in the history
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Jan 30, 2008
1 parent 3aa88cd commit 27efeb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-x86/ptrace-abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@

#define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */

#ifndef __ASSEMBLY__
/* configuration/status structure used in PTRACE_BTS_CONFIG and
PTRACE_BTS_STATUS commands.
*/
Expand All @@ -91,6 +92,7 @@ struct ptrace_bts_config {
/* buffer overflow signal */
unsigned int signal;
};
#endif

#define PTRACE_BTS_O_TRACE 0x1 /* branch trace */
#define PTRACE_BTS_O_SCHED 0x2 /* scheduling events w/ jiffies */
Expand Down

0 comments on commit 27efeb6

Please sign in to comment.