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=-7.0 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 952C8C433E6 for ; Tue, 1 Sep 2020 09:38:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 75E562100A for ; Tue, 1 Sep 2020 09:38:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726419AbgIAJih (ORCPT ); Tue, 1 Sep 2020 05:38:37 -0400 Received: from mga01.intel.com ([192.55.52.88]:45308 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbgIAJih (ORCPT ); Tue, 1 Sep 2020 05:38:37 -0400 IronPort-SDR: sUTLlJjt70Takf/9LPA3XJWJXxqch3PBzwj72O4awNGRi2wXbEW9+eOE0LoYxpZEPFnUV7Xmii frOayHZRGBag== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="175181490" X-IronPort-AV: E=Sophos;i="5.76,378,1592895600"; d="scan'208";a="175181490" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2020 02:38:37 -0700 IronPort-SDR: 7yFd2FX5pDlM2VuWchapDGnsG/YUIBvs1NB/OlBExH6zhiNrUyYmakyTu9rBz9xFLl2/++SMkE H0vIIE3SPXrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,378,1592895600"; d="scan'208";a="502181158" Received: from ahunter-desktop.fi.intel.com ([10.237.72.73]) by fmsmga005.fm.intel.com with ESMTP; 01 Sep 2020 02:38:35 -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 V2 0/6] perf tools: Enable AUX area tracing snapshots using a FIFO Date: Tue, 1 Sep 2020 12:37:52 +0300 Message-Id: <20200901093758.32293-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 V2 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. Changes in V2: Use fifo: prefix in --control option 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