Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2934748pxy; Mon, 3 May 2021 11:12:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKmpwWBwFioTjtvDuqA53hz4wr4LdZhTE0JBcgbMqsbclRqbm5N/YTqKFTvAHvrEul4+Se X-Received: by 2002:a65:584e:: with SMTP id s14mr19185731pgr.229.1620065465895; Mon, 03 May 2021 11:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065465; cv=none; d=google.com; s=arc-20160816; b=d6wtS+l1m5ZTEuiUhD4iWKYG0i44UVlmEQdcGrDwLmQqywspD8I8tkwzRtpsFLr5iK mvzwLj9nyth6gyTgZ/JgOBnLIruZCEKDutV3gGacIbns9eeIWZdJ8aPsqwlss9v268S3 9AAcw1VIc1Sa1QSX4YQccNwtUCb7BbxMa1H9AdDDnH4i5GC0gxauzdi4VOETFyFS9O98 0A2ajbbLEnL1KGIlKv/CUQ5iPuihXDywcgu7jVLwE5zLDBuzoxuqxXBnWeVN+JudWMqY voyLvyGLfd4Pq/0UfHnUNnt1NX4L86hywk4MB97tSpFDF8xozOcypkQr1uFcdhAOBc0R HGug== 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:ironport-sdr :ironport-sdr; bh=HSrRBKeKHuwX5y1fIzkIva2LAHhxXQaaDQa45REPpZA=; b=XSYW5I3ZAA3BGdMs4hAUkjRLmrpqSGqDUmH5fDy/IKnGegijpMp09ViV4IalJSw3Vy LiM4rulh0qRiM54FWo5LEOV8z0SQz3nQPdh0O8/Qa21gBnrgat2Tjx5j9cfVsy2q/E/I F/jwHAKWCRZmIm0hltVu/cKFHnzk8zTjGY4bdJh5XJ5Y7vTkJEYT1PJ9IpQL4vwMWT6a uDfIKVsyfhPWk9EVABzUF4zu55Ucu793hRzJketZQX/BPacMfunLhWSZq81m9LyihtfQ ZWqD8gyG0erZHQeZn/NWZx4mnVSrWE+h9q0PexhFHbBGrBF+bk5GLLr+yjNqv5zVhcCj Tnww== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si538798plg.24.2021.05.03.11.10.53; Mon, 03 May 2021 11:11:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231195AbhECQMa (ORCPT + 99 others); Mon, 3 May 2021 12:12:30 -0400 Received: from mga12.intel.com ([192.55.52.136]:8027 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbhECQMa (ORCPT ); Mon, 3 May 2021 12:12:30 -0400 IronPort-SDR: xxxxGNak+jXBeRGIpAsUbIXSrOLD+66IbBlygtSz7kvg07XRh/HOiX8jsiNRYtR+WrWKlIG3G9 qHokUWo9QSwg== X-IronPort-AV: E=McAfee;i="6200,9189,9973"; a="177309170" X-IronPort-AV: E=Sophos;i="5.82,270,1613462400"; d="scan'208";a="177309170" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2021 09:11:32 -0700 IronPort-SDR: MRr6RAn0sRrfcata57+uSIRXTIEQTYpmLf8KRdcZfSDTqVs3dnZbjjJ1J0XxtmFp5wl4iAcvPa CNrWFpHIQQjg== X-IronPort-AV: E=Sophos;i="5.82,270,1613462400"; d="scan'208";a="462637585" Received: from tassilo.jf.intel.com ([10.54.74.11]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2021 09:11:32 -0700 Date: Mon, 3 May 2021 09:11:31 -0700 From: Andi Kleen To: Adrian Hunter Cc: Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf record: Set timestamp boundary for AUX area events Message-ID: <20210503161131.GO4032392@tassilo.jf.intel.com> References: <20210503064222.5319-1-adrian.hunter@intel.com> <20210503145637.GN4032392@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -Andi