lkml.org 
[lkml]   [2009]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] hw-breakpoints: Include only linux/perf_event.h from kernel part of bp headers
    Date
    As userspace only needs the breakpoints enum types from the breakpoints
    headers.

    Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Prasad <prasad@linux.vnet.ibm.com>
    ---
    include/linux/hw_breakpoint.h | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h
    index 4659e0c..76a48ab 100644
    --- a/include/linux/hw_breakpoint.h
    +++ b/include/linux/hw_breakpoint.h
    @@ -1,8 +1,6 @@
    #ifndef _LINUX_HW_BREAKPOINT_H
    #define _LINUX_HW_BREAKPOINT_H

    -#include <linux/perf_event.h>
    -
    enum {
    HW_BREAKPOINT_LEN_1 = 1,
    HW_BREAKPOINT_LEN_2 = 2,
    @@ -19,6 +17,8 @@ enum {
    #ifdef __KERNEL__
    #ifdef CONFIG_HAVE_HW_BREAKPOINT

    +#include <linux/perf_event.h>
    +
    static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
    {
    return bp->attr.bp_addr;
    --
    1.6.2.3


    \
     
     \ /
      Last update: 2009-11-23 15:45    [W:0.018 / U:34.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site