Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp443337ybc; Sat, 23 Nov 2019 01:27:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzzC5avgPEWbXobyIiiKebc6GCEH/blvdVjoB57luN1yh9zuV63WIH0Nam3fAfqA/mn8OEt X-Received: by 2002:a05:6402:547:: with SMTP id i7mr6574830edx.55.1574501273922; Sat, 23 Nov 2019 01:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574501273; cv=none; d=google.com; s=arc-20160816; b=HzfefZVp4cN9wcvhjsD8h7IcOb5+4sRMzjQq47xCl9mMssKiZk4P2LP/Ml1RJo5wOu W/+/Y8CdDg3s75Zc6LX6gBq8x6qhYNBnFcKsHcBXl9chGorfZoxGAoC6EwBpouLqKtEa njYzGmq2RwaUg7T/BEjRIpH3hwSwCZgXzjZRwu4W9uABx6N6XGcon605UDxx19l5WT4s rJmuJM0k6a1VO/jhxb1WLZykcq96TwKEKSy80v/hizFx5r+nyCf+jjvqAw/e4maI8soI g1SohwgGg9TEFiha88IhGf0G/Evjj8hfYwIXb71te8At/niQ5qRrBl68ryCKIaEmghdR hVdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=uczICx80nS//jzO+AnWxungYxnATKp8+Uahp0+b9V9k=; b=joZm1vXZy/8OTXhfVdVAFCj/bRUIA8JWy979wU13zvjr/Dj3e3i/AKPW1E5yP34ayG XVzeysiwl/ARPVLcXPvpNgCeULmzrprGcbieboKC5oQSZf4jYdmYRfM27hBzscdYgWti R11vT46yPSMZj5gaSPp0Dn5zAlru9H8/wdmb+aIHgey6+vt33z9M0ymuzJFex9xvxCbP 0h6/0kSRDGq9xr3SCG4cPbIFDrLK7aiQVZb/OJdMdzVEqLmIad9Ryp/6N9GX3ZKGA0T1 JcIZOf2OIVM49RbJ/lltbFbV4NjqNJJh7VzBNpLBibCVTsYeE74GyPzkoYAz0w5AieLG QHGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a60si537240edf.169.2019.11.23.01.26.54; Sat, 23 Nov 2019 01:27:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbfKWJYj (ORCPT + 99 others); Sat, 23 Nov 2019 04:24:39 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:6704 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726141AbfKWJYj (ORCPT ); Sat, 23 Nov 2019 04:24:39 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4E1E4951DB582CD7BE01; Sat, 23 Nov 2019 17:24:35 +0800 (CST) Received: from huawei.com (10.175.102.38) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Sat, 23 Nov 2019 17:24:25 +0800 From: Tan Xiaojun To: , , , , , , , , , , , , , , , CC: , , , , , , Subject: [RFC v3 0/5] perf tools: Add support for some spe events and precise ip Date: Sat, 23 Nov 2019 18:11:13 +0800 Message-ID: <20191123101118.12635-1-tanxiaojun@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.38] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After the commit ffd3d18c20b8 ("perf tools: Add ARM Statistical Profiling Extensions (SPE) support") is merged, "perf record" and "perf report --dump-raw-trace" have been supported. However, the raw data that is dumped cannot be used without parsing. This patchset is to improve the "perf report" support for spe, and further process the data. Currently, support for the three events of llc-miss, tlb-miss, branch-miss and remote-access is added. v1->v2: Some cleanup and bugfix fixes were made, and support for the precise ip of branch-misses was added. Thanks for the suggestions of Jeremy and James. v2->v3: Mainly add four spe precise ip events, you can see through perf list. More details in [5/5]. Tan Xiaojun (5): 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 for arm-spe drivers: perf: add some arm spe events perf tools: Add support to process multi spe events drivers/perf/arm_spe_pmu.c | 44 + tools/perf/Documentation/perf-report.txt | 10 + tools/perf/arch/arm64/util/arm-spe.c | 47 +- tools/perf/builtin-report.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 | 771 +++++++++++++++++- tools/perf/util/arm-spe.h | 20 + tools/perf/util/auxtrace.c | 49 ++ tools/perf/util/auxtrace.h | 29 + tools/perf/util/session.h | 2 + 15 files changed, 1231 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%) -- 2.17.1