[P9,POwer NV] Perf PMU event : pm_br_2path and pm_ld_miss_l1 is counted twice when perf stat is done (perf:)

Bug #1714571 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Fix Released
Medium
Canonical Kernel Team
linux (Ubuntu)
Fix Released
Medium
Seth Forshee

Bug Description

== Comment: #0 - Sukadev Bhattiprolu - 2017-09-01 12:56:47 ==

---Problem Description---
Problem description :
=============
Perf PMU event : pm_br_2path and pm_ld_miss_l1 is counted twice , it is because two raw point to the same name.

[
  {,
    "EventCode": "0x20036",
    "EventName": "PM_BR_2PATH",
    "BriefDescription": "Branches that are not strongly biased",
    "PublicDescription": ""
  },
  {,
    "EventCode": "0x40036",
    "EventName": "PM_BR_2PATH",
    "BriefDescription": "Branches that are not strongly biased",
    "PublicDescription": ""
  },

Ex :
===

[root@zzfp189p1 ~]# perf stat -e pm_br_2path sleep 1

 Performance counter stats for 'sleep 1':

            30,163 pm_br_2path
     <not counted> pm_br_2path (0.00%)

       1.002046416 seconds time elapsed

[root@zzfp189p1 ~]# perf stat -e pm_ld_miss_l1 sleep 1

 Performance counter stats for 'sleep 1':

             9,217 pm_ld_miss_l1
     <not counted> pm_ld_miss_l1 (0.00%)

       1.001956110 seconds time elapsed

---Steps to Reproduce---
 Steps to reproduce :
============
1. Install perf (linux-tools)
2. Run
    perf stat -e pm_ld_miss_l1 sleep 1
    perf stat -e pm_br_2path sleep 1

== Comment: #1 - Sukadev Bhattiprolu - 2017-09-01 12:58:16 ==
The fix for this bug was pulled into Arnaldo's tree:

https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/commit/?h=perf/core&id=828e291e2982a7c10a62aa32195d0cb501cedaae

CVE References

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-158230 severity-medium targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
affects: ubuntu → linux (Ubuntu)
Changed in ubuntu-power-systems:
importance: Undecided → Medium
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Can you post a link here when this patch gets pulled into linux-next or mainline?

tags: added: kernel-da-key
Changed in linux (Ubuntu):
status: New → Triaged
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2017-09-05 17:51 EDT-------
The patch was merged into perf-tip by Ingo Molnar, here:

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit?id=770e96125515daf1c7bc179323f2e0d488dfe6ac

Seth Forshee (sforshee)
Changed in linux (Ubuntu):
assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Seth Forshee (sforshee)
status: Triaged → In Progress
Seth Forshee (sforshee)
Changed in linux (Ubuntu):
status: In Progress → Fix Committed
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 4.13.0-11.12

---------------
linux (4.13.0-11.12) artful; urgency=low

  * linux: 4.13.0-11.12 -proposed tracker (LP: #1716699)

  * kernel panic -not syncing: Fatal exception: panic_on_oops (LP: #1708399)
    - s390/mm: fix local TLB flushing vs. detach of an mm address space
    - s390/mm: fix race on mm->context.flush_mm

  * CVE-2017-1000251
    - Bluetooth: Properly check L2CAP config option output buffer length

 -- Seth Forshee <email address hidden> Tue, 12 Sep 2017 10:18:38 -0500

Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
Changed in ubuntu-power-systems:
status: Fix Committed → Fix Released
bugproxy (bugproxy)
tags: added: targetmilestone-inin1710
removed: targetmilestone-inin---
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.