Received: by 10.223.185.116 with SMTP id b49csp2124756wrg; Thu, 15 Feb 2018 06:59:42 -0800 (PST) X-Google-Smtp-Source: AH8x224zEj4i5hdz7bYxh0OyaV1FTK7/60ae6gzy5CB5z0PPra3yF0KNucQ47EmE4zGiVQ9yMg7h X-Received: by 10.98.18.65 with SMTP id a62mr2916665pfj.115.1518706782643; Thu, 15 Feb 2018 06:59:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518706782; cv=none; d=google.com; s=arc-20160816; b=F/Vi1/QA/+k/zC2oPe2zljp1Vti0fp3gjjGJb1j80SDUiGtcmqvBGuf88yGqfDxMYz FeLpqu44//Jef//QgYpZVOWrmkvregZCy/yLBglPy+cMv3FsVkLf1018oxpNo+3JDeWK MtaGiDddC6ObXPFPlZ19ORe+jyGzbehp4i+Y+Als5ShOch20FvsWdKHjvy0X7SDhDtZ4 AdOtIwy3hPJ7Xh9TC9X09yBiuk3py8Cs2mCiNA2LgS35GAKV3IO+qU8gYeQzhYq+h2H6 kZ8j8QH31r/ZvS5MPVQLDO0Q9TcaGWsyTKO327bBzR9Xhlg/u4WOA0n4YZxrsL6m+gSJ yADA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=KlPPsMwEydBTqRvgLNf/Jn7NXSKZJE4crMAhgpogA90=; b=rCQapQnVWbL6AX0d85mEsY+4U94ZtJb9R2ixG5p+/sAN/TzA8t4mDuf5tjvH/Om9mp CynsHnsQMWJTb4aFq9NAJvwmlglQhBw/hOX9ufXYHtuxZqOptDAf+yfNixISdQUZ2EBr +OqCi1PeSnZ26AT1yNcRojgpDH+dsdjb6UGYhaw/fFMjK6+teZO/3Cedt/rEoncsAJnX +jNNXZORld9X1348YX6M+u6/q3zoto67Dh7kGDdaoKDZ5chdxPSHj53LISwF1KZP8EYo Rcuk/C4fYpQCMXAe4WhsVgGNwKoO/h8zbP7VvLUUipx1cKVVkKskdrYFbShzd84GSMrr /fJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si1660522plk.6.2018.02.15.06.59.28; Thu, 15 Feb 2018 06:59:42 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033592AbeBOO6h (ORCPT + 99 others); Thu, 15 Feb 2018 09:58:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:49574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033103AbeBOO6g (ORCPT ); Thu, 15 Feb 2018 09:58:36 -0500 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A6A16217D4; Thu, 15 Feb 2018 14:58:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6A16217D4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id BBCBD14506A; Thu, 15 Feb 2018 11:58:33 -0300 (-03) Date: Thu, 15 Feb 2018 11:58:33 -0300 From: Arnaldo Carvalho de Melo To: Mathieu Poirier Cc: Robert Walker , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Subject: Re: [PATCH 1/2] perf tools: inject capabilitity for CoreSight traces Message-ID: <20180215145833.GF30974@kernel.org> References: <1518011845-24063-1-git-send-email-robert.walker@arm.com> <1518011845-24063-2-git-send-email-robert.walker@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Feb 13, 2018 at 03:18:02PM -0700, Mathieu Poirier escreveu: > On 7 February 2018 at 06:57, Robert Walker wrote: > > Added user space perf functionality to translate CoreSight traces into > > instruction events with branch stack. > > > > To invoke the new functionality, use the perf inject > > tool with --itrace=il. For example, to translate the ETM trace from > > perf.data into last branch records in a new inj.data file: > > > > $ perf inject --itrace=i100000il128 -i perf.data -o perf.data.new > > > > The 'i' parameter to itrace generates periodic instruction events. The > > period between instruction events can be specified as a number of > > instructions suffixed by i (default 100000). > > The parameter to 'l' specifies the number of entries in the branch stack > > attached to instruction events. > > The 'b' parameter to itrace generates events on taken branches. > > > > This patch also fixes the contents of the branch events used in perf report > > - previously branch events were generated for each contiguous range of > > instructions executed. These are fixed to generate branch events between > > the last address of a range ending in an executed branch instruction and > > the start address of the next range. > > > > Based on patches by Sebastian Pop with additional fixes > > and support for specifying the instruction period. > > > > Originally-by: Sebastian Pop > > Signed-off-by: Robert Walker > > Acked-by: Mathieu Poirier > > Arnaldo - this should probably go through your tree but let me know if > you want to proceed otherwise. I can pick it, but now I'm waiting for Robert to address your comments, so haven't processed none of these two. - Arnaldo > Robert - the work in coresight.txt should likely be published on its > own. That way Arnaldo doesn't have to worry about it.