running:
find / -name unistd.h | xargs /bin/grep __NR_perf_event_open

resulted in output of:

/usr/include/asm/unistd.h:#define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
/usr/include/asm-generic/unistd.h:#define __NR_perf_event_open 241
/usr/include/asm-generic/unistd.h:__SYSCALL(__NR_perf_event_open, sys_perf_event_open)
/usr/src/linux-3.1.10-11-ARCH/include/asm-generic/unistd.h:#define __NR_perf_event_open 241
/usr/src/linux-3.1.10-11-ARCH/include/asm-generic/unistd.h:__SYSCALL(__NR_perf_event_open, sys_perf_event_open)
/usr/src/linux-3.1.10-11-ARCH/arch/arm/include/asm/unistd.h:#define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
HTH
Rui


From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
To: Rui DaCosta <ruidc@yahoo.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>; Chris Ferron <chris.e.ferron@linux.intel.com>; "powertop@lists.01.org" <powertop@lists.01.org>
Sent: Tuesday, 22 May 2012, 23:23
Subject: Re: [Powertop] segfault on Sheevaplug (ARM Kirkwood)

On (05/22/12 12:35), Rui DaCosta wrote:
>
>    thanks, same result:
>    PowerTOP v2.0 needs the kernel to support the 'perf' subsystem
>    as well as support for trace points in the kernel:
>
>    CONFIG_PERF_EVENTS=y
>    CONFIG_PERF_COUNTERS=y
>    CONFIG_TRACEPOINTS=y
>    CONFIG_TRACING=y
>
>

Hm...
Could you please tell the number of '__NR_perf_event_open' syscall in your
unistd.h?


    -ss


>    Regards,
>    Rui
>
>    ──────────────────────────────────────────────────────────────────────────
>
>    From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
>    To: Rui DaCosta <ruidc@yahoo.com>
>    Cc: Arjan van de Ven <arjan@linux.intel.com>; Chris Ferron
>    <chris.e.ferron@linux.intel.com>; "powertop@lists.01.org"
>    <powertop@lists.01.org>
>    Sent: Monday, 21 May 2012, 0:17
>    Subject: Re: [Powertop] segfault on Sheevaplug (ARM Kirkwood)
>    On (05/20/12 12:32), Rui DaCosta wrote:
>    >
>    >    it was pointed out to me that  CONFIG_PERF_COUNTERS has been
>    superseded by
>    >    PERF_EVENTS since 2.6.32  - see bottom section of
>    >    [1]http://cateee.net/lkddb/web-lkddb/PERF_COUNTERS.html
>    >    so is  CONFIG_PERF_COUNTERS really required?
>    >
>
>    Could you please try the following patch?
>
>    ---
>
>    src/perf/perf.cpp |    3 +++
>    1 file changed, 3 insertions(+)
>
>    diff --git a/src/perf/perf.cpp b/src/perf/perf.cpp
>    index ce9ae6a..09ca390 100644
>    --- a/src/perf/perf.cpp
>    +++ b/src/perf/perf.cpp
>    @@ -48,6 +48,9 @@
>    #ifdef __alpha__
>    #include <asm-generic/unistd.h>
>    #endif
>    +#ifdef __arm__
>    +#include <asm-generic/unistd.h>
>    +#endif
>
>    #include "perf.h"
>    #include "../lib.h"
>
> References
>
>    Visible links
>    1. http://cateee.net/lkddb/web-lkddb/PERF_COUNTERS.html