Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5511938imm; Tue, 19 Jun 2018 11:33:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLkNFsSIOUdwX8z/3HMfBPRmQn7TjzYLLgaY0u+FvIywey6/oMAsey9aZ5Uay2cOdToHjK4 X-Received: by 2002:a63:6882:: with SMTP id d124-v6mr15602836pgc.83.1529433202109; Tue, 19 Jun 2018 11:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529433202; cv=none; d=google.com; s=arc-20160816; b=TJ26qOT/6GGEdMBtuTAFcUfdhCLxWYMAtOqWNk36MzIitdgHbOF5QMWyGFZ2VUhkx7 3hSr690RXXjmTG/V1Kwx6mAIdxJakXZdYmAKEgrXInfp2uPqXqMCiL7q3EJFtWkArx+T bA6F+TPfV0SdS5U69CUmwboqJOYnrglmXNTwVKb7y1yVJmCfrxc8dYqioJjXBGXaE/3Q imlYQ8C3H7n0N6H9brbfs4QMIvtv9OTQ13UFxFKFVJUl8gJEOIulLPlKv0kCz2C9ra9j zqlq3YOBMc2zxooviejdPCr7rzfdtV6OoTCJgnc6q/U8fScpd3Bx17KGE/XBIz9BwQvF SN+g== 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:dkim-signature:arc-authentication-results; bh=HefHyMRfLzxQrHgGew2exE169UUHciaB7ioEw13Z6NQ=; b=TU9Beufd96yhmgt5s2h5r0ln0ABgIIRyvLakj59+jSsFJCNAMKKbvLeiloRJE42sIk +28viTBphxhTRdAsLqe83v7nIclttmyIcJVb1TBhy9h8Tz5ZbSnJLT0Wz5+hcU0tbQdk z5i7zGatPnaUBVFPIzBwUbmOTPDKSVrnKfg8hwHW/WNBbKDfwxVOb4lNfk9VhSMIuupJ D4os8/3pVwTMUOHzvfxFGtj/1PboR3kRqoNiMUQmPeiE/XxgWwpX5SIlEeuBGuMycVu1 GOUIKYKxyG1xvOdZbPK3ST58DPLdBbLk+sBZASpDdMRV7XLidoBI/5MyYr3nnareyYhd YCkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zTNqu0Fn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6-v6si254735pgr.164.2018.06.19.11.32.58; Tue, 19 Jun 2018 11:33:21 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zTNqu0Fn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967203AbeFSSTt (ORCPT + 99 others); Tue, 19 Jun 2018 14:19:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:47930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967022AbeFSSTs (ORCPT ); Tue, 19 Jun 2018 14:19:48 -0400 Received: from jouet.infradead.org (179.176.7.12.dynamic.adsl.gvt.net.br [179.176.7.12]) (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 7060E205C9; Tue, 19 Jun 2018 18:19:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529432387; bh=FSxjvmbBgYA2qWx0aQERtINeV4bPNneWazpd/Daj9/E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zTNqu0FnGEC2Cqd9dwpabkn6RH7CFtHs0heb9WblyKx4Oao5JpeW4iIvAJYbfHAnu x+glLmyIOm94/Vo3BLsFb2IZooGniDULGe/lYtfmBFlGNeSlYZA5/XdOYtaV84wEGO ASLIpMAJlr2eRqRuX1xwAD1Ny6BFzM4BK07zjqBI= Received: by jouet.infradead.org (Postfix, from userid 1000) id 9811E1401E5; Tue, 19 Jun 2018 15:19:43 -0300 (-03) Date: Tue, 19 Jun 2018 15:19:43 -0300 From: Arnaldo Carvalho de Melo To: Mathieu Poirier Cc: Leo Yan , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel , Linux Kernel Mailing List , Mike Leach , Robert Walker , Kim Phillips Subject: Re: [PATCH v1 0/6] perf cs-etm: Fix tracing packet handling and minor refactoring Message-ID: <20180619181943.GL20477@kernel.org> References: <1529298599-3876-1-git-send-email-leo.yan@linaro.org> 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.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jun 19, 2018 at 11:46:02AM -0600, Mathieu Poirier escreveu: > On Sun, 17 Jun 2018 at 23:10, Leo Yan wrote: > > > > Due the current code is missing to handle cs-etm start tracing packet > > and CS_ETM_TRACE_ON packet, we fail to generate branch sample for them. > > > > This patch series is to fix cs-etm tracing packet handling: > > > > Patch 0001 is to add invalid address macro for readable coding; > > > > Patch 0002 is one minor fixing to return error code for instruction > > sample failure; > > > > Patches 0003~0006 are fixing patches for start tracing packet > > and CS_ETM_TRACE_ON packet. > > > > This patch series is applied on acme tree [1] on branch perf/core with > > latest commit: e238cf2e3d2e ("perf intel-pt: Fix packet decoding of CYC > > packets"). Also applied successfully this patch series on Linus tree > > on 4.18-rc1. > > > > This patch series has been verified on Hikey620 platform with below two > > commands: > > perf script --itrace=i10000il128 -F cpu,event,ip,addr,sym -k ./vmlinux > > perf script -F cpu,event,ip,addr,sym -k ./vmlinux > > > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > > > > > > Leo Yan (6): > > perf cs-etm: Introduce invalid address macro > > perf cs-etm: Bail out immediately for instruction sample failure > > perf cs-etm: Fix start tracing packet handling > > perf cs-etm: Support dummy address value for CS_ETM_TRACE_ON packet > > perf cs-etm: Generate branch sample when receiving a CS_ETM_TRACE_ON > > packet > > perf cs-etm: Generate branch sample for CS_ETM_TRACE_ON packet > > > > tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 10 ++-- > > tools/perf/util/cs-etm-decoder/cs-etm-decoder.h | 1 + > > tools/perf/util/cs-etm.c | 71 +++++++++++++++++++++---- > > 3 files changed, 68 insertions(+), 14 deletions(-) > > Good day Arnaldo, > > I am good with this set: > > Reviewed-by: Mathieu Poirier > > Please consider for inclusion in your tree if you are satisfied with the work. I'll take a look and get it into perf/core, now I'm concentrating on perf/urgent work. Thanks, - Arnaldo