From patchwork Sun Oct 18 18:24:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 55193 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id D93D522FFA for ; Sun, 18 Oct 2015 18:26:49 +0000 (UTC) Received: by lbbpp2 with SMTP id pp2sf6397684lbb.0 for ; Sun, 18 Oct 2015 11:26:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=nQ0RwF2M04alo+SFTuUY/bpT6LBvItc35nq7VY3mvLs=; b=dZDpdMj5hhio3d+z74vn+zgNnHpg6NyitQgblgDje6VYOOS2bxu12DMZkp2XcQbd6h 8WsGiFvZAtyFkiSiYrf4XS4OPZRwxDXK26lxUs5pMUDaZfegf316bz1yHERMUZKab7BO ScIOfxNeQFEfuyxHSjLZc/CfOYOLatVHOgzZQGhxucDuTB1xsnPgyda+RvwzrQzZ/2tw ou14rDOjCNen/KqP4gayjv3h6gywzBjl8c2N5ziOCjOtlZZtKsCMJHy7SqMmSN/5jty1 4e0EqMfQcwCM+ITg0rTq6hqpQCKH3tsyo9znO+KMxfJG5RMBRqRgfAPKeQDfyHdwju4A W89A== X-Gm-Message-State: ALoCoQklVV5ecR16677EwVJeVfZedxEjcACDzj30Pxdv0DbK9u+zJ2NN8pMK5vcmr7lHehriB2p0 X-Received: by 10.112.132.10 with SMTP id oq10mr6007798lbb.1.1445192808524; Sun, 18 Oct 2015 11:26:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.23.39 with SMTP id n39ls501601lfi.33.gmail; Sun, 18 Oct 2015 11:26:48 -0700 (PDT) X-Received: by 10.112.236.8 with SMTP id uq8mr903600lbc.116.1445192808362; Sun, 18 Oct 2015 11:26:48 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id q201si20101074lfd.144.2015.10.18.11.26.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2015 11:26:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbcao8 with SMTP id ao8so127451505lbc.3 for ; Sun, 18 Oct 2015 11:26:48 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr12795552lbb.35.1445192808233; Sun, 18 Oct 2015 11:26:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1078114lbq; Sun, 18 Oct 2015 11:26:47 -0700 (PDT) X-Received: by 10.66.163.136 with SMTP id yi8mr29590016pab.124.1445192806359; Sun, 18 Oct 2015 11:26:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rq7si46463946pab.73.2015.10.18.11.26.46; Sun, 18 Oct 2015 11:26:46 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752812AbbJRS0a (ORCPT + 28 others); Sun, 18 Oct 2015 14:26:30 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:34592 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752660AbbJRS0W (ORCPT ); Sun, 18 Oct 2015 14:26:22 -0400 Received: by padhk11 with SMTP id hk11so6285860pad.1 for ; Sun, 18 Oct 2015 11:26:22 -0700 (PDT) X-Received: by 10.66.139.70 with SMTP id qw6mr29495997pab.142.1445192781931; Sun, 18 Oct 2015 11:26:21 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [184.64.168.246]) by smtp.gmail.com with ESMTPSA id hq1sm20402076pbb.43.2015.10.18.11.26.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Oct 2015 11:26:21 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org, a.p.zijlstra@chello.nl, alexander.shishkin@linux.intel.com, acme@kernel.org, mingo@redhat.com, corbet@lwn.net, nicolas.pitre@linaro.org Cc: adrian.hunter@intel.com, zhang.chunyan@linaro.org, mike.leach@arm.com, tor@ti.com, al.grant@arm.com, pawel.moll@arm.com, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org Subject: [PATCH V2 29/30] perf tools: adding coresight define for auxtrace Date: Sun, 18 Oct 2015 12:24:46 -0600 Message-Id: <1445192687-24112-30-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445192687-24112-1-git-send-email-mathieu.poirier@linaro.org> References: <1445192687-24112-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Adding new define for auxiliary traces collected by ETM tracers. Signed-off-by: Mathieu Poirier --- tools/perf/util/auxtrace.c | 1 + tools/perf/util/auxtrace.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 430df9575dbe..666773d4e942 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -892,6 +892,7 @@ int perf_event__process_auxtrace_info(struct perf_tool *tool __maybe_unused, return intel_pt_process_auxtrace_info(event, session); case PERF_AUXTRACE_INTEL_BTS: return intel_bts_process_auxtrace_info(event, session); + case PERF_AUXTRACE_CS_ETM: case PERF_AUXTRACE_UNKNOWN: default: return -EINVAL; diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h index ed1c940be883..35569d25d1d3 100644 --- a/tools/perf/util/auxtrace.h +++ b/tools/perf/util/auxtrace.h @@ -41,6 +41,7 @@ enum auxtrace_type { PERF_AUXTRACE_UNKNOWN, PERF_AUXTRACE_INTEL_PT, PERF_AUXTRACE_INTEL_BTS, + PERF_AUXTRACE_CS_ETM, }; enum itrace_period_type {