diff options
-rwxr-xr-x | var/spack/repos/builtin/packages/tiptop/NR_perf_counter_open_aarch64.patch | 13 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/tiptop/package.py | 21 |
2 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tiptop/NR_perf_counter_open_aarch64.patch b/var/spack/repos/builtin/packages/tiptop/NR_perf_counter_open_aarch64.patch new file mode 100755 index 0000000000..7b5aa5a6bb --- /dev/null +++ b/var/spack/repos/builtin/packages/tiptop/NR_perf_counter_open_aarch64.patch @@ -0,0 +1,13 @@ +diff --git a/src/pmc.c b/src/pmc.c +index 3467e1c..d20ad81 100644 +--- a/src/pmc.c ++++ b/src/pmc.c +@@ -22,6 +22,8 @@ + #define __NR_perf_counter_open 319 + #elif defined(__ARM_EABI__) + #define __NR_perf_counter_open 364 ++#elif defined(__aarch64__) ++#define __NR_perf_counter_open 241 + #elif defined(__x86_64__) + #define __NR_perf_counter_open 298 + #elif defined(__i386__) diff --git a/var/spack/repos/builtin/packages/tiptop/package.py b/var/spack/repos/builtin/packages/tiptop/package.py new file mode 100644 index 0000000000..2fb46c678c --- /dev/null +++ b/var/spack/repos/builtin/packages/tiptop/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Tiptop(AutotoolsPackage): + """Tiptop is a performance monitoring tool for Linux.""" + + homepage = "https://github.com/FeCastle/tiptop" + git = "https://github.com/FeCastle/tiptop.git" + + version('master', commit='529886d445ec32febad14246245372a8f244b3eb') + + depends_on('papi') + depends_on('byacc', type='build') + depends_on('flex', type='build') + + patch('NR_perf_counter_open_aarch64.patch', when='target=aarch64:') |