Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp646425ybz; Wed, 22 Apr 2020 05:25:14 -0700 (PDT) X-Google-Smtp-Source: APiQypI2ub8srzr3c/iArcPGEFcdAa3AlKivj5MswO3SFO0pAEQymeyQWIjx1+t8onw1JeVGc0G8 X-Received: by 2002:a17:906:804a:: with SMTP id x10mr26755273ejw.86.1587558314503; Wed, 22 Apr 2020 05:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587558314; cv=none; d=google.com; s=arc-20160816; b=XtBg5gaceTggb7EmpP2jkmmlFW9kafXqPFpXFhzk0m9SgHXfRxjeab2cX9eluF2bFF j1nFofi20Ve8eySgAKUs0xGHTZdaFDWVL8Q0E6tIl/eOvrqeoZBEc98Rk7+Owj5nwCa+ kk1u99mZES4iCnWoYxa37j587x4nEoRRAgU7ueyQ5tpaONUIxqR03SaQRe4zonuJLfUb y6kL5EE2SKCKqcvpoNMZcdvdBrGzV3iJHNgswFCtQzmlZjU+kiin4jZa0IewiY+CBpB/ 9MJzKvhYkAKeENJQez1wb5mb3VKqhjN4NQD1mAiw1Z96BRY7SyO2wvEIVmy2putD2YvM fyGA== 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=nVqcJUl5xIVd1dtN6MWlLXT9s0Fwx8eC9e6f+rR1d8E=; b=uVM5BTFVfYcSW2woEbHjsEtyCf2BsS5H4ponu8tGOvVZQsohVzXP67J4yHozwLUGPx g/ys4EmRvgul6KGXZ9C/811qGCd3bRNwKuMEiWKIHRc+8zHy0rwPPuKLISo4rbhas70a +ybXgCvLRqJ3oJu9VtMzHsJuWdEtk5iGZcw8XTjB6j2hkAylIVYGoArQzhP7H/Y/rGQ1 +G6g89e55NfXyyi6QGd5vhDRa5AYpqYqA1cF4g0lTq4FAky0Cwb2jEX9fHHwcQarU+Rm 35Mzdc04phmj94nbomqlinbaBZfoDUlpiMsxNtzoh/Nhx0DlkSLqS9D0HMPEtchVWj6J FV5Q== 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 e16si3289099ejk.0.2020.04.22.05.24.51; Wed, 22 Apr 2020 05:25:14 -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 S1726786AbgDVMSB (ORCPT + 99 others); Wed, 22 Apr 2020 08:18:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728669AbgDVMRh (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 345EEC03C1A8; 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-0007s2-Tf; Wed, 22 Apr 2020 14:17:32 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id D8C571C0821; Wed, 22 Apr 2020 14:17:26 +0200 (CEST) Date: Wed, 22 Apr 2020 12:17:26 -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 intel-pt: Implement ->evsel_is_auxtrace() callback Cc: Adrian Hunter , Andi Kleen , Jiri Olsa , Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20200401101613.6201-3-adrian.hunter@intel.com> References: <20200401101613.6201-3-adrian.hunter@intel.com> MIME-Version: 1.0 Message-ID: <158755784650.28353.12011183633352876352.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: 6b52bb07c397af274850deb9e4e054bdb6261e73 Gitweb: https://git.kernel.org/tip/6b52bb07c397af274850deb9e4e054bdb6261e73 Author: Adrian Hunter AuthorDate: Wed, 01 Apr 2020 13:15:59 +03:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 16 Apr 2020 12:19:15 -03:00 perf intel-pt: Implement ->evsel_is_auxtrace() callback Implement ->evsel_is_auxtrace() callback. Signed-off-by: Adrian Hunter Cc: Andi Kleen Cc: Jiri Olsa Link: http://lore.kernel.org/lkml/20200401101613.6201-3-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/intel-pt.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index 23c8289..db25c77 100644 --- a/tools/perf/util/intel-pt.c +++ b/tools/perf/util/intel-pt.c @@ -2715,6 +2715,15 @@ static void intel_pt_free(struct perf_session *session) free(pt); } +static bool intel_pt_evsel_is_auxtrace(struct perf_session *session, + struct evsel *evsel) +{ + struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, + auxtrace); + + return evsel->core.attr.type == pt->pmu_type; +} + static int intel_pt_process_auxtrace_event(struct perf_session *session, union perf_event *event, struct perf_tool *tool __maybe_unused) @@ -3310,6 +3319,7 @@ int intel_pt_process_auxtrace_info(union perf_event *event, pt->auxtrace.flush_events = intel_pt_flush; pt->auxtrace.free_events = intel_pt_free_events; pt->auxtrace.free = intel_pt_free; + pt->auxtrace.evsel_is_auxtrace = intel_pt_evsel_is_auxtrace; session->auxtrace = &pt->auxtrace; if (dump_trace)