|
|
dfaf77 |
commit 071943b6ffb67047c78bc7e7c370fc41c16ef538
|
|
|
dfaf77 |
Author: William Cohen <wcohen@redhat.com>
|
|
|
dfaf77 |
Date: Fri Oct 11 13:41:41 2013 -0400
|
|
|
dfaf77 |
|
|
|
dfaf77 |
add preliminary aarch64 (arm64) support
|
|
|
dfaf77 |
|
|
|
dfaf77 |
There has been some work to build fedora 19 on 64-bit arm armv8 machines
|
|
|
dfaf77 |
(aarch64). I took a look that the why the papi build was failing. The
|
|
|
dfaf77 |
attached is a set of minimal patches to get papi to build. The patch is
|
|
|
dfaf77 |
just a step toward getting aarch64 support for papi. Things are not all
|
|
|
dfaf77 |
there for papi to work in that environment. Still need libpfm to
|
|
|
dfaf77 |
support aarch64 and papi_events.csv describing mappings to machine
|
|
|
dfaf77 |
specific events.
|
|
|
dfaf77 |
|
|
|
dfaf77 |
diff --git a/src/configure b/src/configure
|
|
|
dfaf77 |
index 7cbd262..3c50e20 100755
|
|
|
dfaf77 |
--- a/src/configure
|
|
|
dfaf77 |
+++ b/src/configure
|
|
|
dfaf77 |
@@ -4262,7 +4262,7 @@ _ACEOF
|
|
|
dfaf77 |
|
|
|
dfaf77 |
# First set pthread-mutexes based on arch
|
|
|
dfaf77 |
case $arch in
|
|
|
dfaf77 |
- arm*)
|
|
|
dfaf77 |
+ aarch64|arm*)
|
|
|
dfaf77 |
pthread_mutexes=yes
|
|
|
dfaf77 |
CFLAGS="$CFLAGS -DUSE_PTHREAD_MUTEXES"
|
|
|
dfaf77 |
echo "forcing use of pthread mutexes... " >&6
|
|
|
dfaf77 |
diff --git a/src/configure.in b/src/configure.in
|
|
|
dfaf77 |
index 2a73ad6..acc8bfc 100644
|
|
|
dfaf77 |
--- a/src/configure.in
|
|
|
dfaf77 |
+++ b/src/configure.in
|
|
|
dfaf77 |
@@ -382,7 +382,7 @@ AC_DEFINE_UNQUOTED(CPU,$CPU,[cpu type])
|
|
|
dfaf77 |
|
|
|
dfaf77 |
# First set pthread-mutexes based on arch
|
|
|
dfaf77 |
case $arch in
|
|
|
dfaf77 |
- arm*)
|
|
|
dfaf77 |
+ aarch64|arm*)
|
|
|
dfaf77 |
pthread_mutexes=yes
|
|
|
dfaf77 |
CFLAGS="$CFLAGS -DUSE_PTHREAD_MUTEXES"
|
|
|
dfaf77 |
echo "forcing use of pthread mutexes... " >&6
|
|
|
dfaf77 |
diff --git a/src/linux-context.h b/src/linux-context.h
|
|
|
dfaf77 |
index 2135695..524490b 100644
|
|
|
dfaf77 |
--- a/src/linux-context.h
|
|
|
dfaf77 |
+++ b/src/linux-context.h
|
|
|
dfaf77 |
@@ -31,6 +31,8 @@ typedef ucontext_t hwd_ucontext_t;
|
|
|
dfaf77 |
#define OVERFLOW_ADDRESS(ctx) ((struct sigcontext *)ctx.ucontext)->si_regs.pc
|
|
|
dfaf77 |
#elif defined(__arm__)
|
|
|
dfaf77 |
#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.arm_pc
|
|
|
dfaf77 |
+#elif defined(__aarch64__)
|
|
|
dfaf77 |
+#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.pc
|
|
|
dfaf77 |
#elif defined(__mips__)
|
|
|
dfaf77 |
#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.pc
|
|
|
dfaf77 |
#else
|
|
|
dfaf77 |
diff --git a/src/linux-timer.c b/src/linux-timer.c
|
|
|
dfaf77 |
index 8e2d21f..9b918cd 100644
|
|
|
dfaf77 |
--- a/src/linux-timer.c
|
|
|
dfaf77 |
+++ b/src/linux-timer.c
|
|
|
dfaf77 |
@@ -215,7 +215,7 @@ get_cycles( void )
|
|
|
dfaf77 |
/* POWER get_cycles() */
|
|
|
dfaf77 |
/************************/
|
|
|
dfaf77 |
|
|
|
dfaf77 |
-#elif (defined(__powerpc__) || defined(__arm__) || defined(__mips__))
|
|
|
dfaf77 |
+#elif (defined(__powerpc__) || defined(__arm__) || defined(__mips__) || defined(__aarch64__))
|
|
|
dfaf77 |
/*
|
|
|
dfaf77 |
* It's not possible to read the cycles from user space on ppc970.
|
|
|
dfaf77 |
* There is a 64-bit time-base register (TBU|TBL), but its
|
|
|
dfaf77 |
commit 479e89a51ee18ba331c86a41be9ff17cd501e6d9
|
|
|
dfaf77 |
Author: William Cohen <wcohen@redhat.com>
|
|
|
dfaf77 |
Date: Wed May 28 17:01:41 2014 -0400
|
|
|
dfaf77 |
|
|
|
dfaf77 |
Add aarch64 Cortex A57 presets
|
|
|
dfaf77 |
|
|
|
dfaf77 |
The events for the ARM Cortex A57 events look to be the same as the
|
|
|
dfaf77 |
events for the ARM Cortex A15 events. Add an entry so the preset are
|
|
|
dfaf77 |
available for the ARM Cortex A57.
|
|
|
dfaf77 |
|
|
|
dfaf77 |
diff --git a/src/papi_events.csv b/src/papi_events.csv
|
|
|
dfaf77 |
index 441844e..dbbc8d8 100644
|
|
|
dfaf77 |
--- a/src/papi_events.csv
|
|
|
dfaf77 |
+++ b/src/papi_events.csv
|
|
|
dfaf77 |
@@ -1473,6 +1473,7 @@ PRESET,PAPI_L1_DCM,NOT_DERIVED,DCACHE_REFILL
|
|
|
dfaf77 |
PRESET,PAPI_L1_ICM,NOT_DERIVED,IFETCH_MISS
|
|
|
dfaf77 |
#
|
|
|
dfaf77 |
CPU,arm_ac15
|
|
|
dfaf77 |
+CPU,arm_ac57
|
|
|
dfaf77 |
#
|
|
|
dfaf77 |
PRESET,PAPI_TOT_INS,NOT_DERIVED,INST_RETIRED
|
|
|
dfaf77 |
PRESET,PAPI_TOT_IIS,NOT_DERIVED,INST_SPEC_EXEC
|