lkml.org 
[lkml]   [2015]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 06/17] x86, mpx: trace attempts to find bounds tables
On Fri, Mar 27, 2015 at 02:53:03PM -0700, Dave Hansen wrote:
> b/arch/x86/include/asm/trace/mpx.h | 22 ++++++++++++++++++++++
> b/arch/x86/mm/mpx.c | 1 +
> 2 files changed, 23 insertions(+)
>
> diff -puN arch/x86/include/asm/trace/mpx.h~mpx-trace_unmap_search arch/x86/include/asm/trace/mpx.h
> --- a/arch/x86/include/asm/trace/mpx.h~mpx-trace_unmap_search 2015-03-27 14:35:05.987816914 -0700
> +++ b/arch/x86/include/asm/trace/mpx.h 2015-03-27 14:35:05.992817139 -0700
> @@ -75,6 +75,28 @@ TRACE_EVENT(mpx_unmap_zap,
> )
> );
>
> +TRACE_EVENT(mpx_unmap_search,
> +
> + TP_PROTO(unsigned long start,
> + unsigned long end),
> + TP_ARGS(start, end),
> +
> + TP_STRUCT__entry(
> + __field(unsigned long, start)
> + __field(unsigned long, end)
> + ),
> +
> + TP_fast_assign(
> + __entry->start = start;
> + __entry->end = end;
> + ),
> +
> + TP_printk("[0x%p:0x%p]",
> + (void *)__entry->start,
> + (void *)__entry->end
> + )
> +);

This event is exactly the same as the previous event. Can you use

DECLARE_EVENT_CLASS() and DEFINE_EVENT() instead?

-- Steve

> +
> #else
>
> /*
> diff -puN arch/x86/mm/mpx.c~mpx-trace_unmap_search arch/x86/mm/mpx.c


\
 
 \ /
  Last update: 2015-03-31 00:01    [W:0.106 / U:1.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site