lkml.org 
[lkml]   [2013]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 60/76] perf, ARC: Enable building perf tools for ARC
    Date
    Although with uClibc there's more we need to do

    Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
    ---
    tools/perf/perf.h | 6 ++++++
    1 files changed, 6 insertions(+), 0 deletions(-)

    diff --git a/tools/perf/perf.h b/tools/perf/perf.h
    index 2c340e7..8a68ad3 100644
    --- a/tools/perf/perf.h
    +++ b/tools/perf/perf.h
    @@ -98,6 +98,12 @@ void get_term_dimensions(struct winsize *ws);
    #define CPUINFO_PROC "cpu model"
    #endif

    +#ifdef __arc__
    +#define rmb() asm volatile("" ::: "memory")
    +#define cpu_relax() rmb()
    +#define CPUINFO_PROC "Processor"
    +#endif
    +
    #include <time.h>
    #include <unistd.h>
    #include <sys/types.h>
    --
    1.7.4.1


    \
     
     \ /
      Last update: 2013-01-18 14:21    [W:4.135 / U:0.288 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site