libpfm-4.11.1-f6500e77-GCCcore-10.3.0.eb 1.47 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Separate easyconfig for libpfm
easyblock = 'ConfigureMake'

name = 'libpfm'
version = '4.11.1-f6500e77'

homepage = 'http://perfmon2.sourceforge.net/'
description = """This package provides a library, called libpfm4 which is used to develop
monitoring tools exploiting the performance monitoring events such as those
provided by the Performance Monitoring Unit (PMU) of modern processors.
"""


toolchain = {'name': 'GCCcore', 'version': '10.3.0'}
toolchainopts = {'pic': True}

sources = [{
    'filename': '%(name)s-%(version)s.tar.gz',
    'git_config': {
        'url': 'https://git.code.sf.net/p/perfmon2/',
        'repo_name': 'libpfm4',
        'commit': 'f6500e77',
        'recursive': False,
    },
}]

Stepan Nassyr's avatar
Stepan Nassyr committed
27
28
29
30
31
32
33
34
patches = [
           # Patches for Kunpeng920 from https://sourceforge.net/p/perfmon2/libpfm4/merge-requests/17/
           # As of 2021-07-10 the merge request is still pending
           '0001-Adds-support-for-HiSilicon-Kunpeng-920-core-and-unco.patch',
           '0002-Updates-num_cntrs-and-some-cleanup.patch',
           # Patch for Cortex-A72 (for Hi1616)
           'libpfm4-add-cortex-a72.patch',
]
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

dependencies = [
    ('binutils', '2.36.1')
]

configure_cmd = "echo nothing to configure"

install_cmd = "make PREFIX=%(installdir)s install"

sanity_check_paths = {
    'files': ['lib/libpfm.so'] + ['include/perfmon/%s' % header for header in ['perf_event.h', 'pfmlib.h', 'pfmlib_perf_event.h']],
    'dirs': ['include/perfmon','lib','share/man/man3']
}


moduleclass = 'perf'