On Fri, Mar 27, 2015 at 02:53:00PM -0700, Dave Hansen wrote: > diff -puN arch/x86/include/asm/trace/mpx.h~x86-mpx-trace-1 > arch/x86/include/asm/trace/mpx.h > --- a/arch/x86/include/asm/trace/mpx.h~x86-mpx-trace-1 2015-03-27 > 14:35:05.164779793 -0700 > +++ b/arch/x86/include/asm/trace/mpx.h 2015-03-27 14:35:05.169780019 > -0700 > @@ -8,6 +8,31 @@ > > #ifdef CONFIG_X86_INTEL_MPX > > +TRACE_EVENT(mpx_bounds_register_exception, > + > + TP_PROTO(void *addr_referenced, > + struct bndreg *bndreg), > + TP_ARGS(addr_referenced, bndreg), > + > + TP_STRUCT__entry( > + __field(void *, addr_referenced) > + __field(u64, lower_bound) > + __field(u64, upper_bound) > + ), > + > + TP_fast_assign( > + __entry->addr_referenced = addr_referenced; > + __entry->lower_bound = bndreg->lower_bound; > + __entry->upper_bound = bndreg->upper_bound; > + ), > + > + TP_printk("address referenced: 0x%p bounds: lower: 0x%llx ~upper: > 0x%llx", > + __entry->addr_referenced, > + __entry->lower_bound, > + ~__entry->upper_bound
Hmm, I have to see if libtraceevent handle's that. It might. -- Steve > + ) > +); > + > TRACE_EVENT(bounds_exception_mpx, > > TP_PROTO(struct bndcsr *bndcsr), > diff -puN arch/x86/mm/mpx.c~x86-mpx-trace-1 arch/x86/mm/mpx.c > --- a/arch/x86/mm/mpx.c~x86-mpx-trace-1 2015-03-27 14:35:05.166779884 > -0700 > +++ b/arch/x86/mm/mpx.c 2015-03-27 14:35:05.169780019 -0700 > @@ -16,6 +16,7 @@ > #include <asm/mmu_context.h> > #include <asm/mpx.h> > #include <asm/processor.h> > +#include <asm/trace/mpx.h> > #include <asm/fpu-internal.h> > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/