Add new package: tiptop (#17907)
* Add new package: tiptop * fix flake8 error * tiptop: remove sha256 value
This commit is contained in:
parent
84a97d8372
commit
00bdff81ae
13
var/spack/repos/builtin/packages/tiptop/NR_perf_counter_open_aarch64.patch
Executable file
13
var/spack/repos/builtin/packages/tiptop/NR_perf_counter_open_aarch64.patch
Executable 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__)
|
21
var/spack/repos/builtin/packages/tiptop/package.py
Normal file
21
var/spack/repos/builtin/packages/tiptop/package.py
Normal 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:')
|
Loading…
Reference in New Issue
Block a user