Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2441761imu; Mon, 17 Dec 2018 01:56:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/WWER1m9bjOV2WepxhpnjJ6x1BPLtY/CbWG+8Uog/1Ie7mxYFDoDcUJ6bnPDjZp/i30ve9F X-Received: by 2002:a17:902:28aa:: with SMTP id f39mr12235135plb.297.1545040561835; Mon, 17 Dec 2018 01:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040561; cv=none; d=google.com; s=arc-20160816; b=yxagd/GXE3k02u4EKHxWUHBnuK4VC5oyj4vU68EK+q3iD0sAgwEsCMfPB1p+V+bGNB tPAGDnRjO8l4jGGmkqIocTFtzbj+c2GD4FWq/eEW2/Da5sU+ZVALL3xgDtaiAhfZuhVe i4Mm+PSd6nk2N/7z/0ud8A3EU0lddZWDVnDefDIpWTV9SWd8efbSMfZNZG1GRdGyIKrV EZkzLTEjRXQZE6pTrL4AU/GJY2Hyj22NUEevRkWnBCFaXP2IJ2mZ/cwR8aYrAow0YGU5 eyT5337V2WL/2h9dgjKSNOgDWEDIoQoJoFt1Pwzcy8xgaExBNEM89jpG5/G4XIlCGW0B ohzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=a9C0oFBRyI+zB+dsjd6xJMJKNDLZkWtY1/kuwRcu6bM=; b=kMi0nCMLKDx3ukmkYvbwrtyq80AUsjM0ENSRSJhMe83HWj9Qlqm+rjApps1wsJVL33 0ZTbFG5IZh7GqpMdQ1q8zoM9G2Y8PpZLjoutLvl6B/h+Fiyme4p8VREWMTP53jkzcDjH LGtJarnxzAH0JBQOX6meyKWfMq+Ct/Q41bcXUTZwqdeJDwPCJLNMRtNoRVTCK6kGMFG3 6W5rJCJKs+pphOJqaOWMrTixn6Ht6Z3XXE4LP+DqrB0Ppm6XVLbKjlM959KLSQh88K1E WlwOobJwI9g7ufSesTVpn0qRDYB9uJip5+aGSyRfn2dMb1HrJcPX/oct2uEt+SetDIFl 6Exw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=JZa2KT7L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si10879278plo.217.2018.12.17.01.55.46; Mon, 17 Dec 2018 01:56:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=JZa2KT7L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732125AbeLQJya (ORCPT + 99 others); Mon, 17 Dec 2018 04:54:30 -0500 Received: from smtprelay2.synopsys.com ([198.182.60.111]:40906 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726505AbeLQJya (ORCPT ); Mon, 17 Dec 2018 04:54:30 -0500 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 65D1210C10C8; Mon, 17 Dec 2018 01:54:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1545040469; bh=YHaOX3TXlGzwqXkDu6KQt5ukWm2yD2rBTZVbL5xobGs=; h=From:To:Cc:Subject:Date:From; b=JZa2KT7L0IDySSjAaVbDl1XugwvDKDJvUAaHbCqqmDsnZS99pSaiL1qBtZ4qLC6M4 Dqe2XUE6JKeKbNyHqvHthBhJBjuHH9JBaBbr2O2Dt8DPBcXcllnjMQ5RMFuRenDici oOgICo3YKxJVDPn4o5ntoTg/xpwlm17yBZrtcViibq685vf8hoi/cJE3RgkeGc+mwK Ub4LPjAj0cqmrwVDbGVIn7OFlkG352VLmhlzVw7LI1bFIkTtJEaoD+xr6H6v8mAgt7 rmAWz73D19V2F9/lV8eOOlFQAPJCNl5z67C0uC/JaZzp7zDPGeG56ZttXgz3D5NLAj 2mjE3AeW/f0MA== Received: from paltsev-e7480.internal.synopsys.com (paltsev-e7480.internal.synopsys.com [10.121.3.66]) by mailhost.synopsys.com (Postfix) with ESMTP id D348434FC; Mon, 17 Dec 2018 01:54:25 -0800 (PST) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, Vineet Gupta Cc: linux-kernel@vger.kernel.org, Alexey Brodkin , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Eugeniy Paltsev Subject: [PATCH] ARC: perf: map 'ijmptak' to generic 'branches' event Date: Mon, 17 Dec 2018 12:54:23 +0300 Message-Id: <20181217095423.20318-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Map 'ijmptak' event (all jump instructions that are taken) instead of 'ijmp' event (all jump and branch instructions) to generic 'branches' event as taken jump is more interesting metric for us due to the possible significantly greater overhead of taken jumps. 'ijmptak' event is available on both ARCv1 and ARCv2. Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/perf_event.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arc/include/asm/perf_event.h b/arch/arc/include/asm/perf_event.h index 9185541035cc..6958545390f0 100644 --- a/arch/arc/include/asm/perf_event.h +++ b/arch/arc/include/asm/perf_event.h @@ -103,7 +103,8 @@ static const char * const arc_pmu_ev_hw_map[] = { /* counts condition */ [PERF_COUNT_HW_INSTRUCTIONS] = "iall", - [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = "ijmp", /* Excludes ZOL jumps */ + /* All jump instructions that are taken */ + [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = "ijmptak", [PERF_COUNT_ARC_BPOK] = "bpok", /* NP-NT, PT-T, PNT-NT */ #ifdef CONFIG_ISA_ARCV2 [PERF_COUNT_HW_BRANCH_MISSES] = "bpmp", -- 2.14.5