Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp687082ybi; Fri, 2 Aug 2019 02:37:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyF41Y1a2cwT8npAQPNO3QK12YjfGgxQpUCVUoOZsAIxQtG3gtMXDtOq7EE/XDiwYuyuBjp X-Received: by 2002:a62:2b81:: with SMTP id r123mr56821033pfr.108.1564738634327; Fri, 02 Aug 2019 02:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564738634; cv=none; d=google.com; s=arc-20160816; b=p88BqZFBubyY8N/RAb3zu4tdJC4neo8Lb5wfdhyLCAlt/4qxsu9YRRlpeE27dPJV/x 7dfEN73zqk6XZ0p4knGHmhSi/coR/4J4XFvIWS7ow5CWJ0sNFuBuWsl5jbRA15hCr5O5 lzzRYlDWdV67yHXCskw1iiun0YFu66GniSBjrRFX7hvanULvX3pf5ibHiaRE3cx7N7kw kN9o9Yphsv4sFiwiY2we3BY8r+wyNqZAJ7r//yTNRh3zgkS9IX7SHEMY6XQXLShf7KuR MeAzS7cQPT0wCbc+wbGbmhbWKmV/OzPDbSQGkIS1L/P06U9K0EQzFXAwSv6xj4Dggewn 280g== 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=5mNyILADucK5GFbzMS8W68AJVI+1LZEgmMLOUg00k0A=; b=GbRo3LpHPLGztEK6rUyVEJ3VWCooMa4heebTxwhD2BVtt8Kna7xi5ZNETb/aHpUKhq MSTqB3KSAI3MbGN3PhakbjaBmfx3nQeqndyHXdBIyiwy5XBUvjGzJ8OgpUjQSNXKW0YY qF0aObAT2ktpqVSN69RIcTY/gYEMIwYlMXzTaWWPAVKEv/N8jFzySDXAKTdkJXKsQplW 17Pkzl4DV+Pj53kXa7GWFM3T51H4Tk3rokfPTHWBVE3MDxLgoxLKMPBSkJfZ9Wpvd7sX ggcGJ1gwubqylopaplEWeAuWIUEhqB5TdzsCrWiWPd8SjE9DuEbK5YdLF9Jn8w9qh2gY CtRA== 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 j1si6415055pgk.187.2019.08.02.02.36.58; Fri, 02 Aug 2019 02:37:14 -0700 (PDT) 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 S1732047AbfHBI51 (ORCPT + 99 others); Fri, 2 Aug 2019 04:57:27 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41812 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728157AbfHBI50 (ORCPT ); Fri, 2 Aug 2019 04:57:26 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D7B11396BBB377ADAA3F; Fri, 2 Aug 2019 16:57:24 +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; Fri, 2 Aug 2019 16:57:17 +0800 From: Tan Xiaojun To: , , , , , , , , , , , , , CC: , , , , , , , Subject: [RFC PATCH 0/3] perf tools: Add support for "report" for some spe events Date: Fri, 2 Aug 2019 17:40:10 +0800 Message-ID: <1564738813-10944-1-git-send-email-tanxiaojun@huawei.com> X-Mailer: git-send-email 2.7.4 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, and branch-miss is added. More details in [2/3]. Tan Xiaojun (3): 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 tools/perf/Documentation/perf-report.txt | 9 + tools/perf/builtin-report.c | 5 + tools/perf/util/Build | 2 +- tools/perf/util/arm-spe-decoder/Build | 1 + tools/perf/util/arm-spe-decoder/arm-spe-decoder.c | 214 ++++++ tools/perf/util/arm-spe-decoder/arm-spe-decoder.h | 51 ++ .../util/arm-spe-decoder/arm-spe-pkt-decoder.c | 462 +++++++++++++ .../util/arm-spe-decoder/arm-spe-pkt-decoder.h | 45 ++ tools/perf/util/arm-spe-pkt-decoder.c | 462 ------------- tools/perf/util/arm-spe-pkt-decoder.h | 43 -- tools/perf/util/arm-spe.c | 717 ++++++++++++++++++++- tools/perf/util/auxtrace.c | 45 ++ tools/perf/util/auxtrace.h | 27 + tools/perf/util/session.h | 2 + 14 files changed, 1544 insertions(+), 541 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 create mode 100644 tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c create mode 100644 tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.h delete mode 100644 tools/perf/util/arm-spe-pkt-decoder.c delete mode 100644 tools/perf/util/arm-spe-pkt-decoder.h -- 2.7.4