[PATCH 03/17] x86, mpx: trace #BR exceptions

2015-04-22 Thread Dave Hansen
From: Dave Hansen This is the first in a series of MPX tracing patches. I've found these extremely useful in the process of debugging applications and the kernel code itself. This exception hooks in to the bounds (#BR) exception very early and allows capturing the key registers which would

[PATCH 03/17] x86, mpx: trace #BR exceptions

2015-04-22 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com This is the first in a series of MPX tracing patches. I've found these extremely useful in the process of debugging applications and the kernel code itself. This exception hooks in to the bounds (#BR) exception very early and allows capturing the

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Steven Rostedt
On Mon, 30 Mar 2015 14:33:30 -0700 Dave Hansen wrote: > On 03/30/2015 02:25 PM, Steven Rostedt wrote: > ... > >> > +#ifdef CONFIG_X86_INTEL_MPX I missed this #ifdef > >> > + > >> > +TRACE_EVENT(bounds_exception_mpx, > ... > >> > +TP_printk("bndcfgu:0x%llx bndstatus:0x%llx", > >> > +

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Dave Hansen
On 03/30/2015 02:25 PM, Steven Rostedt wrote: ... >> > +#ifdef CONFIG_X86_INTEL_MPX >> > + >> > +TRACE_EVENT(bounds_exception_mpx, ... >> > + TP_printk("bndcfgu:0x%llx bndstatus:0x%llx", >> > + __entry->bndcfgu, >> > + __entry->bndstatus) >> > +); >> > + >> > +#else >> > + >> >

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Steven Rostedt
On Fri, Mar 27, 2015 at 02:52:59PM -0700, Dave Hansen wrote: > > --- /dev/null 2014-10-10 16:10:57.316716958 -0700 > +++ b/arch/x86/include/asm/trace/mpx.h2015-03-27 14:35:04.735760444 > -0700 > @@ -0,0 +1,48 @@ > +#undef TRACE_SYSTEM > +#define TRACE_SYSTEM mpx > + > +#if

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Dave Hansen
On 03/30/2015 02:25 PM, Steven Rostedt wrote: ... +#ifdef CONFIG_X86_INTEL_MPX + +TRACE_EVENT(bounds_exception_mpx, ... + TP_printk(bndcfgu:0x%llx bndstatus:0x%llx, + __entry-bndcfgu, + __entry-bndstatus) +); + +#else + +/* + * This gets used outside of

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Steven Rostedt
On Fri, Mar 27, 2015 at 02:52:59PM -0700, Dave Hansen wrote: --- /dev/null 2014-10-10 16:10:57.316716958 -0700 +++ b/arch/x86/include/asm/trace/mpx.h2015-03-27 14:35:04.735760444 -0700 @@ -0,0 +1,48 @@ +#undef TRACE_SYSTEM +#define TRACE_SYSTEM mpx + +#if !defined(_TRACE_MPX_H)

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Steven Rostedt
On Mon, 30 Mar 2015 14:33:30 -0700 Dave Hansen d...@sr71.net wrote: On 03/30/2015 02:25 PM, Steven Rostedt wrote: ... +#ifdef CONFIG_X86_INTEL_MPX I missed this #ifdef + +TRACE_EVENT(bounds_exception_mpx, ... +TP_printk(bndcfgu:0x%llx bndstatus:0x%llx, +

[PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-27 Thread Dave Hansen
From: Dave Hansen This is the first in a series of MPX tracing patches. I've found these extremely useful in the process of debugging applications and the kernel code itself. This exception hooks in to the bounds (#BR) exception very early and allows capturing the key registers which would

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-27 Thread Borislav Petkov
Adding rostedt for the TPs. Steve, please take a look at the rest of the patchset too, there are more tracepoints being added. On Thu, Mar 26, 2015 at 11:33:36AM -0700, Dave Hansen wrote: > > From: Dave Hansen > > This is the first in a series of MPX tracing patches. > I've found these

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-27 Thread Borislav Petkov
Adding rostedt for the TPs. Steve, please take a look at the rest of the patchset too, there are more tracepoints being added. On Thu, Mar 26, 2015 at 11:33:36AM -0700, Dave Hansen wrote: From: Dave Hansen dave.han...@linux.intel.com This is the first in a series of MPX tracing patches.

[PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-27 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com This is the first in a series of MPX tracing patches. I've found these extremely useful in the process of debugging applications and the kernel code itself. This exception hooks in to the bounds (#BR) exception very early and allows capturing the

[PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-26 Thread Dave Hansen
From: Dave Hansen This is the first in a series of MPX tracing patches. I've found these extremely useful in the process of debugging applications and the kernel code itself. This exception hooks in to the bounds (#BR) exception very early and allows capturing the key registers which would

[PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-26 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com This is the first in a series of MPX tracing patches. I've found these extremely useful in the process of debugging applications and the kernel code itself. This exception hooks in to the bounds (#BR) exception very early and allows capturing the