Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2021194ybh; Fri, 24 Jul 2020 02:21:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdIHfBoyC5c/f1QC8Jmo+JQ0flZLw1et+nkVcXriJLSLu4+JNFy0Ly3clOMM9Eu88bxNsQ X-Received: by 2002:a17:906:4094:: with SMTP id u20mr6275282ejj.553.1595582495547; Fri, 24 Jul 2020 02:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595582495; cv=none; d=google.com; s=arc-20160816; b=XUJ31dNv6s0OGZkTtzC9z82fSlQ5jsV48dy7119tL2G6c5xbDTFoZyYcXTIZTYrtsV gdAZi2MD3ihm9Yy6sbBBEVraCVO3Da5fkVdQTyTDbufUjh3fLlIY7IHUDisUoSwBbqwo aEbKw5MIVxrv3UgAZqFTbJn61t/lD8XJ/JFe1CB8MqnykY1/BbV6QDqVpdPtT08LqFWY cq1LJBk8Oc8/yNw5DoJCZGFPZyCUZKhKMGXX/GVAblc0Kpy22VRZOgbzWfQQ3XCR7vMA C2jKqi8J5FjkMtKL5PcwN1Yr2dZxWb5V3qEbWuJei7wekdYXj5ISIDyn3qWAe4FU/ol4 Jscw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=5bt1w95cSlMrdDOjvy6pwWnwZD15H+Eh9wwWfIom1/4=; b=lrK7+879tWZ80O40Bwu74TfxKsZwK5KBe0+dpg6RAoomHxjE9n/BboaP6dL6RbJYHk Acmt7K1mSKqiPQR8WwC8DYJNsq2QcWAwOo8e19ueIVLemTHX3ncuZdmV7r7BK/VA3M6p jGY3z3Y9OaDjTjSjGkJse3u2e5hJmCSVxBlAdeeZJzzu15AFC9pE0WTbm6xv0PVPfYlg T1Dcn6DnRSK6xDmxgWD2ln8f3gsThy9fmR5wEkI7fQlrjH3vufzL5B/daPY41EeUCMaD FY/bQM40aYRdcEgIrN+KJ/56Z4Ksqkfji3z88NfkY/tQpDwLNPItSCTko/PXJhYXl5gp VxPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si154805edy.598.2020.07.24.02.21.12; Fri, 24 Jul 2020 02:21:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728144AbgGXJSF (ORCPT + 99 others); Fri, 24 Jul 2020 05:18:05 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56888 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728133AbgGXJSE (ORCPT ); Fri, 24 Jul 2020 05:18:04 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 030DEC63573694F39600; Fri, 24 Jul 2020 17:18:03 +0800 (CST) Received: from euler.huawei.com (10.175.124.27) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Fri, 24 Jul 2020 17:17:53 +0800 From: Wei Li To: Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Catalin Marinas , James Clark , Jiri Olsa , Leo Yan , Mark Rutland , Namhyung Kim , Suzuki K Poulose , Will Deacon , CC: , , Ingo Molnar , Peter Zijlstra , Subject: [PATCH 3/4] perf auxtrace: Add new itrace options for ARMv8.3-SPE Date: Fri, 24 Jul 2020 17:16:06 +0800 Message-ID: <20200724091607.41903-4-liwei391@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200724091607.41903-1-liwei391@huawei.com> References: <20200724091607.41903-1-liwei391@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to add two options to synthesize events which are described as below: 'u': synthesize unaligned address access events 'v': synthesize partial/empty predicated SVE events This two options will be used by ARM SPE as their first consumer. Signed-off-by: Wei Li --- tools/perf/Documentation/itrace.txt | 2 ++ tools/perf/util/auxtrace.c | 8 ++++++++ tools/perf/util/auxtrace.h | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/tools/perf/Documentation/itrace.txt b/tools/perf/Documentation/itrace.txt index e817179c5027..25bcf3622709 100644 --- a/tools/perf/Documentation/itrace.txt +++ b/tools/perf/Documentation/itrace.txt @@ -13,6 +13,8 @@ m synthesize last level cache events t synthesize TLB events a synthesize remote access events + u synthesize unaligned address access events + v synthesize partial/empty predicated SVE events g synthesize a call chain (use with i or x) G synthesize a call chain on existing event records l synthesize last branch entries (use with i or x) diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 25c639ac4ad4..2033eb3708ec 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -1334,6 +1334,8 @@ void itrace_synth_opts__set_default(struct itrace_synth_opts *synth_opts, synth_opts->llc = true; synth_opts->tlb = true; synth_opts->remote_access = true; + synth_opts->alignment = true; + synth_opts->sve = true; if (no_sample) { synth_opts->period_type = PERF_ITRACE_PERIOD_INSTRUCTIONS; @@ -1507,6 +1509,12 @@ int itrace_parse_synth_opts(const struct option *opt, const char *str, case 'a': synth_opts->remote_access = true; break; + case 'u': + synth_opts->alignment = true; + break; + case 'v': + synth_opts->sve = true; + break; case ' ': case ',': break; diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h index 142ccf7d34df..972df7b06b0d 100644 --- a/tools/perf/util/auxtrace.h +++ b/tools/perf/util/auxtrace.h @@ -116,6 +116,8 @@ struct itrace_synth_opts { bool llc; bool tlb; bool remote_access; + bool alignment; + bool sve; unsigned int callchain_sz; unsigned int last_branch_sz; unsigned long long period; @@ -617,6 +619,8 @@ bool auxtrace__evsel_is_auxtrace(struct perf_session *session, " m: synthesize last level cache events\n" \ " t: synthesize TLB events\n" \ " a: synthesize remote access events\n" \ +" u: synthesize unaligned address access events\n" \ +" v: synthesize partial/empty predicated SVE events\n" \ " g[len]: synthesize a call chain (use with i or x)\n" \ " l[len]: synthesize last branch entries (use with i or x)\n" \ " sNUMBER: skip initial number of events\n" \ -- 2.17.1