From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752133AbdKMIyG (ORCPT ); Mon, 13 Nov 2017 03:54:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36972 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751638AbdKMIyF (ORCPT ); Mon, 13 Nov 2017 03:54:05 -0500 Date: Mon, 13 Nov 2017 09:54:03 +0100 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH v1 1/5] perf, tools: Document some missing perf.data headers Message-ID: <20171113085403.GA21325@krava> References: <20171109145528.23371-1-andi@firstfloor.org> <20171109145528.23371-2-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171109145528.23371-2-andi@firstfloor.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 13 Nov 2017 08:54:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 09, 2017 at 06:55:24AM -0800, Andi Kleen wrote: > From: Andi Kleen > > Document STAT and CACHE header entries. > > Signed-off-by: Andi Kleen Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/Documentation/perf.data-file-format.txt | 23 ++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt > index e90c59c6d815..15e8b48077ba 100644 > --- a/tools/perf/Documentation/perf.data-file-format.txt > +++ b/tools/perf/Documentation/perf.data-file-format.txt > @@ -238,6 +238,29 @@ struct auxtrace_index { > struct auxtrace_index_entry entries[PERF_AUXTRACE_INDEX_ENTRY_COUNT]; > }; > > + HEADER_STAT = 19, > + > +This is merely a flag signifying that the data section contains data > +recorded from perf stat record. > + > + HEADER_CACHE = 20, > + > +Description of the cache hierarchy. Based on the Linux sysfs format > +in /sys/devices/system/cpu/cpu*/cache/ > + > + u32 version Currently always 1 > + u32 number_of_cache_levels > + > +struct { > + u32 level; > + u32 line_size; > + u32 sets; > + u32 ways; > + struct perf_header_string type; > + struct perf_header_string size; > + struct perf_header_string map; > +}[number_of_cache_levels]; > + > other bits are reserved and should ignored for now > HEADER_FEAT_BITS = 256, > > -- > 2.13.6 >