Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp593561ybh; Tue, 10 Mar 2020 04:47:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuEuZ1+upjjMwJ1mTr8nY6Hn8B8kLWaZX3Q/UmR1xx1w7nq4PHrYi3CMyD+sIJMOKxaYkBK X-Received: by 2002:a9d:264a:: with SMTP id a68mr2913682otb.176.1583840834470; Tue, 10 Mar 2020 04:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583840834; cv=none; d=google.com; s=arc-20160816; b=SydISt5JXC+hGPo1UGlt3jLKYa1PfmcsexhIV5Q4BaGmjOXzQJt3tnLggbpSRqfanH fIGwbDjvEsgv3mONeyjsZdKxBB50tUQexXyL2mHxdOPa7XfJSr4c5Tg4pLWx2EMn81Mx 55vIX3itoIrDrN9BVJaXXBnP2IFHD8aLyu06QGu1xf4W7Gzq5vtvH1ojL9VRsWMbdLFE rcqHEHLlw5YBTLD7RCWmUUtRCIkNlH1G37xxJqMH8pMB/RQgmGkdiJyuvX98YDWKANuE xI+zgocZ79SrFE6tQlIhKZVcrQx4T86OTyY4+xvLGqmtKkmyXTRQ82KWVvZVyqPfzDzp bD8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=JFUcdzOUencsCKId/ctBPwQiHSHHBRg97HyGLAkaW4E=; b=wtS2us0AcGOukapdivAuwstY9cZTfTUt6yEUEe+USktVy9XRCey2Bjmp+tjsAgniGs /98+ASvjjQVd75K3f3fSwMbOqQsMvpNMHlW5LKlK8Iba7gSqPso8xuNZDHoD8zgGA+xE jaXeZtNiYHydcE2mz+tSbT4KRJVYZtP+rwx2bk9SMQfR8Il9AWS9UqUJINMvVX1Enezg s5RyH4AGBVha5tVfl6tKsNvP3SJ3lI2onFRZtmnCnGn/8bxZJrCRpR96Fe/A7YxJoCk3 OESDIt6mfMdSSjI01H/Qgap6DFa1KG9k1ompXSMoKR7CA0cR2tr05oi3xL0im2nl2c+D k13w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ijzjfY87; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c80si5159643oib.276.2020.03.10.04.47.01; Tue, 10 Mar 2020 04:47:14 -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=@gmail.com header.s=20161025 header.b=ijzjfY87; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726315AbgCJLpK (ORCPT + 99 others); Tue, 10 Mar 2020 07:45:10 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:35525 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbgCJLpK (ORCPT ); Tue, 10 Mar 2020 07:45:10 -0400 Received: by mail-qk1-f194.google.com with SMTP id d8so7910206qka.2 for ; Tue, 10 Mar 2020 04:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JFUcdzOUencsCKId/ctBPwQiHSHHBRg97HyGLAkaW4E=; b=ijzjfY879xd5ao57WpwaANRMaCpaYDMaEpB29Q+QPTBgwItb+0yR12YExXxydmWku6 GD2IcA0blDbhvaLkR/D9I/zJi7jATnknUN5Gu57O3o8B6HGyt7utmhgnbrmAW4mYpctu bIa9ovc2UvhTdaYtuSp7NgpDvKv0JHvbOkYhP3M9UmWbF1vhjP3V8pW0xV/iOOyBXs0r kRfIkbFhZcqI6vsL4HnDlfRHF15o+Ipho+C40hyc2kmoKKV1I3CN7cz3eQtK1p+/Ccm/ n4h//ORgHOuxkXMDKj2faxGuHwjdncXVdNazEA/LIhQhHamEEj3g1frdZ31ivEukcnrM HjGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JFUcdzOUencsCKId/ctBPwQiHSHHBRg97HyGLAkaW4E=; b=tgUZg6q38wdWn7bVjTOEOqQK6IwhRsAnf8FUOY59K1rGqc3Sm65UZf7MME3zcZ5nQu Sck76adhPqMQMj0vvFP++c5TkcWuq5EsrHdmt6wXANWVWtYBZzPdUFil7cy5dRCHEXnd Bl/4efUDfUkdp4hfRkmRFLI91WbqETAmo7g35BkOd/GJiJDvpTQ06dac989RpML9fwgA fVjP0TtcBZZUCqrk/ovWbk90WpFWro7lhJdStUltu61GTL/ogrSw3GFkKd0ea6nU61Sk A8GWIcgXinn88W6vD9jWPeowLVStFfqUyqvm4Zbv1KJrY7bPh/3vdkdOqqKmX6oDQH+p XzXQ== X-Gm-Message-State: ANhLgQ0cBkOO/nEGj96DOEwt/SgF9+/iPc/BOcPclXyUzMVtRoPP/smx NOtDCaeA0X5GJ5La+G+SU9c= X-Received: by 2002:a37:6852:: with SMTP id d79mr10937577qkc.304.1583840707653; Tue, 10 Mar 2020 04:45:07 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id h9sm23852287qtq.61.2020.03.10.04.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 04:45:06 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id DF4DA40009; Tue, 10 Mar 2020 08:45:03 -0300 (-03) Date: Tue, 10 Mar 2020 08:45:03 -0300 To: Leo Yan Cc: Mathieu Poirier , Suzuki K Poulose , Mike Leach , Robert Walker , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Coresight ML Subject: Re: [PATCH v5 0/5] perf cs-etm: Fix synthesizing instruction samples Message-ID: <20200310114503.GA25299@kernel.org> References: <20200219021811.20067-1-leo.yan@linaro.org> <20200310054305.GA21545@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200310054305.GA21545@leoy-ThinkPad-X240s> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Mar 10, 2020 at 01:43:05PM +0800, Leo Yan escreveu: > Hi Arnaldo, > > On Wed, Feb 19, 2020 at 10:18:06AM +0800, Leo Yan wrote: > > This patch series is to address issues for synthesizing instruction > > samples, especially when the instruction sample period is small enough, > > the current logic cannot synthesize multiple instruction samples within > > one instruction range packet. > > > > Patch 0001 is to swap packets for instruction samples, so this allow > > option '--itrace=iNNN' can work well. > > > > Patch 0002 avoids to reset the last branches for every instruction > > sample; if reset the last branches for every time generating sample, the > > later samples in the same range packet cannot use the last branches > > anymore. > > > > Patch 0003 is the fixing for handling different instruction periods, > > especially for small sample period. > > > > Patch 0004 is an optimization for copying last branches; it only copies > > last branches once if the instruction samples share the same last > > branches. > > > > Patch 0005 is a minor fix for unsigned variable comparison to zero. > > > > This patch set has been rebased on the latest perf/core branch; and > > verified on Juno board with below commands: > > > > # perf script --itrace=i2 > > # perf script --itrace=i2il16 > > # perf inject --itrace=i2il16 -i perf.data -o perf.data.new > > # perf inject --itrace=i100il16 -i perf.data -o perf.data.new > > Could you pick up this patch set? I confirmed this patch set can > cleanly apply on top of the latest mainline kernel (5.6-rc5). > > Or if you want me to resend this patch set, please feel free let me > know. Thanks! Thanks, all build tested on x86 and arm64 (with CORESIGHT=1, etc), applied. - Arnaldo