Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp449838ybb; Wed, 1 Apr 2020 03:18:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtVo0d/INoVNfhHcTlMW6Z4rAy06+WS7JthjCOAt7XZRPHDGpUx1bzzxcYs/n/1/2oxYnWa X-Received: by 2002:a05:6830:1d95:: with SMTP id y21mr16898147oti.180.1585736287904; Wed, 01 Apr 2020 03:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585736287; cv=none; d=google.com; s=arc-20160816; b=CRXX/Rhg2Eo/z6dZaqadwKTGPAHyzCPVXwrV35rUL58Ts9BRpyIqRLQTlQCmpnrPyw 3FcIGMbOOyFJtSfN3DD3WXHydagrcIB8yw0V7VNkEwsC6u8LBzzubiwkZnmsfKrcnZ1h W4tGIhaNbBf8eVYqvNucrS0/xhq3367QWufAGc+XSBJ+bSygNWenkjgQPgLl3KboCgiz hBSkxpg33nmMqaOqvsC98cOTPDR2I1JxTbxvUYJVl8A21YLuQ6XKa9SjWrHxiHgiwOFe ov6HyT8nqkcWOWzp1ivhT6WdtIlufAzCL4qAUoZejAtka7al/FWURpEybjDdjJoUvu4x sf/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:message-id:date:subject:cc :to:from:ironport-sdr:ironport-sdr; bh=7ibZlW8Bx57pnEteMOz2N75be37O5wGHewydQozFPks=; b=laqAXCBxVywcgSIkCI+b7uwDuDKD1PKVpJOlPzjR5Z0FXvBulYD9kTloKjZ36/iFZ9 0hDa9wd1b4H/aoEimEGS0FMWibP8OelkNW1kh1j3EgoNzwJbSNRQOxTe2eEv1G+JUMfL k/3uMsfBc2HQx5PRmTNFqxLguFep41r7IbttM9wExg9v2d/c6ahkPD3dnc/KMaULq0U0 eoiSMcOsm/D2JE630ho99Xrn/Rx8dXjWF81Cf28Y8z++Dsi6p5Z+XREAMujZRswdE1fw kPRdnTQGYIfGVbOYz/Y04IDnsWogLOJmF4FXwG38Rrr+vL7x5WQ/1pRZyeQw4qtVNYqX oF4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id p21si693183oth.257.2020.04.01.03.17.54; Wed, 01 Apr 2020 03:18:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731749AbgDAKRd (ORCPT + 99 others); Wed, 1 Apr 2020 06:17:33 -0400 Received: from mga01.intel.com ([192.55.52.88]:34142 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgDAKRd (ORCPT ); Wed, 1 Apr 2020 06:17:33 -0400 IronPort-SDR: yTYzyF+dGYD6rRcI/8gf01PGgcLLjm6f8gM2dGjhUHhOGM+JnncNU4j8RoKO+hfKsaUxkKnErf ArRy/72NJnZg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 03:17:31 -0700 IronPort-SDR: MbmP2s2t4a2a/ElccBqSIdGlVafEm4qRUUWGetqaqSfo0ZWCUfWd8CJHbPHpnKHJANSbZ5bm+6 vtypDT1PygUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,331,1580803200"; d="scan'208";a="395925464" Received: from ahunter-desktop.fi.intel.com ([10.237.72.87]) by orsmga004.jf.intel.com with ESMTP; 01 Apr 2020 03:17:30 -0700 From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Andi Kleen , linux-kernel@vger.kernel.org, Adrian Hunter Subject: [PATCH 00/16] perf intel-pt: Sampling improvements Date: Wed, 1 Apr 2020 13:15:57 +0300 Message-Id: <20200401101613.6201-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.17.1 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Here are 3 sampling improvements for Intel PT: 1. Patches 1 to 7 For reporting purposes, un-group AUX area event Please example in patch 7 2. Patches 8 to 11 Add support for synthesizing callchains for regular events Please see example in patch 11 3. Patches 12 to 16 Add support for leader-sampling with AUX area event Please see example in patch 16 Patches also found here: git.infradead.org:/srv/git/users/ahunter/linux-perf.git callchain Adrian Hunter (16): perf auxtrace: Add ->evsel_is_auxtrace() callback perf intel-pt: Implement ->evsel_is_auxtrace() callback perf intel-bts: Implement ->evsel_is_auxtrace() callback perf arm-spe: Implement ->evsel_is_auxtrace() callback perf cs-etm: Implement ->evsel_is_auxtrace() callback perf s390-cpumsf: Implement ->evsel_is_auxtrace() callback perf auxtrace: For reporting purposes, un-group AUX area event perf auxtrace: Add an option to synthesize callchains for regular events perf thread-stack: Add thread_stack__sample_late() perf tools: Add support for synthesized sample type perf intel-pt: Add support for synthesizing callchains for regular events perf tools: Move and globalize perf_evsel__find_pmu() and perf_evsel__is_aux_event() perf tools: Move leader-sampling configuration perf tools: Rearrange perf_evsel__config_leader_sampling() perf tools: Allow multiple read formats perf tools: Add support for leader-sampling with AUX area events tools/perf/Documentation/itrace.txt | 1 + tools/perf/Documentation/perf-list.txt | 3 ++ tools/perf/builtin-report.c | 3 +- tools/perf/builtin-script.c | 2 +- tools/perf/util/arm-spe.c | 10 ++++ tools/perf/util/auxtrace.c | 94 +++++++++++++++++++++++++--------- tools/perf/util/auxtrace.h | 14 +++++ tools/perf/util/cs-etm.c | 11 ++++ tools/perf/util/evlist.c | 6 ++- tools/perf/util/evsel.c | 41 +++++++-------- tools/perf/util/evsel.h | 18 ++++++- tools/perf/util/intel-bts.c | 10 ++++ tools/perf/util/intel-pt.c | 78 +++++++++++++++++++++++++--- tools/perf/util/record.c | 62 ++++++++++++++++++++++ tools/perf/util/s390-cpumcf-kernel.h | 1 + tools/perf/util/s390-cpumsf.c | 11 +++- tools/perf/util/thread-stack.c | 57 +++++++++++++++++++++ tools/perf/util/thread-stack.h | 3 ++ 18 files changed, 367 insertions(+), 58 deletions(-) Regards Adrian