sparc: add basic support for 'perf'
This wires up the perf_counter_open() syscall so that basic software support for perf is working. Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a29889a536
commit
825c9fb47a
8
arch/sparc/include/asm/perf_counter.h
Normal file
8
arch/sparc/include/asm/perf_counter.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef __ASM_SPARC_PERF_COUNTER_H
|
||||
#define __ASM_SPARC_PERF_COUNTER_H
|
||||
|
||||
static inline void set_perf_counter_pending(void) { }
|
||||
|
||||
#define PERF_COUNTER_INDEX_OFFSET 0
|
||||
|
||||
#endif
|
@@ -395,8 +395,9 @@
|
||||
#define __NR_preadv 324
|
||||
#define __NR_pwritev 325
|
||||
#define __NR_rt_tgsigqueueinfo 326
|
||||
#define __NR_perf_counter_open 327
|
||||
|
||||
#define NR_SYSCALLS 327
|
||||
#define NR_SYSCALLS 328
|
||||
|
||||
#ifdef __32bit_syscall_numbers__
|
||||
/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
|
||||
|
Reference in New Issue
Block a user