Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2972992pxy; Mon, 3 May 2021 12:02:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnahq9wGTxKTWY06m78CIJifauA0CCzPWkodPqn2Av/NX34GEE8pBGws3jKU2utDD+Rb4G X-Received: by 2002:a17:902:d70f:b029:ec:b679:f122 with SMTP id w15-20020a170902d70fb02900ecb679f122mr22613332ply.38.1620068576759; Mon, 03 May 2021 12:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620068576; cv=none; d=google.com; s=arc-20160816; b=li85ipsc77aqLKH3pqLR9stBKzg1C6XPH6DGc3KCs0PoTGnDvRgF1jlzoJ/XgDPvx+ +DCFwKJfVqcDuZg/ReVciS2FDwj2wkWtdPk60RzPAYoEKgfvtSw77Q5kH8TRUurKyXN/ XF0yXNS5JFVtGMUQ2Hrt4erajVy3/Aqu/5jOyP9z8VORncB6RNC+uiuLop2pY0Aeym8l gVVPs6WbbLkWhcgA+Lo0EFGRDGq3v5xZUoOvIQHXGp93P1Fvi5jmzH2Zr/tWQGSlIjui xQ1RCQQo62nAzjnhXdZplthktE6R6wfOAEhJKlZYFzSRhU2VEj0XIutkr/7IC1TpwGK5 hD3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8Pc+zdHpDBfr8HoQKhSrVS57p+6Jga7Cu17hIKy0gVk=; b=Tux8kweIbbQ7TL53fT1Uhy3rbVWf/ef0DMOIOb0cfurjqzktS/Y45fn2xxU0UYAxHT Gl7kG0HF2TdSUigeo5HpthMdYoeFHig4ewyOnhVmmxSA0aCzAKwSxA0X83IYE5UxT8tQ keRiGjsK5JX4mmLcVIhYCiDJ+JsAqTBTwC2RFk0pfUHjumS/AiuAnSv/v3KUNSzdpc/i 1021LslaXbsIwjntfDAS31GeezP4k9lBgcqW+TWgHMWMs9oxAWOluki6SJMN2OgBi0zh sjaEzsrzNzhS/HF5d3L6qdeJKWJTmwX0YF7m4Blzgr58ekY2htfO1LtamG2BnFwVbVCv yL3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rIx0igrW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b4si554751plk.49.2021.05.03.12.02.42; Mon, 03 May 2021 12:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rIx0igrW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229603AbhECTBT (ORCPT + 99 others); Mon, 3 May 2021 15:01:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:54344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229594AbhECTBT (ORCPT ); Mon, 3 May 2021 15:01:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4872961153; Mon, 3 May 2021 19:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620068425; bh=7e742zsoPr1tYdh6ay1S632cp/o0IVi8RKQ+w0cqQ30=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rIx0igrWplWAdJWc+zHHHZHbG/BZy+8aw5Ao+zV8wxJGp4+anPpIA/fYHOo9zZaqQ AS51u2l0hHg8ryQ0rL8pnmEN5vNAx/KPQvFCOmFhPGP96bKjcdNfeXJ82WAjIPenHa YLmfBgx1DH/oN8QlU5tBmjIO1nMukAPI0MiFMmdaLvt47PEdLbx3LK8x/0XheecCdQ prH2UHMJkH45O/PWXSylxMyZQo+YIaXTT8u1RxXYmPU0QnqnkYHOvfvtBi3P9axBaT 60txUXzeGrTZvcf7sXOPUfiAk0vEK2tlCq0hGp32eX44pePC9CnstCexRDezeSUEPZ iPtAoNtshFPNw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 3D4D141084; Mon, 3 May 2021 16:00:22 -0300 (-03) Date: Mon, 3 May 2021 16:00:22 -0300 From: Arnaldo Carvalho de Melo To: Andi Kleen Cc: Adrian Hunter , Jiri Olsa , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf record: Set timestamp boundary for AUX area events Message-ID: References: <20210503064222.5319-1-adrian.hunter@intel.com> <20210503145637.GN4032392@tassilo.jf.intel.com> <20210503161131.GO4032392@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210503161131.GO4032392@tassilo.jf.intel.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, May 03, 2021 at 09:11:31AM -0700, Andi Kleen escreveu: > On Mon, May 03, 2021 at 06:06:38PM +0300, Adrian Hunter wrote: > > On 3/05/21 5:56 pm, Andi Kleen wrote: > > > On Mon, May 03, 2021 at 09:42:22AM +0300, Adrian Hunter wrote: > > >> AUX area data is not processed by 'perf record' and consequently the > > >> --timestamp-boundary option may result in no values for "time of first > > >> sample" and "time of last sample". However there are non-sample events > > >> that can be used instead, namely 'itrace_start' and 'aux'. > > > > "instead" -> "as well" > > > > >> 'itrace_start' is issued before tracing starts, and 'aux' is issued > > >> every time data is ready. > > > > > > Hmm, what happens when some other non PT events are in the same perf record? > > > > The sample timestamps are still processed, so the lowest sample timestamp or > > 'itrace_start' timestamp or 'aux' timestamp is the start. Similarly for the end. > > > > > And those maybe run at different times than PT (e.g. due to some PT specific > > > filter). Does this all work correctly then? > > > > The broadest range is used > > Ok makes sense. > > Acked-by: Andi Kleen Thanks, applied. - Arnaldo