Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1149383pxb; Tue, 26 Oct 2021 03:49:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpdn/iXF9mKs83klDsTFGp1wrHXrW0NUS3lGd3T6zkwk67X9rw3R6wEbs4kP5UeiMMI9Ih X-Received: by 2002:a17:902:d4d0:b0:140:1bd6:a84f with SMTP id o16-20020a170902d4d000b001401bd6a84fmr21648180plg.20.1635245368809; Tue, 26 Oct 2021 03:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635245368; cv=none; d=google.com; s=arc-20160816; b=vgmV91xl0wEyqoGpEL2ObISvm/SsfYYaRsN5d9JxEr5dwiwA2Vb/BHTiMyloL93DlY FE6XAwOlP/vb0Ru7aYI4ug/nNFiwvT07VwD1Ph3rTe3dhmUhqHZuRsZhYA7TFF0Lfibb AgeV5MhVN9+h1p/K54WIAXF2abFNdxoszlKDRFFrpDQkDehZsWQedXDf8yB49gKVqTaM IHmM9iFkrp5bQ/BUcZQaYM8GAP3rbSMdUNKloZold3T7sxuMUHV/Aefb1asYk+H5Tp11 GFgIBVMhA7cAtINXLaSwMVoLDWjmMLSz4m5TrpL+6Y4xQhnzCAaQAbM+BUWMZK+GnYGw 4mAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:message-id:date:subject:cc:to:from; bh=WXK9eOj1CFJ6ORlDSTNJXPwk2cqfcIyvYtiFchegNoQ=; b=IWkUkNa5JsIjZ/atwKAirs1XjvvvEbELiVDkJgzaKrF5AzC7/wNmch0WbOr7vdJBCI 4xlttgmeyKr8hwJqiS7P8Z7yTRaaF0YZonAKr9Cidb0KtrUnwgREmkKtdUVu9Uqug1D0 SFM9mpZYf7uv4CNr5JDntoz4mUUySARYar6AC0Uc8Wi7qs3JDVokt1x5Vy8nHZmzGaKJ rM2s6QXUEIJs61veP+qf92benNkshSNN1/rWIY/NiBoViTrxVo31g0iLUpHsqyUlwcw+ NW3G3C+//2hl0fBmyEV0BZ5peQ1wuRRtP9A3JCTVD2wT8twX9FWXv5rcaogbzcCuPkO8 d0lA== 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 y16si547405plp.69.2021.10.26.03.49.15; Tue, 26 Oct 2021 03:49:28 -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 S234594AbhJZJET (ORCPT + 99 others); Tue, 26 Oct 2021 05:04:19 -0400 Received: from mga17.intel.com ([192.55.52.151]:37214 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231325AbhJZJES (ORCPT ); Tue, 26 Oct 2021 05:04:18 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10148"; a="210639796" X-IronPort-AV: E=Sophos;i="5.87,182,1631602800"; d="scan'208";a="210639796" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 02:01:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,182,1631602800"; d="scan'208";a="723991204" Received: from ahunter-desktop.fi.intel.com ([10.237.72.76]) by fmsmga005.fm.intel.com with ESMTP; 26 Oct 2021 02:01:53 -0700 From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Andi Kleen , linux-kernel@vger.kernel.org Subject: [PATCH V2 0/6] perf dlfilter: Add dlfilter-show-cycles Date: Tue, 26 Oct 2021 12:01:46 +0300 Message-Id: <20211026090152.357591-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi The issue with V1 was that the IPC information used to accumulate cycle counts has a lower granularity because it is output only when the cycle count correlates to the IP of the event i.e. only when the IPC is exactly correct. To enable more frequent updates to the cycle count, itrace option 'A' is added, which specifies that IPC information can be approximate. In addition there are some new miscellaneous patches. Changes in V2: perf dlfilter: Add dlfilter-show-cycles Separate counts for branches, instructions or other events. New patches: perf auxtrace: Add missing Z option to ITRACE_HELP perf auxtrace: Add itrace A option to approximate IPC perf intel-pt: Support itrace A option to approximate IPC perf auxtrace: Add itrace d+o option to direct debug log to stdout perf intel-pt: Support itrace d+o option to direct debug log to stdout Adrian Hunter (6): perf auxtrace: Add missing Z option to ITRACE_HELP perf auxtrace: Add itrace A option to approximate IPC perf intel-pt: Support itrace A option to approximate IPC perf dlfilter: Add dlfilter-show-cycles perf auxtrace: Add itrace d+o option to direct debug log to stdout perf intel-pt: Support itrace d+o option to direct debug log to stdout tools/perf/Documentation/itrace.txt | 2 + tools/perf/Documentation/perf-intel-pt.txt | 23 ++++ tools/perf/Makefile.perf | 2 +- tools/perf/dlfilters/dlfilter-show-cycles.c | 144 +++++++++++++++++++++ tools/perf/util/auxtrace.c | 3 + tools/perf/util/auxtrace.h | 6 + .../perf/util/intel-pt-decoder/intel-pt-decoder.c | 1 + .../perf/util/intel-pt-decoder/intel-pt-decoder.h | 1 + tools/perf/util/intel-pt-decoder/intel-pt-log.c | 8 +- tools/perf/util/intel-pt.c | 21 ++- 10 files changed, 200 insertions(+), 11 deletions(-) create mode 100644 tools/perf/dlfilters/dlfilter-show-cycles.c Regards Adrian