Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp647303ybz; Wed, 22 Apr 2020 05:26:07 -0700 (PDT) X-Google-Smtp-Source: APiQypI1oLs5NdmTpJJObE3Br5CtgOWfZu9N5LeQ5yJgY07WAhy1Vg5hD/uhS5FLPhhbXBU/06CJ X-Received: by 2002:a17:906:18a1:: with SMTP id c1mr25047984ejf.344.1587558367727; Wed, 22 Apr 2020 05:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587558367; cv=none; d=google.com; s=arc-20160816; b=Rp96BUZR/IR2q+XTeHlc7FBOoYk6iuZ2FzuRptLB5r6+UdC4lCioh3V7N3UCV1Kh/y V1IsEMUFQIZEpHMktnHH+DnWvlGMqKCewsWAFicqR9vabgD89Sz45skpynq3vgwP9zxA idUVf1QCrpqnZ4VroOXyq7GU1bjlHqmH7H+z+x6gg26jblHARU+O+Z9sMWdxwTFOrpgh bq0P4bHi80Pa93XTQLgVco2WgKHx4EI8TWA/5Py5PEBIKQw04FNPYrXbs0CYimfLWc+A bNyVgfMuYEtl9DhN+X01Sl+vOvOz9rle4ZFwo7ZzYWcapkAVLwHupmaOZs3ebpdUb0H3 7PYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=OSQ/kKKqBcwMEST9V1t5UhaGTNszwOor3aMJPSijbHI=; b=dguh4si8Oh8xrME6ggL1purMGzDYeqMCrAf6EmSCSVpl1e2RxwQ1RMPSNmY1k9TB7J xJzJno12z2GgaTtLX0GuT5u5+kOEKZiVml1NTMwz5EkVfhbs0AwYdmZ7XFno2uVGC3qE eaEzJH3dW1pV2Uuv9YAH7DFP6BlQsoUIFddd3sRwRxNn1B+72nU/1qBgbMANrgMe5I5d Zwec49RANnzs4pnQOeVqj6TUPQTFGty9TRELWaXhv5ASPWOCY6JUDjHnUyTvFZC2JLn1 RXgIIbWLQHQrFsfNRUzlg5fxyC5AGZUmTRvqcwTmtohQ6REhNPnNkxGTs0y9xouvdEvo 07tw== 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 d26si3497498ejc.216.2020.04.22.05.25.44; Wed, 22 Apr 2020 05:26:07 -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 S1727812AbgDVMUk (ORCPT + 99 others); Wed, 22 Apr 2020 08:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728672AbgDVMRh (ORCPT ); Wed, 22 Apr 2020 08:17:37 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F828C03C1AA; Wed, 22 Apr 2020 05:17:37 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jREJn-0007ql-5J; Wed, 22 Apr 2020 14:17:31 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id EF4861C081A; Wed, 22 Apr 2020 14:17:25 +0200 (CEST) Date: Wed, 22 Apr 2020 12:17:25 -0000 From: "tip-bot2 for Adrian Hunter" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf arm-spe: Implement ->evsel_is_auxtrace() callback Cc: Adrian Hunter , Leo Yan , Andi Kleen , Jiri Olsa , Kim Phillips , Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20200401101613.6201-5-adrian.hunter@intel.com> References: <20200401101613.6201-5-adrian.hunter@intel.com> MIME-Version: 1.0 Message-ID: <158755784557.28353.11975752012379024650.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 508c71e3f90e4ceee7516d691355a36660a3e5bf Gitweb: https://git.kernel.org/tip/508c71e3f90e4ceee7516d691355a36660a3e5bf Author: Adrian Hunter AuthorDate: Wed, 01 Apr 2020 13:16:01 +03:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 16 Apr 2020 12:19:15 -03:00 perf arm-spe: Implement ->evsel_is_auxtrace() callback Implement ->evsel_is_auxtrace() callback. Signed-off-by: Adrian Hunter Reviewed-by: Leo Yan Cc: Andi Kleen Cc: Jiri Olsa Cc: Kim Phillips Link: http://lore.kernel.org/lkml/20200401101613.6201-5-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/arm-spe.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/perf/util/arm-spe.c b/tools/perf/util/arm-spe.c index 53be12b..875a0dd 100644 --- a/tools/perf/util/arm-spe.c +++ b/tools/perf/util/arm-spe.c @@ -176,6 +176,14 @@ static void arm_spe_free(struct perf_session *session) free(spe); } +static bool arm_spe_evsel_is_auxtrace(struct perf_session *session, + struct evsel *evsel) +{ + struct arm_spe *spe = container_of(session->auxtrace, struct arm_spe, auxtrace); + + return evsel->core.attr.type == spe->pmu_type; +} + static const char * const arm_spe_info_fmts[] = { [ARM_SPE_PMU_TYPE] = " PMU Type %"PRId64"\n", }; @@ -218,6 +226,7 @@ int arm_spe_process_auxtrace_info(union perf_event *event, spe->auxtrace.flush_events = arm_spe_flush; spe->auxtrace.free_events = arm_spe_free_events; spe->auxtrace.free = arm_spe_free; + spe->auxtrace.evsel_is_auxtrace = arm_spe_evsel_is_auxtrace; session->auxtrace = &spe->auxtrace; arm_spe_print_info(&auxtrace_info->priv[0]);