lkml.org 
[lkml]   [2009]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perfcounters: fix a few minor cleanliness issues

* Paul Mackerras <paulus@samba.org> wrote:

> This fixes three issues noticed by Arnd Bergmann:
>
> - Add #ifdef __KERNEL__ and move some things around in perf_counter.h
> to make sure only the bits that userspace needs are exported to
> userspace.
>
> - Use __u64, __s64, __u32 types in the structs exported to userspace
> rather than u64, s64, u32.
>
> - Make the sys_perf_counter_open syscall available to the SPUs on
> Cell platforms.
>
> And one issue that I noticed in looking at the code again:
>
> - Wrap the perf_counter_open syscall with SYSCALL_DEFINE4 so we get
> the proper handling of int arguments on ppc64 (and some other 64-bit
> architectures).
>
> Reported-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Paul Mackerras <paulus@samba.org>
> ---
> This is in the master branch of my perfcounters.git tree at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/paulus/perfcounters.git master
>
> arch/powerpc/include/asm/systbl.h | 2 +-
> include/linux/perf_counter.h | 43 +++++++++++++++++++-----------------
> include/linux/syscalls.h | 9 ++-----
> kernel/perf_counter.c | 6 ++--
> 4 files changed, 30 insertions(+), 30 deletions(-)

Pulled into tip:perfcounters/core, thanks Paul!

Ingo


\
 
 \ /
  Last update: 2009-02-26 13:07    [W:0.194 / U:1.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site