Re: [PATCH] [1/20] x86: Make ptrace.h safe to include from assembler code
On Thursday 03 January 2008 10:54:52 Ingo Molnar wrote: > > * Andi Kleen <[EMAIL PROTECTED]> wrote: > > > Index: linux/include/asm-x86/ptrace-abi.h > > === > > --- linux.orig/include/asm-x86/ptrace-abi.h > > +++ linux/include/asm-x86/ptrace-abi.h > > @@ -80,6 +80,7 @@ > > > > #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ > > > > +#ifndef __ASSEMBLY__ > > hm, this patch misses a rationale - what assembly code includes > ptrace-abi.h directly or indirectly? Did you see any build breakage with > x86.git that requires this? (if yes then please send me the .config) It's needed for the dwarf2 unwinder, but imho useful on its own. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] [1/20] x86: Make ptrace.h safe to include from assembler code
* Andi Kleen <[EMAIL PROTECTED]> wrote: > Index: linux/include/asm-x86/ptrace-abi.h > === > --- linux.orig/include/asm-x86/ptrace-abi.h > +++ linux/include/asm-x86/ptrace-abi.h > @@ -80,6 +80,7 @@ > > #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ > > +#ifndef __ASSEMBLY__ hm, this patch misses a rationale - what assembly code includes ptrace-abi.h directly or indirectly? Did you see any build breakage with x86.git that requires this? (if yes then please send me the .config) Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] [1/20] x86: Make ptrace.h safe to include from assembler code
* Andi Kleen [EMAIL PROTECTED] wrote: Index: linux/include/asm-x86/ptrace-abi.h === --- linux.orig/include/asm-x86/ptrace-abi.h +++ linux/include/asm-x86/ptrace-abi.h @@ -80,6 +80,7 @@ #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ +#ifndef __ASSEMBLY__ hm, this patch misses a rationale - what assembly code includes ptrace-abi.h directly or indirectly? Did you see any build breakage with x86.git that requires this? (if yes then please send me the .config) Ingo -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] [1/20] x86: Make ptrace.h safe to include from assembler code
On Thursday 03 January 2008 10:54:52 Ingo Molnar wrote: * Andi Kleen [EMAIL PROTECTED] wrote: Index: linux/include/asm-x86/ptrace-abi.h === --- linux.orig/include/asm-x86/ptrace-abi.h +++ linux/include/asm-x86/ptrace-abi.h @@ -80,6 +80,7 @@ #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ +#ifndef __ASSEMBLY__ hm, this patch misses a rationale - what assembly code includes ptrace-abi.h directly or indirectly? Did you see any build breakage with x86.git that requires this? (if yes then please send me the .config) It's needed for the dwarf2 unwinder, but imho useful on its own. -Andi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] [1/20] x86: Make ptrace.h safe to include from assembler code
Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- include/asm-x86/ptrace-abi.h |2 ++ 1 file changed, 2 insertions(+) Index: linux/include/asm-x86/ptrace-abi.h === --- linux.orig/include/asm-x86/ptrace-abi.h +++ linux/include/asm-x86/ptrace-abi.h @@ -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. */ @@ -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 */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] [1/20] x86: Make ptrace.h safe to include from assembler code
Signed-off-by: Andi Kleen [EMAIL PROTECTED] --- include/asm-x86/ptrace-abi.h |2 ++ 1 file changed, 2 insertions(+) Index: linux/include/asm-x86/ptrace-abi.h === --- linux.orig/include/asm-x86/ptrace-abi.h +++ linux/include/asm-x86/ptrace-abi.h @@ -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. */ @@ -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 */ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/