Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2073005imm; Mon, 28 May 2018 00:46:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqi65mFkj57vXkBGtnb2tVclfN3j0nHjOpDHgUDDVacp4p1XuN3wBxAzwUJOsS9upuagxe6 X-Received: by 2002:a62:c2:: with SMTP id 185-v6mr12476503pfa.238.1527493573505; Mon, 28 May 2018 00:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527493573; cv=none; d=google.com; s=arc-20160816; b=F9hW6TGU0CZvrp/9vHnXCd+Us0QpAtc+OAUV26tMdg5g+yKbgadK14T4AFJwJJIW3p 2AXI4FGAtfcHcOqB/b2gimbZduzyA7DeC835OSGsoEop8sqiDk1XbPUKtJI/TiZpCDdE f9gVA4mnYBUjjtZgdPgR2j5tD8oHUnyaB67GYMvXy+8bfyFMx0o4/n3VW4QxNKNuVotn iMqbaVqRvdT3L98TEUePcauXCl0mz8cUngYJzq+PU3QSmWWoGulFVuu+q2Egb2HjBRlB zybclMvfMsY1YJ/QR9EykkzexAC4c+89YhLm7xXb5F3KCjkvJrcjZoOElEt77cmdTPsb tXTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=C6qtpaAXEvckft87ZYzaQpwBACxlrVkAHCHaNcyKqFw=; b=wRqQBxUq0/jW/DX8nkFPuvBG4HI44MvEnurRa0n9BdWy3EyvR/3bOkRHE+vnfYZdZh 6+viyizUz08G8cduyseU4sAia0q6E1bgDCr5pL06BPoZXyhDhupCRa42iD2hBJWLlN/p gfyRaXtIebRxgjZjklZqn2VbqLn/Wlug/gmu0EFeJlQADvyAhvwa3Zr8Fp677ch07xyq OKysA3IFPUtvrZ3VNzbbkCTrlpoUTigBAoxcnwRcixhA1q8lSGYWG6d+nr0OBVjm/jfZ 70D5VapWvJV2kVGiQAaWkCbnOktwDCLDdFGtGRkB3QRbdndhdT624VB3f4i7TWz2JxDX hQ8Q== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x66-v6si2020978pgb.297.2018.05.28.00.45.58; Mon, 28 May 2018 00:46:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753913AbeE1Hok (ORCPT + 99 others); Mon, 28 May 2018 03:44:40 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:56674 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753884AbeE1Hoj (ORCPT ); Mon, 28 May 2018 03:44:39 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4S7hmk3052664 for ; Mon, 28 May 2018 03:44:39 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2j8deaggnv-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 28 May 2018 03:44:38 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 28 May 2018 08:44:36 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 28 May 2018 08:44:35 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4S7iYxM14614612; Mon, 28 May 2018 07:44:34 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E3238AE04D; Mon, 28 May 2018 08:33:42 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 95528AE045; Mon, 28 May 2018 08:33:42 +0100 (BST) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 28 May 2018 08:33:42 +0100 (BST) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, Thomas Richter Subject: [PATCH] perf docu: Update section on cpu topology Date: Mon, 28 May 2018 09:44:33 +0200 X-Mailer: git-send-email 2.16.3 X-TM-AS-GCONF: 00 x-cbid: 18052807-0040-0000-0000-0000045E15CA X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18052807-0041-0000-0000-00002102803B Message-Id: <20180528074433.16652-1-tmricht@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-28_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805280095 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add an explanation of each cpu's core and socket identifier to the documentation. 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