From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbbJMHJ7 (ORCPT ); Tue, 13 Oct 2015 03:09:59 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:32773 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752478AbbJMHJ4 (ORCPT ); Tue, 13 Oct 2015 03:09:56 -0400 From: Stephane Eranian To: linux-kernel@vger.kernel.org Cc: acme@redhat.com, peterz@infradead.org, mingo@elte.hu, ak@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, khandual@linux.vnet.ibm.com Subject: [PATCH 3/4] perf/powerpc: add support for PERF_SAMPLE_BRANCH_CALL Date: Tue, 13 Oct 2015 09:09:10 +0200 Message-Id: <1444720151-10275-4-git-send-email-eranian@google.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444720151-10275-1-git-send-email-eranian@google.com> References: <1444720151-10275-1-git-send-email-eranian@google.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch catches PERF_SAMPLE_BRANCH_CALL because it is not clear whether this is actually supported by the hardware. Signed-off-by: Stephane Eranian --- arch/powerpc/perf/power8-pmu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index 396351d..7d5e295 100644 --- a/arch/powerpc/perf/power8-pmu.c +++ b/arch/powerpc/perf/power8-pmu.c @@ -676,6 +676,9 @@ static u64 power8_bhrb_filter_map(u64 branch_sample_type) if (branch_sample_type & PERF_SAMPLE_BRANCH_IND_CALL) return -1; + if (branch_sample_type & PERF_SAMPLE_BRANCH_CALL) + return -1; + if (branch_sample_type & PERF_SAMPLE_BRANCH_ANY_CALL) { pmu_bhrb_filter |= POWER8_MMCRA_IFM1; return pmu_bhrb_filter; -- 1.9.1