diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-22 06:08:22 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-22 06:08:24 -0400 |
commit | 12310e9c1b9a53896e4df0459039dd125f62aa9b (patch) | |
tree | 99a629bc1711c72e67ab0e9e86730ef69a563bad /tools/perf/perf.h | |
parent | 181d95229b0931ee2ce6aad7348079cbc10e8d05 (diff) |
[S390] Enable tick based perf_counter on s390.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r-- | tools/perf/perf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index bccb529dac08..ceb68aa51f7f 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -13,6 +13,12 @@ | |||
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> |