diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-09-04 02:56:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-04 02:56:22 -0700 |
commit | 825c9fb47a0837db12fecf8d360e0e1d284ddb49 (patch) | |
tree | 555effec5a598bb8de43fc49b801b8ef403f5ffd /tools | |
parent | a29889a5369d2604c2053bcd051519a2445d8a70 (diff) | |
download | linux-825c9fb47a0837db12fecf8d360e0e1d284ddb49.tar.gz linux-825c9fb47a0837db12fecf8d360e0e1d284ddb49.tar.bz2 linux-825c9fb47a0837db12fecf8d360e0e1d284ddb49.zip |
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>
Diffstat (limited to 'tools')
-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 e5148e2b6134..2abeb20d0bf3 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -41,6 +41,12 @@ #define cpu_relax() asm volatile("" ::: "memory"); #endif +#ifdef __sparc__ +#include "../../arch/sparc/include/asm/unistd.h" +#define rmb() asm volatile("":::"memory") +#define cpu_relax() asm volatile("":::"memory") +#endif + #include <time.h> #include <unistd.h> #include <sys/types.h> |