Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp355076img; Thu, 28 Feb 2019 00:08:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IbJ6zLAcqp89uEjkF06fIo2OKHnG8DpveW3hNkWXqRa+z2DlggLwMyulqrrUXNH5iLfmfbq X-Received: by 2002:a65:5844:: with SMTP id s4mr7151042pgr.77.1551341325904; Thu, 28 Feb 2019 00:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551341325; cv=none; d=google.com; s=arc-20160816; b=vNLL0agviZg7tYo7E+OROrWXkEfOmaqMwZCRK7IIDh9VbjrwOLzmUkF6z1xPQcCrzk J/siRZunhR5FQsOe2fBVUZ+fRByeCOXsTeG2Bi4Ohkec1h6QirHE2z0hkc8jHFHhH6mU KINMicExqYedKggvw0Gi1jb0YSVum1UR7PA/QB3UsooSzhz5LBwpfg9rwdbYIxiris8h 1sTSfHksMXo2RQea7EME2gz2wFHLNH0kAAGlYRMRI6ReKCx7XBo9OSfQEsTqQnwveKPQ oqUiQ5bN8OA2738KloqrfKrajsP/c2XmtpfwlYHV+EHowmL0X7g0dZbZ574xMDg+pUHd JlEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=n+5sSFr/Z5DZTZnJAWu1mzBdAbnT5VrHglQ5xfbpPAw=; b=UKH09FwX4bE2PVaZUZl4C9CzoMi1wcgPB2QN1v1oPMa1rgNGcC5GcSTHoHMJiRMp1A 4jx5qWw2JuWe0b2v1AflJ99PaYH2WaUCih5aunqklTHGaGOqzGs3TGqIKG8/Yl9hNOyw Z6HOD7M6oRTBFtDavK+8uRwXoDrerSdcGD95H4JLoNGzRk3fx/4p3URHWh8Xbh0YYdq6 oforTmE7BbdF7FVVpP2iWcEECfMfAiAYb+ZNFN0YhAYeR3Iv34hpliUgup736/G6NR83 vxr3IkzunPtoEbPx1G7RWkOJyJOuR4DGHJmI+IGFTEHsYXHrKY0oJ69VbZllTB/kaYwW fl4g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i71si6577926pge.378.2019.02.28.00.08.30; Thu, 28 Feb 2019 00:08:45 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731251AbfB1Hmn (ORCPT + 99 others); Thu, 28 Feb 2019 02:42:43 -0500 Received: from terminus.zytor.com ([198.137.202.136]:55463 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfB1Hmn (ORCPT ); Thu, 28 Feb 2019 02:42:43 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x1S7fveP2947768 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 27 Feb 2019 23:41:57 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x1S7fujq2947765; Wed, 27 Feb 2019 23:41:56 -0800 Date: Wed, 27 Feb 2019 23:41:56 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Jonas Rabenstein Message-ID: Cc: hpa@zytor.com, jolsa@kernel.org, tmricht@linux.ibm.com, alexander.shishkin@linux.intel.com, peterz@infradead.org, mingo@kernel.org, jonas.rabenstein@studium.uni-erlangen.de, linux-kernel@vger.kernel.org, ak@linux.intel.com, acme@redhat.com, eranian@google.com, tglx@linutronix.de, namhyung@kernel.org Reply-To: peterz@infradead.org, tmricht@linux.ibm.com, jolsa@kernel.org, hpa@zytor.com, alexander.shishkin@linux.intel.com, eranian@google.com, acme@redhat.com, namhyung@kernel.org, tglx@linutronix.de, mingo@kernel.org, ak@linux.intel.com, linux-kernel@vger.kernel.org, jonas.rabenstein@studium.uni-erlangen.de In-Reply-To: <20190219154515.3954-2-jonas.rabenstein@studium.uni-erlangen.de> References: <20190219154515.3954-2-jonas.rabenstein@studium.uni-erlangen.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf doc: Fix documentation of the Flags section in perf.data Git-Commit-ID: 8c23a522388b34cd7bc8473987eda0c75eb37c0e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8c23a522388b34cd7bc8473987eda0c75eb37c0e Gitweb: https://git.kernel.org/tip/8c23a522388b34cd7bc8473987eda0c75eb37c0e Author: Jonas Rabenstein AuthorDate: Tue, 19 Feb 2019 16:45:15 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 19 Feb 2019 13:39:12 -0300 perf doc: Fix documentation of the Flags section in perf.data According to the current documentation the flags section is placed after the file header itself but the code assumes to find the flags section after the data section. This change updates the documentation to that assumption. Signed-off-by: Jonas Rabenstein Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Richter Link: http://lkml.kernel.org/r/20190219154515.3954-2-jonas.rabenstein@studium.uni-erlangen.de Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf.data-file-format.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt index 5f9a3924830b..593ef49b273c 100644 --- a/tools/perf/Documentation/perf.data-file-format.txt +++ b/tools/perf/Documentation/perf.data-file-format.txt @@ -43,11 +43,10 @@ struct perf_file_section { Flags section: -The header is followed by different optional headers, described by the bits set -in flags. Only headers for which the bit is set are included. Each header -consists of a perf_file_section located after the initial header. -The respective perf_file_section points to the data of the additional -header and defines its size. +For each of the optional features a perf_file_section it placed after the data +section if the feature bit is set in the perf_header flags bitset. The +respective perf_file_section points to the data of the additional header and +defines its size. Some headers consist of strings, which are defined like this: