Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1442325ybz; Wed, 29 Apr 2020 22:40:13 -0700 (PDT) X-Google-Smtp-Source: APiQypLnBOPEwf149S1BUyk3wWdVdo8gbFl79JEjOSOgfU8bpjKln9bsJ0p+7dDJneAYzj9zeTsw X-Received: by 2002:a17:906:5958:: with SMTP id g24mr1218800ejr.58.1588225213139; Wed, 29 Apr 2020 22:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588225213; cv=none; d=google.com; s=arc-20160816; b=pdOMK6O9R/FVz3HkvxRTsySlbnp6SUSup4tV4uCWUdvh5WQ67QvagH41QfJsCvq60W bt5MywE9Sym/gFZVBGdBjlhFHK81XuGGfPq7ucb06/7M4QT+lNt1Qc0dm7dTedk+RzAn 7nepZkg9d6jebvAo897JS3ToLIdufOF8Ps19VsIB7ntLSmZBogvdXWItr0jZLn06Y4Bs O6QiqbrZUwLj/+OUQP+T+opCjQrW4kHPZnXvWe7DMkFymGfkIWmSnRyqJ5XEUChpnZNj waftYzah7WW1rywfM1YtArx8YRGaRgUB6tOLUdkIhDBgbP4Xjohy9LwpZT1noEtPMlhD JbDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=xx2RJzqhAUwBbwAftkACCoKff1gxETJd5wJfTci2UHk=; b=RZad/xG4EPO8zQutaDAMU61EOPnh2k95LPpCak47V1ka/YS0zTY0FqE8s/c7Tg4JMI Kxd6fz5GsuLwWaeYU+uN/wgrTyGYxbPOR8GtnRdHXypzqIgLOfXr5rWoKRF91LL+coV7 bexSXZgisVGYb/EUG2WAV17no5DbZ6lQLth9/2kycK4UYflJ66PUfcjNTteVVUBVV1kV 3COtMu6Wk3O92Q+K6QKuKXOs0olTYG0St7YsTTDJEE6nD/f6vgvQfsurhj3dwuCkF+3r SCH8nc5XUQfMI2LIW+aPUsVgCCkfg3soEJD9mG3yUn7A5sk83HZxmpdn+z+/zZ2Ek+mL cLDg== 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 cf5si5310483ejb.171.2020.04.29.22.39.49; Wed, 29 Apr 2020 22:40:13 -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 S1726489AbgD3FgU (ORCPT + 99 others); Thu, 30 Apr 2020 01:36:20 -0400 Received: from mga14.intel.com ([192.55.52.115]:65297 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726180AbgD3FgU (ORCPT ); Thu, 30 Apr 2020 01:36:20 -0400 IronPort-SDR: cPUwJOQ9mo+AS2B5Nyq5tF1VhpkhtnrLa4TXhuItDPO3LOS25cw9BCZi9/s4vG1qE6nKzgktdt mggMwc7MpzQg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 22:36:20 -0700 IronPort-SDR: ZAfYG74UdpEVjt8SyDRd9msNumJYrFAQDvKGPw2LJlORo3IQexl0vdRIVCDjCeVKI3TcMupULz x5ovC4Tu6EFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,334,1583222400"; d="scan'208";a="249650465" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.157]) ([10.237.72.157]) by fmsmga008.fm.intel.com with ESMTP; 29 Apr 2020 22:36:18 -0700 Subject: Re: [PATCH 8/9] perf intel-pt: Update documentation about itrace G and L options To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org References: <20200429150751.12570-1-adrian.hunter@intel.com> <20200429150751.12570-9-adrian.hunter@intel.com> <20200429230356.GB874567@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: <0938999b-00c0-25cf-9a87-a7abc1cbac1c@intel.com> Date: Thu, 30 Apr 2020 08:36:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200429230356.GB874567@tassilo.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/04/20 2:03 am, Andi Kleen wrote: >> +One caveat with the G and L options is that they work poorly with "Large PEBS". >> +Large PEBS means PEBS records will be accumulated by hardware and the written >> +into the event buffer in one go. That reduces interrupts, but can give very >> +late timestamps. Because the Intel PT trace is synchronized by timestamps, > > Are you refering to Broadwell here? I was testing on Coffee Lake > > On Skylake/Goldmont the PEBS event contains the TSC and the time stamp reported by > perf should report the time the event was sampled based on that TSC. > Or is that not working for some reason? I guess it is not working like that, but perf tools would probably need special rules to sort the events because the they would break the rules of PERF_RECORD_FINISHED_ROUND, wouldn't they?