Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1882731pxb; Tue, 26 Oct 2021 18:36:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVoPNTZGXRQRu1/mf0lGE/7b0I20qfkzgmYLuPvmFmh3V7kKn4Y5bG2WbFuH/Zt12xlQG+ X-Received: by 2002:a05:6a00:1794:b0:47b:e61f:312a with SMTP id s20-20020a056a00179400b0047be61f312amr20030146pfg.49.1635298616902; Tue, 26 Oct 2021 18:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635298616; cv=none; d=google.com; s=arc-20160816; b=RGbyTCzFZsmbmGLjVylXCU2F6anUyWmbqGQHeyIk2Cgen/sJpBgUAbInQZqTLdTsVq JtLo8EYlQ4XYY7xH2y9BlFUI3IYgTXPJSKXECdgGI5axnwByJ/1cz9DXgy/mRrjXhF3j ZhcLMc4B5rcO/pECHRrc8JihKqSE7vr6E+FbNgQyiqr8qIgX2mNpoVQP50RtFSXEKtvo 84haaIjFWS9GeQRdZ+gAoezQQNScE2X0JHYrwzd1qpopWfnoJ/TeW0rP90Ucksu7gzMu 5m6NCAgLmHfGwFrUyxuax13ErOdGxxkMC23fNwGf5Lzo8JIwqOQWCS+BrTUrMuiJjOTr nFAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=io/doE4NPFzXbZbx4WhYlkAr9zAVKRzCFfMEf+IvlBo=; b=x21mhkWFr+htvZJHOecve5oRa9Afcspn1SREYJIsfHLsrDMyVhVQb68nmLnsYuO3kN RqN4nO+DDQu6ahGF/q3vNQkHF5i8g3ceaZc687fS8BiT+oDC1U3JtwX/COW8iqEhXhBd EdNDijrQgQeNr1I2KqaHdrc91B6h/nP8iUcvwe0XyLTADWnPt7KBvUl6q/QOtrCVrQYa zh2sZNNghqF78183q2SFE8Z4nHu/7b/0VoAymRKSj5Oa85xcVUsXVGUV53VIPM0YbTuH 54a8Wi+bBSUl/18OijhswPDnmAeugV7Rfmo6nZ6qTvCe3Eg8X6X0BV2zcSjEnnJN5H0r APPw== 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 m9si30173675pgv.403.2021.10.26.18.36.43; Tue, 26 Oct 2021 18:36: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; 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 S236337AbhJZRF2 (ORCPT + 99 others); Tue, 26 Oct 2021 13:05:28 -0400 Received: from mga12.intel.com ([192.55.52.136]:24684 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232003AbhJZRF1 (ORCPT ); Tue, 26 Oct 2021 13:05:27 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10149"; a="210047105" X-IronPort-AV: E=Sophos;i="5.87,184,1631602800"; d="scan'208";a="210047105" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 10:03:03 -0700 X-IronPort-AV: E=Sophos;i="5.87,184,1631602800"; d="scan'208";a="497434243" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.135.40]) ([10.212.135.40]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 10:03:02 -0700 Message-ID: Date: Tue, 26 Oct 2021 10:03:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH V2 3/6] perf intel-pt: Support itrace A option to approximate IPC Content-Language: en-US To: Adrian Hunter , Arnaldo Carvalho de Melo Cc: Jiri Olsa , linux-kernel@vger.kernel.org References: <20211026090152.357591-1-adrian.hunter@intel.com> <20211026090152.357591-4-adrian.hunter@intel.com> From: Andi Kleen In-Reply-To: <20211026090152.357591-4-adrian.hunter@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/26/2021 2:01 AM, Adrian Hunter wrote: > Normally, for cycle-acccurate mode, IPC values are an exact number of > instructions and cycles. Due to the granularity of timestamps, that happens > only when a CYC packet correlates to the event. > > Support the itrace 'A' option, to use instead, the number of cycles > associated with the current timestamp. This provides IPC information for > every change of timestamp, but at the expense of accuracy. Can you expand a bit what exactly the accuracy loss it? Would be good to describe that in the manpage too.