From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0441DC433E2 for ; Sat, 29 Aug 2020 10:51:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D178020791 for ; Sat, 29 Aug 2020 10:51:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728019AbgH2Kv1 (ORCPT ); Sat, 29 Aug 2020 06:51:27 -0400 Received: from mga01.intel.com ([192.55.52.88]:17379 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727061AbgH2Ku5 (ORCPT ); Sat, 29 Aug 2020 06:50:57 -0400 IronPort-SDR: N1UI92Ntt9KKG1BNiCn80opCVaHK505w+UQEME9qTgRqTIlxbH9k2QLerooDY6uW9SDBqsFefE AyhSPQRcgvZg== X-IronPort-AV: E=McAfee;i="6000,8403,9727"; a="174838396" X-IronPort-AV: E=Sophos;i="5.76,367,1592895600"; d="scan'208";a="174838396" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2020 03:50:53 -0700 IronPort-SDR: T4tnsmhQlfI2GBRnhCSyWQx0tF2AtAbCS4p9uM8UQUS/NuWxUFInOUSceh3zzPeq057Ak7XKe+ /KEQ5KlXfzQw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,367,1592895600"; d="scan'208";a="313853142" Received: from ahunter-desktop.fi.intel.com ([10.237.72.73]) by orsmga002.jf.intel.com with ESMTP; 29 Aug 2020 03:50:51 -0700 From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Andi Kleen , Alexey Budankov , Namhyung Kim , linux-kernel@vger.kernel.org Subject: [PATCH 0/6] perf tools: Enable AUX area tracing snapshots using a FIFO Date: Sat, 29 Aug 2020 13:50:09 +0300 Message-Id: <20200829105015.10800-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 some patches to enable AUX area tracing snapshots using a FIFO. Presently SIGUSR2 can be used but the advantage of the FIFO is that access is governed by access to the FIFO. Refer to the example in patch 5. The first 4 patches are preparation, including patch 4 which enhances the --control option to accept file names. Patch 5 adds snapshot control command. The final patch updates Intel PT documentation. Adrian Hunter (6): perf tools: Consolidate --control option parsing into one function perf tools: Handle read errors from ctl_fd perf tools: Use AsciiDoc formatting for --control option documentation perf tools: Add FIFO file names as alternative options to --control perf record: Add 'snapshot' control command perf intel-pt: Document snapshot control command tools/perf/Documentation/perf-intel-pt.txt | 23 ++++++- tools/perf/Documentation/perf-record.txt | 56 ++++++++--------- tools/perf/Documentation/perf-stat.txt | 48 ++++++++------- tools/perf/builtin-record.c | 74 +++++++++++++---------- tools/perf/builtin-stat.c | 35 +++++------ tools/perf/util/evlist.c | 96 +++++++++++++++++++++++++++--- tools/perf/util/evlist.h | 6 +- tools/perf/util/record.h | 1 + tools/perf/util/stat.h | 1 + 9 files changed, 227 insertions(+), 113 deletions(-) Regards Adrian