diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-08-11 10:26:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 21:26:21 -0500 |
commit | 00bdff81ae157c5a6fd3acf080ed4eda35438434 (patch) | |
tree | 8e7b960287446d6c3aed9ad595069cc82c7e4458 | |
parent | 84a97d8372355ea5063f9ac9eaa2fbeb2e7bd74a (diff) | |
download | spack-00bdff81ae157c5a6fd3acf080ed4eda35438434.tar.gz spack-00bdff81ae157c5a6fd3acf080ed4eda35438434.tar.bz2 spack-00bdff81ae157c5a6fd3acf080ed4eda35438434.tar.xz spack-00bdff81ae157c5a6fd3acf080ed4eda35438434.zip |
Add new package: tiptop (#17907)
* Add new package: tiptop
* fix flake8 error
* tiptop: remove sha256 value
-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:') |