Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp459100imm; Thu, 31 May 2018 03:48:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDHITJg37gx/nVApth+1/F/UkuND8QPECz5pBpYHyD+rc87HlJyUeWcA9NPUpDnoIcij9G X-Received: by 2002:a62:ccdc:: with SMTP id j89-v6mr6303496pfk.232.1527763689659; Thu, 31 May 2018 03:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527763689; cv=none; d=google.com; s=arc-20160816; b=MbXavfjo8AckGcfpTTc+bDkCk4nihrYU3nJFHyy1z9RT8m6C26npqlt26dWwfvqYG9 ZUONGRu7HUxX3YnTMeXcHHvCJMUqlj0pg+hsNSEuqV0pFjEN+PyYNsTtKA2zXVNp3Z7A xSRPKT0mCHaPDk+iRWtK6XN6qZ5g+/H09K71mI4/Lbnx/a/Af2/+Rjz7KU8NTBgVPWS5 Udh2izaMij+Upj6EX0rfnCgS7C3mtuIG772H74SqLm6/lnuq5Gg3NtfwgTsdoCz7JKXM i/PlqelgbHHzUGw02xKvOyie0qCMIZOngWLlqoWLARBAHg+dIaWlGOyztJcmtt2xGtIu Ul9g== 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:arc-authentication-results; bh=PY4SJaF/bVKsxPULBtx1JWMc8Ycql64a6EObRfEVn70=; b=jL+oBKLC9Ih4b0QwfpCKzla06+7S93zvj1T43+6j5e5v//MaOD4aee4lQ2Q1NtvY+f VA7Fac0dLkMxXlJTKjqhc3AsvAT7s4gi21AiwdzOVMx0JwoRaK40Ik1wutOQV4iZPXYV QR/Ig3SblSBkTdaaSu4u1xSXX+tM+mBZJv8v8UeThLd+KlGi+ktO03x3jYM2JOL+6Na4 PmgyC7AEoYya+AYR9D1jHEnJCZ0rHMWEpTAKXYjz3vTUqnLCLA3Iowzwu0QmgKvLGl4f WYJVBd38HOAuKOg88AKqx9unANn7V6Lwy2jrLRNpaeYgHQwI6FA/XUhRCXkBT++K3wTj YvcQ== 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 l3-v6si5429625pgp.345.2018.05.31.03.47.55; Thu, 31 May 2018 03:48:09 -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; 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 S1754655AbeEaKpi (ORCPT + 99 others); Thu, 31 May 2018 06:45:38 -0400 Received: from terminus.zytor.com ([198.137.202.136]:36053 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754471AbeEaKpf (ORCPT ); Thu, 31 May 2018 06:45:35 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w4VAj4Ef3525641 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 31 May 2018 03:45:04 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w4VAj42s3525638; Thu, 31 May 2018 03:45:04 -0700 Date: Thu, 31 May 2018 03:45:04 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Thomas Richter Message-ID: Cc: hpa@zytor.com, acme@redhat.com, brueckner@linux.vnet.ibm.com, tglx@linutronix.de, tmricht@linux.ibm.com, heiko.carstens@de.ibm.com, schwidefsky@de.ibm.com, linux-kernel@vger.kernel.org, mingo@kernel.org Reply-To: tmricht@linux.ibm.com, tglx@linutronix.de, heiko.carstens@de.ibm.com, mingo@kernel.org, linux-kernel@vger.kernel.org, schwidefsky@de.ibm.com, hpa@zytor.com, brueckner@linux.vnet.ibm.com, acme@redhat.com In-Reply-To: <20180528074433.16652-1-tmricht@linux.ibm.com> References: <20180528074433.16652-1-tmricht@linux.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf data: Update documentation section on cpu topology Git-Commit-ID: 0c711138fa61188aa379210e9e08ac76838dea03 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=-0.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_48_96 autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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: 0c711138fa61188aa379210e9e08ac76838dea03 Gitweb: https://git.kernel.org/tip/0c711138fa61188aa379210e9e08ac76838dea03 Author: Thomas Richter AuthorDate: Mon, 28 May 2018 09:44:33 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 30 May 2018 15:39:13 -0300 perf data: Update documentation section on cpu topology Add an explanation of each cpu's core and socket identifier to the perf.data file format documentation. Signed-off-by: Thomas Richter Cc: Heiko Carstens Cc: Hendrik Brueckner Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20180528074433.16652-1-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- 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: