diff options
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r-- | tools/perf/perf.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 87a1aca4a424..ceb68aa51f7f 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -13,12 +13,19 @@ | |||
13 | #define cpu_relax() asm volatile ("" ::: "memory"); | 13 | #define cpu_relax() asm volatile ("" ::: "memory"); |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | #ifdef __s390__ | ||
17 | #include "../../arch/s390/include/asm/unistd.h" | ||
18 | #define rmb() asm volatile("bcr 15,0" ::: "memory") | ||
19 | #define cpu_relax() asm volatile("" ::: "memory"); | ||
20 | #endif | ||
21 | |||
16 | #include <time.h> | 22 | #include <time.h> |
17 | #include <unistd.h> | 23 | #include <unistd.h> |
18 | #include <sys/types.h> | 24 | #include <sys/types.h> |
19 | #include <sys/syscall.h> | 25 | #include <sys/syscall.h> |
20 | 26 | ||
21 | #include "../../include/linux/perf_counter.h" | 27 | #include "../../include/linux/perf_counter.h" |
28 | #include "types.h" | ||
22 | 29 | ||
23 | /* | 30 | /* |
24 | * prctl(PR_TASK_PERF_COUNTERS_DISABLE) will (cheaply) disable all | 31 | * prctl(PR_TASK_PERF_COUNTERS_DISABLE) will (cheaply) disable all |
@@ -65,4 +72,10 @@ sys_perf_counter_open(struct perf_counter_attr *attr, | |||
65 | #define MAX_COUNTERS 256 | 72 | #define MAX_COUNTERS 256 |
66 | #define MAX_NR_CPUS 256 | 73 | #define MAX_NR_CPUS 256 |
67 | 74 | ||
75 | struct perf_file_header { | ||
76 | u64 version; | ||
77 | u64 sample_type; | ||
78 | u64 data_size; | ||
79 | }; | ||
80 | |||
68 | #endif | 81 | #endif |