[PATCH 5/5] arm-cci: Fix CCI PMU event validation

2015-03-18 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" We mask the event with the CCI_PMU_EVENT_MASK, before passing the config to pmu_validate_hw_event(), which causes extra bits to be ignored and qualifies an invalid event code as valid. e.g, $ perf stat -a -C 0 -e CCI_400/config=0x1ff,name=cycles/ sleep 1

[PATCH 5/5] arm-cci: Fix CCI PMU event validation

2015-03-18 Thread Suzuki K. Poulose
From: Suzuki K. Poulose suzuki.poul...@arm.com We mask the event with the CCI_PMU_EVENT_MASK, before passing the config to pmu_validate_hw_event(), which causes extra bits to be ignored and qualifies an invalid event code as valid. e.g, $ perf stat -a -C 0 -e CCI_400/config=0x1ff,name=cycles/

Re: [PATCH 5/5] arm-cci: Fix CCI PMU event validation

2015-03-17 Thread Will Deacon
On Tue, Mar 10, 2015 at 03:18:55PM +, Suzuki K. Poulose wrote: > From: "Suzuki K. Poulose" > > We mask the event with the CCI_PMU_EVENT_MASK, before passing > the config to pmu_validate_hw_event(), which causes extra bits > to be ignored and qualifies an invalid event code as valid. > >

Re: [PATCH 5/5] arm-cci: Fix CCI PMU event validation

2015-03-17 Thread Will Deacon
On Tue, Mar 10, 2015 at 03:18:55PM +, Suzuki K. Poulose wrote: From: Suzuki K. Poulose suzuki.poul...@arm.com We mask the event with the CCI_PMU_EVENT_MASK, before passing the config to pmu_validate_hw_event(), which causes extra bits to be ignored and qualifies an invalid event code as

[PATCH 5/5] arm-cci: Fix CCI PMU event validation

2015-03-10 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" We mask the event with the CCI_PMU_EVENT_MASK, before passing the config to pmu_validate_hw_event(), which causes extra bits to be ignored and qualifies an invalid event code as valid. e.g, $ perf stat -a -C 0 -e CCI_400/config=0x1ff,name=cycles/ sleep 1

[PATCH 5/5] arm-cci: Fix CCI PMU event validation

2015-03-10 Thread Suzuki K. Poulose
From: Suzuki K. Poulose suzuki.poul...@arm.com We mask the event with the CCI_PMU_EVENT_MASK, before passing the config to pmu_validate_hw_event(), which causes extra bits to be ignored and qualifies an invalid event code as valid. e.g, $ perf stat -a -C 0 -e CCI_400/config=0x1ff,name=cycles/

[PATCH 5/5] arm-cci: Fix CCI PMU event validation

2015-03-02 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" We mask the event with the CCI_PMU_EVENT_MASK, before passing the config to pmu_validate_hw_event(), which causes extra bits to be ignored and qualifies an invalid event code as valid. e.g, $ perf stat -a -C 0 -e CCI_400/config=0x1ff,name=cycles/ sleep 1

[PATCH 5/5] arm-cci: Fix CCI PMU event validation

2015-03-02 Thread Suzuki K. Poulose
From: Suzuki K. Poulose suzuki.poul...@arm.com We mask the event with the CCI_PMU_EVENT_MASK, before passing the config to pmu_validate_hw_event(), which causes extra bits to be ignored and qualifies an invalid event code as valid. e.g, $ perf stat -a -C 0 -e CCI_400/config=0x1ff,name=cycles/