Bug#858186: unblock: libpfm4/4.8.0-2

2017-03-20 Thread Emilio Pozuelo Monfort
On 19/03/17 20:59, Andreas Beckmann wrote:
> On 2017-03-19 20:10, Emilio Pozuelo Monfort wrote:
>>> +.PHONE: override dh_auto_test
>>> +override_dh_auto_test:
>>> +   ./tests/validate
>>> +
>>
>> Did you mean PHONY there?
> 
> picked that from Ubuntu ... without noticing both errors :-(
> Of course this should be
> 
> .PHONY: override_dh_auto_test
>  ^  ^
> 
> but it should be harmless the "broken" way it is now

Yeah. I don't think you need those targets to be phony anyway.

Emilio



Bug#858186: unblock: libpfm4/4.8.0-2

2017-03-19 Thread Andreas Beckmann
On 2017-03-19 20:10, Emilio Pozuelo Monfort wrote:
>> +.PHONE: override dh_auto_test
>> +override_dh_auto_test:
>> +./tests/validate
>> +
> 
> Did you mean PHONY there?

picked that from Ubuntu ... without noticing both errors :-(
Of course this should be

.PHONY: override_dh_auto_test
 ^  ^

but it should be harmless the "broken" way it is now

Thanks for catching that!


Andreas



Bug#858186: unblock: libpfm4/4.8.0-2

2017-03-19 Thread Emilio Pozuelo Monfort
On 19/03/17 16:30, Andreas Beckmann wrote:
> Package: release.debian.org
> Severity: normal
> User: release.debian@packages.debian.org
> Usertags: unblock
> 
> Please unblock package libpfm4
> 
> It contains a few patches cherry picked from upstream fixing/improving
> event definitions to better support newer CPUs.
> 
> unblock libpfm4/4.8.0-2

> --- libpfm4-4.8.0/debian/rules2016-11-07 15:46:31.0 +0100
> +++ libpfm4-4.8.0/debian/rules2017-03-11 02:47:54.0 +0100
> @@ -36,6 +36,10 @@
>   LDFLAGS="$(filter-out -pie,$(LDFLAGS))" \
>   dh_auto_build --sourcedirectory=python --buildsystem=python_distutils
>  
> +.PHONE: override dh_auto_test
> +override_dh_auto_test:
> + ./tests/validate
> +

Did you mean PHONY there?

Emilio



Bug#858186: unblock: libpfm4/4.8.0-2

2017-03-19 Thread Andreas Beckmann
Package: release.debian.org
Severity: normal
User: release.debian@packages.debian.org
Usertags: unblock

Please unblock package libpfm4

It contains a few patches cherry picked from upstream fixing/improving
event definitions to better support newer CPUs.

unblock libpfm4/4.8.0-2

Andreas
diff -Nru libpfm4-4.8.0/debian/changelog libpfm4-4.8.0/debian/changelog
--- libpfm4-4.8.0/debian/changelog	2016-11-07 15:46:31.0 +0100
+++ libpfm4-4.8.0/debian/changelog	2017-03-11 02:47:54.0 +0100
@@ -1,3 +1,13 @@
+libpfm4 (4.8.0-2) unstable; urgency=medium
+
+  [ Andreas Beckmann ]
+  * Cherry-pick event fixes, event additions and RAPL support for newer CPUs.
+
+  [ Dimitri John Ledkov ]
+  * Execute validation tests at build time. LP: #1521969
+
+ -- Andreas Beckmann   Sat, 11 Mar 2017 02:47:54 +0100
+
 libpfm4 (4.8.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru libpfm4-4.8.0/debian/patches/0001-Fix-offcore_response-for-Intel-BDW-EP.patch libpfm4-4.8.0/debian/patches/0001-Fix-offcore_response-for-Intel-BDW-EP.patch
--- libpfm4-4.8.0/debian/patches/0001-Fix-offcore_response-for-Intel-BDW-EP.patch	1970-01-01 01:00:00.0 +0100
+++ libpfm4-4.8.0/debian/patches/0001-Fix-offcore_response-for-Intel-BDW-EP.patch	2017-03-11 02:47:54.0 +0100
@@ -0,0 +1,102 @@
+From 05edb2f56598752e14071009c3c52cb22ae6036b Mon Sep 17 00:00:00 2001
+From: Stephane Eranian 
+Date: Sun, 5 Feb 2017 00:35:24 -0800
+Subject: [PATCH 1/3] Fix offcore_response for Intel BDW-EP
+
+The umasks was missing all the L3_HIT umasks because
+they wer all marked as Broadwell (client) only.
+
+Signed-off-by: Stephane Eranian 
+---
+ lib/events/intel_bdw_events.h | 12 
+ 1 file changed, 12 deletions(-)
+
+diff --git a/lib/events/intel_bdw_events.h b/lib/events/intel_bdw_events.h
+index fba5ad2..ba5d1f7 100644
+--- a/lib/events/intel_bdw_events.h
 b/lib/events/intel_bdw_events.h
+@@ -1746,81 +1746,69 @@ static const intel_x86_umask_t bdw_offcore_response[]={
+{ .uname  = "L3_HITM",
+  .udesc  = "Supplier: counts L3 hits in M-state (initial lookup)",
+  .ucode = 1ULL << (18+8),
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid = 1,
+},
+{ .uname  = "LLC_HITM",
+  .udesc  = "Supplier: counts L3 hits in M-state (initial lookup)",
+  .ucode = 1ULL << (18+8),
+  .uequiv = "L3_HITM",
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid = 1,
+},
+{ .uname  = "L3_HITE",
+  .udesc  = "Supplier: counts L3 hits in E-state",
+  .ucode = 1ULL << (19+8),
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid = 1,
+},
+{ .uname  = "LLC_HITE",
+  .udesc  = "Supplier: counts L3 hits in E-state",
+  .ucode = 1ULL << (19+8),
+  .uequiv = "L3_HITE",
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid = 1,
+},
+{ .uname  = "L3_HITS",
+  .udesc  = "Supplier: counts L3 hits in S-state",
+  .ucode = 1ULL << (20+8),
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid = 1,
+},
+{ .uname  = "LLC_HITS",
+  .udesc  = "Supplier: counts L3 hits in S-state",
+  .ucode = 1ULL << (20+8),
+  .uequiv = "L3_HITS",
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid = 1,
+},
+{ .uname  = "L3_HITF",
+  .udesc  = "Supplier: counts L3 hits in F-state",
+  .ucode = 1ULL << (21+8),
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid = 1,
+},
+{ .uname  = "LLC_HITF",
+  .udesc  = "Supplier: counts L3 hits in F-state",
+  .ucode = 1ULL << (20+8),
+  .uequiv = "L3_HITF",
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid = 1,
+},
+{ .uname  = "L3_HITMESF",
+  .udesc  = "Supplier: counts L3 hits in any state (M, E, S, F)",
+  .ucode  = 0xfULL << (18+8),
+  .uequiv = "L3_HITM:L3_HITE:L3_HITS:L3_HITF",
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid  = 1,
+},
+{ .uname  = "LLC_HITMESF",
+  .udesc  = "Supplier: counts L3 hits in any state (M, E, S, F)",
+  .ucode  = 0xfULL << (18+8),
+  .uequiv = "L3_HITMESF",
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid  = 1,
+},
+{ .uname  = "L3_HIT",
+  .udesc  = "Alias for L3_HITMESF",
+  .ucode  = 0xfULL << (18+8),
+  .uequiv = "L3_HITM:L3_HITE:L3_HITS:L3_HITF",
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid  = 1,
+},
+{ .uname  = "LLC_HIT",
+  .udesc  = "Alias for LLC_HITMESF",
+  .ucode  = 0xfULL << (18+8),
+  .uequiv = "L3_HITM:L3_HITE:L3_HITS:L3_HITF",
+- .umodel = PFM_PMU_INTEL_BDW,
+  .grpid  = 1,
+},
+{ .uname  = "L3_MISS_LOCAL",
+-- 
+2.11.0
+
diff -Nru libpfm4-4.8.0/debian/patches/0002-add-UOPS_DISPATCHED_PORT-event-for-Intel-Skylake.patch libpfm4-4.8.0/debian/patches/0002-add-UOPS_DISPATCHED_PORT-event-for-Intel-Skylake.patch
--- libpfm4-4.8.0/debian/patches/0002-add-UOPS_DISPATCHED_PORT-event-for-Intel-Skylake.patch	1970-01-01 01:00:00.0 +0100
+++