Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2932388pxy; Mon, 3 May 2021 11:10:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVsmmduAlD9x65KW1jqUAALEDOT5fzQt/Z9/fhW6XqRilc9Pqiy/XN2pXU7MfhcFvteoq2 X-Received: by 2002:a17:90b:3593:: with SMTP id mm19mr23017436pjb.146.1620065401207; Mon, 03 May 2021 11:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065401; cv=none; d=google.com; s=arc-20160816; b=c53cgL9OffKPf3HkqP9gVfXXH0saaHoXOii/hsg/3FOx1fMF2DQ1tBjcH/vvhywsX0 zdGrPrfJugyf7MDbT00x/Meap49SzwW0oTjQaN3q0ais3zdU0kn6mFcrSrWNBeUI7DJH vKRO2Z2MXBSZPT/2Ckg62IysHOX1p3mgZ0BT3VkNNpSBkDPG0iEU4m48VvUX0mg3ETaB wW36ZkyndXbxq5JNILz4v41ICk7Iy46Mj7a9PQF8UkzAXhy7KvTGxUWVOXRMzWqyLoLu 3lg3aniRs2neMtmxSnZkIivjooDq/s/RIadia/3Im6265/TFgJxvfZooULByBhxt8OZs 8BRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=SqU9biPj7nf6H3D2RRIX7Yqih22RHumJeXzmlksrCXU=; b=GkjIBjDLKdlxHgr7S/3bASHqxWa3Brra2NLmkKZilXab85yd/h9xWTAQs5Vs4D/05X eCNl85wG2lrUDWmGSl3SHseecV0dDyz8e9C992q9Rvf4D0oQ4/4J2bVXcVUWYx2a1OUi jcm9rRLRtHwUwALWfS3kn69k5TeRa/SZAR6MqVsC16Fq4T0vwjSSP8wzuqzFTExYi06s +F3QyXtjNCblgIPIBJC4DXtFHrjPEu7ddmvlMsl4ssWvK3bwiuIGxPeJ4hJx8QLE0NNZ adbamMNAug9y7GLylMM+dcl7+GRP8oozMuWZw87E+0bSDXwJdHRGSFnXw6/j67bvqzFf RDpg== 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 u16si14828718pfk.295.2021.05.03.11.09.47; Mon, 03 May 2021 11:10:01 -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 S230225AbhECPHO (ORCPT + 99 others); Mon, 3 May 2021 11:07:14 -0400 Received: from mga04.intel.com ([192.55.52.120]:6839 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbhECPHN (ORCPT ); Mon, 3 May 2021 11:07:13 -0400 IronPort-SDR: kWmLQ+c+KEZZkPzEo2nddoIb3MuZwiT4sj9qhsMt7Mv0SHHfZsTbdPt6TzAypebvXcceVE/o2O oq0QhvojdIYw== X-IronPort-AV: E=McAfee;i="6200,9189,9973"; a="195704633" X-IronPort-AV: E=Sophos;i="5.82,270,1613462400"; d="scan'208";a="195704633" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2021 08:06:18 -0700 IronPort-SDR: GzTOb0mUd+p6Ew2KRAhXLthHMuyCbSrrt9bABwEZzM2zHoz7tG97Dj/vW9sdXEwsM+KQL8mFcj UeTNFL4r1mYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,270,1613462400"; d="scan'208";a="468095843" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.174]) ([10.237.72.174]) by orsmga001.jf.intel.com with ESMTP; 03 May 2021 08:06:16 -0700 Subject: Re: [PATCH] perf record: Set timestamp boundary for AUX area events To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org References: <20210503064222.5319-1-adrian.hunter@intel.com> <20210503145637.GN4032392@tassilo.jf.intel.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Mon, 3 May 2021 18:06:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210503145637.GN4032392@tassilo.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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