From patchwork Fri Feb 7 15:21:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 11370695 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F19271395 for ; Fri, 7 Feb 2020 15:23:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CCAA224673 for ; Fri, 7 Feb 2020 15:23:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Mw6dfmjk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CCAA224673 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Kf++ZmHbG3L4Muu3cwIu8J3iKQBJBPaCIn96cKqOk8w=; b=Mw6dfmjk7VgsKG2LB02qBopPvu AQdQot7B/OQ/ykJPOkax+pP2RIXJZQE5mU+/qGDj00y95Mn8fEBlDNOh3nSq9B9jGdzlF02qbNo6U JpBKM1N9hlv37EyBeZkOCgYXMvsRZDdZMiuI8Nri47FbLWUuQVxIenrQ5C1gvhB1YBDqHRhSVGmlM 7gnY/n7MyuTspXrGhwTgIE5kiqW/3dYkGVW92B0XrB/nw9Gmk+0MOX6HcyIZv/kLK+PENAQCWMf0u IK55BdkyprWkFMXAuiN3mNcukErFHhfhBhcpoGmLhzuEs2ChCK5R7ANfR6DuXiPqi5+UByZRWTCh3 MUZE42Fw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j05T3-0006xj-EP; Fri, 07 Feb 2020 15:22:53 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j05Sz-0006wa-E5 for linux-arm-kernel@lists.infradead.org; Fri, 07 Feb 2020 15:22:51 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 466C21FB; Fri, 7 Feb 2020 07:22:42 -0800 (PST) Received: from e121896.default (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D51F73F6CF; Fri, 7 Feb 2020 07:22:38 -0800 (PST) From: James Clark To: jolsa@redhat.com, liwei391@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] perf tools: Add support for some spe events and precise ip Date: Fri, 7 Feb 2020 15:21:38 +0000 Message-Id: <20200207152142.28662-1-james.clark@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200127123108.GC1114818@krava> References: <20200127123108.GC1114818@krava> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200207_072249_516974_4C6133BE X-CRM114-Status: GOOD ( 14.24 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Al Grant , Peter Zijlstra , Arnaldo Carvalho de Melo , Alexander Shishkin , Ingo Molnar , James Clark , Namhyung Kim , nd@arm.com, Will Deacon , Tan Xiaojun MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi Jirka, Thanks for the feedback. I've made the following changes: Removed the arm_spe_synth_opts struct and added the new types into itrace_synth_opts. I could re-use branch but the other ones are new. And the --trace argument documentation has been updated accordingly. I've removed the processing of the evlist from perf_evlist__splice_list_tail and put it in a weak function "auxtrace__preprocess_evlist" that is only built on Arm. For the 2 patches about the hang on termination, I have removed them because I haven't been able to reproduce it and everything is working ok for me. @Wei Li, are you able to post steps required to reproduce? Thanks James Cc: Will Deacon Cc: Mark Rutland Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Tan Xiaojun Cc: Al Grant Cc: Namhyung Kim Tan Xiaojun (4): perf tools: Move arm-spe-pkt-decoder.h/c to the new dir perf tools: Add support for "report" for some spe events perf report: Add SPE options to --itrace argument perf tools: Support "branch-misses:pp" on arm64 tools/perf/Documentation/itrace.txt | 5 +- tools/perf/arch/arm/util/auxtrace.c | 38 + tools/perf/builtin-record.c | 5 + tools/perf/util/Build | 2 +- tools/perf/util/arm-spe-decoder/Build | 1 + .../util/arm-spe-decoder/arm-spe-decoder.c | 225 ++++++ .../util/arm-spe-decoder/arm-spe-decoder.h | 66 ++ .../arm-spe-pkt-decoder.c | 0 .../arm-spe-pkt-decoder.h | 2 + tools/perf/util/arm-spe.c | 756 +++++++++++++++++- tools/perf/util/arm-spe.h | 3 + tools/perf/util/auxtrace.c | 13 + tools/perf/util/auxtrace.h | 14 +- tools/perf/util/evlist.c | 1 + tools/perf/util/evsel.h | 1 - 15 files changed, 1090 insertions(+), 42 deletions(-) create mode 100644 tools/perf/util/arm-spe-decoder/Build create mode 100644 tools/perf/util/arm-spe-decoder/arm-spe-decoder.c create mode 100644 tools/perf/util/arm-spe-decoder/arm-spe-decoder.h rename tools/perf/util/{ => arm-spe-decoder}/arm-spe-pkt-decoder.c (100%) rename tools/perf/util/{ => arm-spe-decoder}/arm-spe-pkt-decoder.h (96%)