Add new package: tiptop (#17907)

* Add new package: tiptop

* fix flake8 error

* tiptop: remove sha256 value
This commit is contained in:
darmac 2020-08-11 10:26:21 +08:00 committed by GitHub
parent 84a97d8372
commit 00bdff81ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -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__)

View File

@ -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:')