Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3494565pxb; Tue, 7 Sep 2021 00:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGQ/J34XivpnY4pLDyDwufShjCUzoFgJGwWiHgsV7lcqFdRJBYoDxMyrZ6pf06M86n+cM2 X-Received: by 2002:a5d:850f:: with SMTP id q15mr13073063ion.118.1630999261334; Tue, 07 Sep 2021 00:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630999261; cv=none; d=google.com; s=arc-20160816; b=CinxMZr9boxk0vT/pLz7lq/IPqvmkcr6BZ66kzy9xmb8qWyF2ufUjAB21zhxEAm6dg pgKywtMgrdDsUEN7iZSWtb5/xcoiR1/1cjcIBh2tpatb68JKSgQljMrj4vvqFTwnFrKN seam+X8AIPJkdkWb+KCm3y5PV+XTuUCbWKwM/T4JGmH80MYFT5iwi2Z7mdSMOIyDY8TK jMc26dSgN5YDyxxv7ZT/rpLI/8tX/VJQoAEvAEkTPEijRj0HZ1gbvZz7UE0EI3L5V3y9 Z0HCBFrocYW6AobjmwIsvMnpn39vf3z9z/AvFQlQQCKlXOupLF8pELoC1u2OrVsxSd7G z1LQ== 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; bh=60HUGl4kxPOfOqe2ma92JSzzTZfG6Z3on4DvZe7KnxU=; b=J5FDxoyGb2eelax9jm4sqW9N4MKqwSBdjx9IUu0Ys6MB0OHu+ntwHRnwu5lqPx0WEd wt1eL7OglHxvtqixucVibu6H2L4Yuz/hL/iGJ7t7MdRRxsq+6YQ123sgAqmXo6i/N/p1 a/WgC8ijwxTTT1ulbSbrb9I7ajfrcAzp9lSR+xM2slyT8c37eRUvkuhzVNPqKzjd5Y1Y qX18J2uqDguXKPGMb5PYkF2nWlW7b5hfs7TCAxRYwIFKOTSX8NqDMAbDkdD25HNSoWm/ nAgEeE4MYHBMSc6raXpFu1uV68+cSftQe0hEWsCYgqoxRwsUSQ0d+FhG5latLbG2xEvi CY0w== 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 n21si9403997ioh.16.2021.09.07.00.20.50; Tue, 07 Sep 2021 00:21: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 S236114AbhIGHGw (ORCPT + 99 others); Tue, 7 Sep 2021 03:06:52 -0400 Received: from mga01.intel.com ([192.55.52.88]:11727 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233576AbhIGHGw (ORCPT ); Tue, 7 Sep 2021 03:06:52 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10099"; a="242401926" X-IronPort-AV: E=Sophos;i="5.85,274,1624345200"; d="scan'208";a="242401926" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2021 00:05:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,274,1624345200"; d="scan'208";a="692327309" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.174]) ([10.237.72.174]) by fmsmga006.fm.intel.com with ESMTP; 07 Sep 2021 00:05:35 -0700 Subject: Re: [PATCH] perf dlfilter: Add dlfilter-show-cycles To: Andi Kleen , Arnaldo Carvalho de Melo Cc: Jiri Olsa , linux-kernel@vger.kernel.org References: <20210906160850.22716-1-adrian.hunter@intel.com> <7bee95a7-fa31-a801-8068-80c63ba6ccfe@linux.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: Tue, 7 Sep 2021 10:06:03 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <7bee95a7-fa31-a801-8068-80c63ba6ccfe@linux.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 7/09/21 5:54 am, Andi Kleen wrote: > > On 9/6/2021 9:08 AM, Adrian Hunter wrote: >> Add a new dlfilter to show cycles. >> >> Cycle counts are accumulated per CPU (or per thread if CPU is not recorded) >> from IPC information, and printed together with the change since the last >> print, at the start of each line. > > > Thanks! An example how to use it would be nice I started looking at making an example and noticed that this approach does not work very well because the IPC cycle count only increases when the IPC is output which (for CYC accurate mode) is only happens when a CYC packet is output that corresponds to the current sample. Seems like this needs a re-think, sorry.