Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758595AbaKUQYn (ORCPT ); Fri, 21 Nov 2014 11:24:43 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:59825 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783AbaKUQYm (ORCPT ); Fri, 21 Nov 2014 11:24:42 -0500 From: Daniel Thompson To: Russell King , Will Deacon , Catalin Marinas Cc: Daniel Thompson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , patches@linaro.org, linaro-kernel@lists.linaro.org, John Stultz , Sumit Semwal Subject: [PATCH v2 0/2] arm+arm64: perf: Prevent wraparound during overflow Date: Fri, 21 Nov 2014 16:24:25 +0000 Message-Id: <1416587067-3220-1-git-send-email-daniel.thompson@linaro.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1416412346-8759-1-git-send-email-daniel.thompson@linaro.org> References: <1416412346-8759-1-git-send-email-daniel.thompson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes problems on arm and arm64 when the PMU counters wrap around and become larger than the value originally programmed into them. The problem was observed and fixed on arm but the perf code is, rather to my surprise, sufficiently similar on arm64 that the fix still makes sense there too. v2: * Remove the redundant cast to s64 (Will Deacon). Daniel Thompson (2): arm: perf: Prevent wraparound during overflow arm64: perf: Prevent wraparound during overflow arch/arm/kernel/perf_event.c | 10 ++++++++-- arch/arm64/kernel/perf_event.c | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/