forked from pool/libpfm
- Update to 4.9.0:
* Intel Broadwell EP uncore PMUs support (all PMU boxes) * AMD Fam17h (Zen) core PMU support * IBM Power9 core PMU support * AMD Fam16h (Jaguar) support * various event table updates * various bug fixes - Drop upstream merged patches: * libpfm_add-power9-entries-to-validate_power-c.patch * libpfm_enable-ibm-power9-core-pmu-support-beta.patch * libpfm_fix-power9-event-file-header.patch * libpfm_power9-event-list-update-for-perfmon2.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libpfm?expand=0&rev=27
This commit is contained in:
parent
d49096b10a
commit
33c93b663a
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9193787a73201b4254e3669243fd71d15a9550486920861912090a09f366cf68
|
|
||||||
size 828853
|
|
3
libpfm-4.9.0.tar.gz
Normal file
3
libpfm-4.9.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:db0fbe8ee28fd9beeb5d3e80b7cb3b104debcf6a9fcf5cb8b882f0662c79e4e2
|
||||||
|
size 933147
|
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 17 15:30:33 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Update to 4.9.0:
|
||||||
|
* Intel Broadwell EP uncore PMUs support (all PMU boxes)
|
||||||
|
* AMD Fam17h (Zen) core PMU support
|
||||||
|
* IBM Power9 core PMU support
|
||||||
|
* AMD Fam16h (Jaguar) support
|
||||||
|
* various event table updates
|
||||||
|
* various bug fixes
|
||||||
|
- Drop upstream merged patches:
|
||||||
|
* libpfm_add-power9-entries-to-validate_power-c.patch
|
||||||
|
* libpfm_enable-ibm-power9-core-pmu-support-beta.patch
|
||||||
|
* libpfm_fix-power9-event-file-header.patch
|
||||||
|
* libpfm_power9-event-list-update-for-perfmon2.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 16 17:06:19 UTC 2017 - tonyj@suse.com
|
Wed Aug 16 17:06:19 UTC 2017 - tonyj@suse.com
|
||||||
|
|
||||||
|
18
libpfm.spec
18
libpfm.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libpfm
|
# spec file for package libpfm
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%define vname libpfm4
|
%define vname libpfm4
|
||||||
Name: libpfm
|
Name: libpfm
|
||||||
Version: 4.8.0
|
Version: 4.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library to encode performance events
|
Summary: Library to encode performance events
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -26,14 +26,8 @@ Group: Development/Libraries/C and C++
|
|||||||
Url: http://perfmon2.sourceforge.net/
|
Url: http://perfmon2.sourceforge.net/
|
||||||
Source: http://downloads.sourceforge.net/project/perfmon2/libpfm4/%{name}-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/project/perfmon2/libpfm4/%{name}-%{version}.tar.gz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
Patch1: libpfm_enable-ibm-power9-core-pmu-support-beta.patch
|
|
||||||
Patch2: libpfm_fix-power9-event-file-header.patch
|
|
||||||
Patch3: libpfm_power9-event-list-update-for-perfmon2.patch
|
|
||||||
Patch4: libpfm_add-power9-entries-to-validate_power-c.patch
|
|
||||||
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: swig >= 2.0.5
|
BuildRequires: swig >= 2.0.5
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides a library that can be used to encode events into the
|
This package provides a library that can be used to encode events into the
|
||||||
@ -80,10 +74,6 @@ This package provides python bindings for the libpfm4 package and the perf_event
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
|
||||||
%patch4 -p1
|
|
||||||
# disable werror
|
# disable werror
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's:-Werror::g' \
|
-e 's:-Werror::g' \
|
||||||
@ -118,12 +108,10 @@ python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitea
|
|||||||
%postun -n %{vname} -p /sbin/ldconfig
|
%postun -n %{vname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{vname}
|
%files -n %{vname}
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc README
|
%doc README
|
||||||
%{_libdir}/libpfm.so.*
|
%{_libdir}/libpfm.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
@ -132,11 +120,9 @@ python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitea
|
|||||||
%{_bindir}/evt2raw
|
%{_bindir}/evt2raw
|
||||||
|
|
||||||
%files devel-static
|
%files devel-static
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
|
|
||||||
%files -n python-%{name}
|
%files -n python-%{name}
|
||||||
%defattr(-,root,root)
|
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
From: Will Schmidt <will_schmidt@vnet.ibm.com>
|
|
||||||
Date: Tue, 6 Jun 2017 11:09:17 -0500
|
|
||||||
Subject: add power9 entries to validate_power.c
|
|
||||||
Git-repo: git://git.code.sf.net/p/perfmon2/libpfm4
|
|
||||||
Git-commit: ce5b320031f75f9a9881333c13902d5541f91cc8
|
|
||||||
References: FATE#322254
|
|
||||||
Signed-off-by: Tony Jones <tonyj@suse.de>
|
|
||||||
|
|
||||||
Hi,
|
|
||||||
|
|
||||||
Update the validate_power test to include power9 entries.
|
|
||||||
|
|
||||||
sniff-test run output:
|
|
||||||
$ ./validate
|
|
||||||
Libpfm structure tests:
|
|
||||||
libpfm ABI version : 0
|
|
||||||
pfm_pmu_info_t : Passed
|
|
||||||
pfm_event_info_t : Passed
|
|
||||||
pfm_event_attr_info_t : Passed
|
|
||||||
pfm_pmu_encode_arg_t : Passed
|
|
||||||
pfm_perf_encode_arg_t : Passed
|
|
||||||
Libpfm internal table tests:
|
|
||||||
<snip...>
|
|
||||||
checking power9 (946 events): Passed
|
|
||||||
Architecture specific tests:
|
|
||||||
20 PowerPC events: 0 errors
|
|
||||||
All tests passed
|
|
||||||
|
|
||||||
Signed-off-by: Will Schmidt <will_schmidt@vnet.ibm.com>
|
|
||||||
---
|
|
||||||
tests/validate_power.c | 14 ++++++++++++++
|
|
||||||
1 file changed, 14 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/tests/validate_power.c b/tests/validate_power.c
|
|
||||||
index 74ab30c..617efca 100644
|
|
||||||
--- a/tests/validate_power.c
|
|
||||||
+++ b/tests/validate_power.c
|
|
||||||
@@ -157,6 +157,20 @@ static const test_event_t ppc_test_events[]={
|
|
||||||
.codes[0] = 0xde200201e6ull,
|
|
||||||
.fstr = "power8::PM_RC_LIFETIME_EXC_32",
|
|
||||||
},
|
|
||||||
+ { SRC_LINE,
|
|
||||||
+ .name = "power9::PM_CYC",
|
|
||||||
+ .ret = PFM_SUCCESS,
|
|
||||||
+ .count = 1,
|
|
||||||
+ .codes[0] = 0x1001e,
|
|
||||||
+ .fstr = "power9::PM_CYC",
|
|
||||||
+ },
|
|
||||||
+ { SRC_LINE,
|
|
||||||
+ .name = "power9::PM_INST_DISP",
|
|
||||||
+ .ret = PFM_SUCCESS,
|
|
||||||
+ .count = 1,
|
|
||||||
+ .codes[0] = 0x200f2,
|
|
||||||
+ .fstr = "power9::PM_INST_DISP",
|
|
||||||
+ },
|
|
||||||
{ SRC_LINE,
|
|
||||||
.name = "powerpc_nest_mcs_read::MCS_00",
|
|
||||||
.ret = PFM_SUCCESS,
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,29 +0,0 @@
|
|||||||
From: Stephane Eranian <eranian@gmail.com>
|
|
||||||
Date: Fri, 2 Jun 2017 12:10:17 -0700
|
|
||||||
Subject: fix Power9 event file header
|
|
||||||
Git-repo: git://git.code.sf.net/p/perfmon2/libpfm4
|
|
||||||
Git-commit: 930ef5dbcc5d0d663979e16079aac12a7872d44d
|
|
||||||
References: FATE#322254
|
|
||||||
Signed-off-by: Tony Jones <tonyj@suse.de>
|
|
||||||
|
|
||||||
Had __POWER8_EVENTS_H__ instead of __POWER9_EVENTS_H__
|
|
||||||
|
|
||||||
Signed-off-by: Stephane Eranian <eranian@gmail.com>
|
|
||||||
---
|
|
||||||
lib/events/power9_events.h | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/lib/events/power9_events.h b/lib/events/power9_events.h
|
|
||||||
index 7414687..765e9bd 100644
|
|
||||||
--- a/lib/events/power9_events.h
|
|
||||||
+++ b/lib/events/power9_events.h
|
|
||||||
@@ -20,7 +20,7 @@
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __POWER9_EVENTS_H__
|
|
||||||
-#define __POWER8_EVENTS_H__
|
|
||||||
+#define __POWER9_EVENTS_H__
|
|
||||||
|
|
||||||
#define POWER9_PME_PM_IERAT_RELOAD 0
|
|
||||||
#define POWER9_PME_PM_TM_OUTER_TEND 1
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user