From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71B26C388F7 for ; Wed, 28 Oct 2020 06:39:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DD69421775 for ; Wed, 28 Oct 2020 06:39:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3bAY+we0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hzMACXHJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DD69421775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=umOt+fHwOvXPyHZef50sZxYywoCd4QukYs4SKKbJdDs=; b=3bAY+we0jrXmJJRv/IG35s27c9 xTCZom4ZJce1Nuu81Gaq0iUdyBOT/nPEOIAx3moohJqEHf/btHzMHqLNcHej7sWH+6V1UzM7JAgCM bS48CRKeFiSm0P4dArOrJYa06flm7d/VFOh/zI3HtNi2zDRIVsOmO18LWUCVvGoFyOGNr+jBLKxHV Rwxzhtk93G0X8gajMkBfkNCMRi17P3fScmkmpAFjh8pCJ0dqkh7a4Co1XfVZfUBcEMmvkAjn0Jujg 34jACAse9w6/v7xq6qhRmPca8Lcfh059wOwMS28vz1aMoJO7Q9rxQf2B287n8ftHifzxCBxsAe9Xa QIY86cVA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXf6x-0006cq-Sw; Wed, 28 Oct 2020 06:39:07 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXf6h-0006XC-L6 for linux-arm-kernel@lists.infradead.org; Wed, 28 Oct 2020 06:38:53 +0000 Received: by mail-pl1-x644.google.com with SMTP id r3so2007771plo.1 for ; Tue, 27 Oct 2020 23:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5jeJiRaAbKWuyob37GOTyfw/86/Frh0gugFaBK7OFIs=; b=hzMACXHJ+NwXdqkR3VVPOC7bnaMcYm3xikDHOfRCzPV9GnJlQeLX8KaMniZD0GSBLU Zh19U1m+DhCgqqGIf1H6wvaJdur/uKnZ6AVseodvfX7PzKGaZr289BCRZxsOV2xjcHEj R4vpzWP+QJETtzUjqcx2JJzgB6nzmicmMsWTYPKGQSkGjd1r+3XTSRMekQLt3K4Ajcs/ rJG4SnXh3c4PsLJDz1/pKGTgrhmDTleUkeV4UMuOssmLLbdWKqMu7cj5jksL5LIjP9oN 2IBT+8iDGCwsUQvAhvcCuG7kz2kDq8Nh0HX+AaYUJ9WmHB/eeLD74BqSHXovJM7Jw2H5 IxSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5jeJiRaAbKWuyob37GOTyfw/86/Frh0gugFaBK7OFIs=; b=o7d2bdPo4WKqj1LTrD6q6cwJj2LLLL2Felxt5/k1eukpWQ+YqlBGhemipE3MaiIjNy c1Y+Hp6m/xU0/sjq3XdCT+iiCOcmVlXANIgN+DjvVj9pPrBaSz7oqq4mdHZjwWbI+uXw L6dh6HeZ4U/49/o5x+z3jEmJSEC20Zcgg6F3XNDyJuvoTm3112PDxDAX3Zqsp8OsWbVH zKCm5Idkt69/s/blMsEgnQZYSsu0xv5I1umvKxa1IcggWBr3uafTu+6LOUqHSzSp2OEI XO1lZi1cMoZdqfFPM4U9B7lGWkL33PNo/yDxXWspqV2rSghrTqGu1Qevx5q6L1Zss2Il KtkA== X-Gm-Message-State: AOAM530bZRsT3bCiTy1GbQLsB9upX7dXgNMCq5v+T6vzvOzin3aWsVn2 9l8HDB8FstVW7ZQ/wFJWoF4yhw== X-Google-Smtp-Source: ABdhPJxsPGjoz9Nf8PR1b73ATvv2YKlLUPNIXREg4qMJSV6zUSKNXAfZTYTWxOhh6cbO+s5rkjuhBQ== X-Received: by 2002:a17:90a:7303:: with SMTP id m3mr5825028pjk.190.1603867129442; Tue, 27 Oct 2020 23:38:49 -0700 (PDT) Received: from localhost ([2600:3c01::f03c:91ff:fe8a:bb03]) by smtp.gmail.com with ESMTPSA id r6sm4610030pfg.85.2020.10.27.23.38.48 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Oct 2020 23:38:48 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , Will Deacon , Mathieu Poirier , Kemeng Shi , "Naveen N. Rao" , Ian Rogers , Al Grant , James Clark , Wei Li , =?UTF-8?q?Andr=C3=A9=20Przywara?= , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 5/9] perf mem: Support AUX trace Date: Wed, 28 Oct 2020 14:38:09 +0800 Message-Id: <20201028063813.8562-6-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201028063813.8562-1-leo.yan@linaro.org> References: <20201028063813.8562-1-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201028_023851_753464_BAC38CCF X-CRM114-Status: GOOD ( 15.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Yan MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Perf memory tool doesn't support AUX trace data so it cannot receive the hardware tracing data. On Arm64, although it doesn't support PMU events for memory load and store, but Arm SPE is a good candidate for memory profiling, the hardware tracer can record memory accessing operations with affiliated information (e.g. physical address and virtual address for accessing, cache levels, TLB walking, latency, etc). To allow "perf mem" tool to support AUX trace, this patches adds the AUX callbacks for session structure. Signed-off-by: Leo Yan --- tools/perf/builtin-mem.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c index f3dc2d2b879c..87c6074e405e 100644 --- a/tools/perf/builtin-mem.c +++ b/tools/perf/builtin-mem.c @@ -7,6 +7,7 @@ #include "perf.h" #include +#include "util/auxtrace.h" #include "util/trace-event.h" #include "util/tool.h" #include "util/session.h" @@ -405,8 +406,12 @@ int cmd_mem(int argc, const char **argv) .comm = perf_event__process_comm, .lost = perf_event__process_lost, .fork = perf_event__process_fork, + .attr = perf_event__process_attr, .build_id = perf_event__process_build_id, .namespaces = perf_event__process_namespaces, + .auxtrace_info = perf_event__process_auxtrace_info, + .auxtrace = perf_event__process_auxtrace, + .auxtrace_error = perf_event__process_auxtrace_error, .ordered_events = true, }, .input_name = "perf.data", -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel