parisc: perf: wire up sys_perf_counter_open

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

+15 -1
+1
arch/parisc/Kconfig
··· 16 select RTC_DRV_GENERIC 17 select INIT_ALL_POSSIBLE 18 select BUG 19 help 20 The PA-RISC microprocessor is designed by Hewlett-Packard and used 21 in many of their workstations & servers (HP9000 700 and 800 series,
··· 16 select RTC_DRV_GENERIC 17 select INIT_ALL_POSSIBLE 18 select BUG 19 + select HAVE_PERF_COUNTERS 20 help 21 The PA-RISC microprocessor is designed by Hewlett-Packard and used 22 in many of their workstations & servers (HP9000 700 and 800 series,
+7
arch/parisc/include/asm/perf_counter.h
···
··· 1 + #ifndef __ASM_PARISC_PERF_COUNTER_H 2 + #define __ASM_PARISC_PERF_COUNTER_H 3 + 4 + /* parisc only supports software counters through this interface. */ 5 + static inline void set_perf_counter_pending(void) { } 6 + 7 + #endif /* __ASM_PARISC_PERF_COUNTER_H */
+1 -1
arch/parisc/kernel/syscall_table.S
··· 416 ENTRY_COMP(preadv) /* 315 */ 417 ENTRY_COMP(pwritev) 418 ENTRY_COMP(rt_tgsigqueueinfo) 419 - ENTRY_SAME(ni_syscall) 420 421 /* Nothing yet */ 422
··· 416 ENTRY_COMP(preadv) /* 315 */ 417 ENTRY_COMP(pwritev) 418 ENTRY_COMP(rt_tgsigqueueinfo) 419 + ENTRY_SAME(perf_counter_open) 420 421 /* Nothing yet */ 422
+6
tools/perf/perf.h
··· 19 #define cpu_relax() asm volatile("" ::: "memory"); 20 #endif 21 22 #include <time.h> 23 #include <unistd.h> 24 #include <sys/types.h>
··· 19 #define cpu_relax() asm volatile("" ::: "memory"); 20 #endif 21 22 + #ifdef __hppa__ 23 + #include "../../arch/parisc/include/asm/unistd.h" 24 + #define rmb() asm volatile("" ::: "memory") 25 + #define cpu_relax() asm volatile("" ::: "memory"); 26 + #endif 27 + 28 #include <time.h> 29 #include <unistd.h> 30 #include <sys/types.h>