mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 20:21:57 +00:00
powerpc/perf_counter: Add perf_counter system call on powerpc
... with an empty/dummy asm/perf_counter.h so it builds. Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
4eb96fcfe0
commit
d662ed2673
10
arch/powerpc/include/asm/perf_counter.h
Normal file
10
arch/powerpc/include/asm/perf_counter.h
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* Performance counter support - PowerPC-specific definitions.
|
||||||
|
*
|
||||||
|
* Copyright 2008-2009 Paul Mackerras, IBM Corporation.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* as published by the Free Software Foundation; either version
|
||||||
|
* 2 of the License, or (at your option) any later version.
|
||||||
|
*/
|
@ -322,3 +322,4 @@ SYSCALL_SPU(epoll_create1)
|
|||||||
SYSCALL_SPU(dup3)
|
SYSCALL_SPU(dup3)
|
||||||
SYSCALL_SPU(pipe2)
|
SYSCALL_SPU(pipe2)
|
||||||
SYSCALL(inotify_init1)
|
SYSCALL(inotify_init1)
|
||||||
|
SYSCALL(perf_counter_open)
|
||||||
|
@ -341,10 +341,11 @@
|
|||||||
#define __NR_dup3 316
|
#define __NR_dup3 316
|
||||||
#define __NR_pipe2 317
|
#define __NR_pipe2 317
|
||||||
#define __NR_inotify_init1 318
|
#define __NR_inotify_init1 318
|
||||||
|
#define __NR_perf_counter_open 319
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
#define __NR_syscalls 319
|
#define __NR_syscalls 320
|
||||||
|
|
||||||
#define __NR__exit __NR_exit
|
#define __NR__exit __NR_exit
|
||||||
#define NR_syscalls __NR_syscalls
|
#define NR_syscalls __NR_syscalls
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
config PPC64
|
config PPC64
|
||||||
bool "64-bit kernel"
|
bool "64-bit kernel"
|
||||||
default n
|
default n
|
||||||
|
select HAVE_PERF_COUNTERS
|
||||||
help
|
help
|
||||||
This option selects whether a 32-bit or a 64-bit kernel
|
This option selects whether a 32-bit or a 64-bit kernel
|
||||||
will be built.
|
will be built.
|
||||||
|
Loading…
Reference in New Issue
Block a user