Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1799908pxa; Sat, 29 Aug 2020 03:52:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX1Z8fVSoYzmWCOQ+5n43TcrSwaVgWvYLcFKteRRb0sg+lLPvE9kjiNprA0eGnD4z3gcpO X-Received: by 2002:a17:906:3485:: with SMTP id g5mr2927405ejb.411.1598698337709; Sat, 29 Aug 2020 03:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598698337; cv=none; d=google.com; s=arc-20160816; b=E0Tqfp/m+Edv+43d0b9d6/Ov1h21Mugoi+CTzV0EXOeYjKCl4R32WXGz3SD/s27Vkz NGyn7G0Ajbr/C5yBKC9fzQTtWu8Ge4/Y0aEMKNUh6/MvSJexRtlCipe9Sh2kYs5zeYDy +H4o/jLK1SEHAIegpbnpvnUAk5hT0Ri9kp3WXmJnKAKGWmFsSw0a6LsUGz8hpyvUYfah Vmh2r7Sr0t5kPpvwRTEWDCRwhbDpyEGWS99Tqou7EmYfbsm7FUtRcWIxHZnCejTRc+t4 T/j3Gp4GVx4x/7rqipxG+VpW+/P07IzDOw0lO8Pfxsb+U7Tf2VGVrNTQkdeEs0yZh6by VUdQ== 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=7e/yr1aci/aVy3AGUKw1lzlOZ1eCSC8Fa8DgYpjYzbk=; b=Bb0mdauwZwjr1teMR91Ri06lNDKjzHVskcIYVugwKVUfj0akRt/xYEFaRqG3EwXTu+ LZnNMuildMR6yrBkiMMStUuIf1BBAsx0wzzHjZWtSeWlfQWhwXke1IXVGnjaS2AjnS7x hgorKyalTfiw6mw5mQipIoyECpQsd5z/tiozfeOhUo4VDpx6tqFFnI/LL8bi4SSa1Lt5 S/JuLc6Ng7AJtADKlGXOdlQ5yOzE/ZWqDU0F7uVymV0k2S6fkDdaM4xwJiCkPJwZihcy EPIjJz/gC4wiAE4auLvFWTRoAmyNp9xeWPOtbz655C3ujOHhfUimYaURG19jtYaiHI36 lFxA== 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 d14si119941edp.136.2020.08.29.03.51.53; Sat, 29 Aug 2020 03:52:17 -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 S1728007AbgH2KvK (ORCPT + 99 others); Sat, 29 Aug 2020 06:51:10 -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