From 3c688f324af7b1d7317c7bb4a2061a3d5f3e11d9 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Jun 16 2014 12:18:21 +0000 Subject: Added AArch64 support --- diff --git a/0004-add-AArch64-support.patch b/0004-add-AArch64-support.patch new file mode 100644 index 0000000..6578180 --- /dev/null +++ b/0004-add-AArch64-support.patch @@ -0,0 +1,46 @@ +From b44c4130b30f451555509bae18293fb61b15a9cd Mon Sep 17 00:00:00 2001 +From: Marcin Juszkiewicz +Date: Mon, 16 Jun 2014 12:25:49 +0200 +Subject: [PATCH] add AArch64 support + +--- + configure.ac | 4 +++- + src/ticks_os.h | 2 +- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 6584172..5a15361 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -30,6 +30,7 @@ case "$host" in + powerpc-*-freebsd*) TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc;; + powerpc*-*-rtems*) TARGET=POWERPC; TARGETDIR=powerpc;; + x86_64-*-*) TARGET=X86_64; TARGETDIR=x86;; ++ aarch64-*-*) TARGET=AARCH64; TARGETDIR=aarch64;; + esac + + AC_SUBST(AM_RUNTESTFLAGS) +@@ -46,6 +47,7 @@ AM_CONDITIONAL(ARM, test x$TARGET = xARM) + AM_CONDITIONAL(POWERPC_AIX, test x$TARGET = xPOWERPC_AIX) + AM_CONDITIONAL(POWERPC_DARWIN, test x$TARGET = xPOWERPC_DARWIN) + AM_CONDITIONAL(POWERPC_FREEBSD, test x$TARGET = xPOWERPC_FREEBSD) ++AM_CONDITIONAL(AARCH64, test x$TARGET = xAARCH64) + + AC_SUBST(TARGET) + AC_SUBST(TARGETDIR) +diff --git a/src/ticks_os.h b/src/ticks_os.h +index 493a6d4..085e52e 100644 +--- a/src/ticks_os.h ++++ b/src/ticks_os.h +@@ -89,7 +89,7 @@ inline ticks_t os_gettimeoftsc() + #else + register uint32_t upper_32, lower_32; + +-#if defined(__arm__) ++#if defined(__arm__) || defined(__aarch64__) + // so the compiler will not complain. for + // arm compile, this inline is not used + // since no rdtsc supported on most arm processors +-- +2.0.0 + diff --git a/sockperf.spec b/sockperf.spec index 7f6f679..39284c9 100644 --- a/sockperf.spec +++ b/sockperf.spec @@ -1,6 +1,6 @@ Name: sockperf Version: 2.5.241 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Network benchmarking utility for testing latency and throughput License: BSD @@ -9,6 +9,7 @@ Source0: https://sockperf.googlecode.com/files/%{name}-%{version}.tar.gz Patch1: 0001-Don-t-throw-away-Fedora-s-CXXFLAGS.patch Patch2: 0002-drop-the-sockperf_-version-copy-of-the-binary.patch Patch3: 0003-doc-installation-fixes.patch +Patch4: 0004-add-AArch64-support.patch BuildRequires: autoconf automake git BuildRequires: doxygen @@ -72,6 +73,9 @@ make %{?_smp_mflags} %changelog +* Mon Jun 16 2014 Marcin Juszkiewicz - 2.5.241-5 +- Added AArch64 support + * Sun Jun 08 2014 Fedora Release Engineering - 2.5.241-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild