Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3582097imj; Tue, 19 Feb 2019 06:06:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IYOVnkTVHziz1QSSFdm3g42uIodAE3tvJF+HGNcnN7bdr9/1RU9sp4H4FcxNFI2tHG2isQW X-Received: by 2002:a62:f5d7:: with SMTP id b84mr29658548pfm.36.1550585164940; Tue, 19 Feb 2019 06:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550585164; cv=none; d=google.com; s=arc-20160816; b=Gyjk1F3XwFIi+ufxppPXryYKIC1PiCDP00EFu8y6a+VINrxBi8VHseF/dXawgyssKR 8pQD7tUXN+u3d1pgVSidACVmZD8UlPczUm3eHIpePJ0zKSsyy9xPo5w+C84kjwsOdHav cbNM+fzyVQW84UO1TPeD+qZzWrmKXOc+byVO2Ck10gK+PKxLTWFRmoDdS+LYpwJ/i6y6 ccraH/6duogsMw6jj/fxN19GrvStwdCcxVjqTqq40MO/JM0N9NsOhx4Vo+J2jgEjTf3G OliQpZt6GaPGf3lvyQvYKtB1Lx/QT+cLzSTG+wVJZ/eOp/R8DIN8Aa51ZvAkn2HBSHAX SPEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Vsq8KBIybqXJI4S5q6UZJqcbmH39TTBtxTuVLcWGiBk=; b=Z3meifxj3Jy5/pKnMICMRaPaxIRB06TkmHH7lzTcp8TRRtJlGLKiZatNAUibTNC+ms cpeQSu1QqFVefX2t//xwdGy5ooeOSXmUw4jvIQsSZiYqoG7OkqPRpe2ADym4uaC5a5a7 q+POk+1qLfZNBJ/+Gb53c2ZAH0+4KFuM93M/CwTXcegC4LdWkIKjbptGBouNbvnAumJP dhxodZuvxTF+61b7piRBupTvAbeDqUDtoHlVVVmv0pIsz3plaCX1Uf6K89JJv4VcJjk3 eFAlqOs8aeZYy2BuV/zQlL9Q3HsFQtRIrD4ikQy5iTvTYQ6TnvHiQPAkdZfCqH/tbvR4 4I2g== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si17064932pla.405.2019.02.19.06.05.49; Tue, 19 Feb 2019 06:06:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbfBSOFL (ORCPT + 99 others); Tue, 19 Feb 2019 09:05:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43352 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbfBSOFL (ORCPT ); Tue, 19 Feb 2019 09:05:11 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E38FC00734E; Tue, 19 Feb 2019 14:05:10 +0000 (UTC) Received: from krava (unknown [10.43.17.42]) by smtp.corp.redhat.com (Postfix) with SMTP id 66E0D60C1D; Tue, 19 Feb 2019 14:05:01 +0000 (UTC) Date: Tue, 19 Feb 2019 15:04:59 +0100 From: Jiri Olsa To: Jonas Rabenstein Cc: linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Namhyung Kim , Andi Kleen , Thomas Richter , Stephane Eranian , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf: fix documentation of the Flags section in perf.data Message-ID: <20190219140459.GE6435@krava> References: <20190217232246.GB26460@krava> <20190218141846.2995-1-jonas.rabenstein@studium.uni-erlangen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190218141846.2995-1-jonas.rabenstein@studium.uni-erlangen.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 19 Feb 2019 14:05:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 18, 2019 at 03:18:46PM +0100, Jonas Rabenstein wrote: > 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. missing your Signed-off-by Acked-by: Jiri Olsa thanks, jirka > --- > 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: > > -- > 2.19.2 >