diff --git a/perftest-Add-sw64-architecture.patch b/perftest-Add-sw64-architecture.patch new file mode 100644 index 0000000000000000000000000000000000000000..d8451f3f632a6d0b4474334ac50c44ac667f2152 --- /dev/null +++ b/perftest-Add-sw64-architecture.patch @@ -0,0 +1,20 @@ +diff -uNar perftest-4.5.org/src/get_clock.h perftest-4.5.sw/src/get_clock.h +--- perftest-4.5.org/src/get_clock.h 2021-10-13 18:12:28.000000000 +0800 ++++ perftest-4.5.sw/src/get_clock.h 2024-09-24 18:48:07.051282768 +0800 +@@ -104,6 +104,16 @@ + asm volatile("mrs %0, cntvct_el0" : "=r" (cval)); + return cval; + } ++#elif defined(__sw_64__) ++ ++typedef unsigned long cycles_t; ++static inline cycles_t get_cycles() ++{ ++ cycles_t cval; ++ asm volatile("memb" : : : "memory"); ++ asm volatile("rtc %0" : "=r" (cval)); ++ return cval; ++} + + #else + #warning get_cycles not implemented for this architecture: attempt asm/timex.h diff --git a/perftest.spec b/perftest.spec index 5694979a8d1dc9b8b2a56a95c1f30f0243c19b3b..0d983a336c11390e20735067f9e91826e368b426 100644 --- a/perftest.spec +++ b/perftest.spec @@ -1,6 +1,6 @@ Name: perftest Version: 4.5 -Release: 3 +Release: 4 License: GPLv2 or BSD Summary: RDMA Performance Testing Tools Url: https://github.com/linux-rdma/perftest @@ -12,6 +12,7 @@ Patch3: 0003-Perftest-Fix-verification-of-max_inline_data-for-_cr.patch Patch4: 0004-Perftest-Increase-max-inline-size-to-support-larger-.patch Patch5: 0005-Perftest-Add-support-for-HNS.patch Patch6: 0006-Perftest-Add-new-HNS-roce-device-ROH-to-support-new_.patch +Patch7: perftest-Add-sw64-architecture.patch BuildRequires: automake gcc libibverbs-devel >= 1.2.0 librdmacm-devel >= 1.0.21 libibumad-devel >= 1.3.10.2 BuildRequires: pciutils-devel @@ -37,6 +38,9 @@ done %_bindir/* %changelog +* Tue Sep 24 2024 wuzx - 4.5-4 +- Add sw64 support + * Tue Nov 22 2022 tangchengchang - 4.5-3 - Type: bugfix - ID: NA