Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2954517imm; Mon, 28 May 2018 20:51:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq9bGp9hGVKEOmEwg1gPDrrGMy/jm68GwYNjmb0YM6g/lD1I3Dzf9W6suT5aRH4HtO5JPGc X-Received: by 2002:a63:7c0b:: with SMTP id x11-v6mr12285219pgc.384.1527565875219; Mon, 28 May 2018 20:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527565875; cv=none; d=google.com; s=arc-20160816; b=CleBPQLGLC1Uo64RIhBvfqRCvrkar0axZCAb7as252FJMnCyFSpWAgyGI3WpsbIPwZ gIYE1Gda/T3I6dQ3nD8Qa5FXJNk5LsT/C8avrlfz9L9Wcg7Bp2gz1ePRP0ZVByh3ne4a 6i2hjPd9gWbSEVBWGtS2J4j5zMhogUG405zhXjV+JyVVElUF0oLuO7XI9f1ON4UJESaz kDYMPkzywKtJB4rM+MPIZCSoLiTIYwUOQSrZ0Zn4ss7UEfNXNdtoxWfabUdpzxaJao4r VRgiWQHRMlDv8SNgMH2tIQ0fOnWKWzBvef8RXQV9aBBTpHAOHOsetRipQvzYbTUpRNel gcug== 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:dkim-signature:arc-authentication-results; bh=8Q9KaeH1+kxphQvJuOxZKUrAkFJ4h7f5Z5pBL7s0T3M=; b=iPS5pEEQWYDthwLGNVOq0n0/VJtF8TRIJ5u5koPjnzAVurErwM9hrr6pM6B1cUeWEr bc9+9Lq5hbUDjyljUrbprj/mLqCxH5cJwe5iib04sbp5v/hvx8WVzTSNvbbgfXAtMQQF j1K4zXDNtPMsZBNkk0WwWqb70Xdbq7/YJNbzhYW2D2aq3Vj0zOL0Bh9bUqGJLWNDXkt6 2cAVmgwSSDUrYGM3mpgKgfRVXiM1LRF+k4O8JScl6ltuwacAZUUx53rDKdyIB9WnPI80 EwZKx8VALywRSbZKvD6+cq46e/MiLIa1PzdJpne7wlbNWo11xjT0KuwykGF1uxmOZUDn rFdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p8NpGL+U; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v61-v6si31831565plb.499.2018.05.28.20.51.00; Mon, 28 May 2018 20:51:15 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=p8NpGL+U; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933735AbeE1TyS (ORCPT + 99 others); Mon, 28 May 2018 15:54:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:42634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932452AbeE1TyQ (ORCPT ); Mon, 28 May 2018 15:54:16 -0400 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 67DC520843; Mon, 28 May 2018 19:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527537255; bh=x2ZEQX5kmp48zoErebGqJhP1T7BzOa74pkQk+hsqThE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p8NpGL+UME4LK60H1ztL4woeR07HBTryNTFepwDjABFFxSqeC4UqifplVf9JCmOXT bQneo/7cSPUTgSn/6ad+afgn1F/32euQk8cyzWTSyl+dEg5i6fsUCHIsGR0WI719I2 ffAHZCSHdSkF7vu7qoiefDsBHjlwP7e93hTfbvb4= Received: by jouet.infradead.org (Postfix, from userid 1000) id CFB2B1468D9; Mon, 28 May 2018 16:54:12 -0300 (-03) Date: Mon, 28 May 2018 16:54:12 -0300 From: Arnaldo Carvalho de Melo To: Thomas Richter Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, Andi Kleen Subject: Re: [PATCH] perf docu: Update section on cpu topology Message-ID: <20180528195412.GI25467@kernel.org> References: <20180528074433.16652-1-tmricht@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180528074433.16652-1-tmricht@linux.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, May 28, 2018 at 09:44:33AM +0200, Thomas Richter escreveu: > Add an explanation of each cpu's core and socket > identifier to the documentation. Thanks, applying. I guess it is not that worth to mention that older files may have just the string lists, right? - Arnaldo > Signed-off-by: Thomas Richter > --- > tools/perf/Documentation/perf.data-file-format.txt | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt > index d00f0d51cab8..c57904a526ce 100644 > --- a/tools/perf/Documentation/perf.data-file-format.txt > +++ b/tools/perf/Documentation/perf.data-file-format.txt > @@ -153,10 +153,18 @@ struct { > HEADER_CPU_TOPOLOGY = 13, > > String lists defining the core and CPU threads topology. > +The string lists are followed by a variable length array > +which contains core_id and socket_id of each cpu. > +The number of entries can be determined by the size of the > +section minus the sizes of both string lists. > > struct { > struct perf_header_string_list cores; /* Variable length */ > struct perf_header_string_list threads; /* Variable length */ > + struct { > + uint32_t core_id; > + uint32_t socket_id; > + } cpus[nr]; /* Variable length records */ > }; > > Example: > -- > 2.14.3