Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3106123imm; Tue, 29 May 2018 00:47:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqlpE75MDPX3//xSmi1/mZVV0YOI+G6fRicB/X/Ei31vxDIKR7ikkoVhOJB8ID63ftHX9hB X-Received: by 2002:a62:9fca:: with SMTP id v71-v6mr16347866pfk.233.1527580033473; Tue, 29 May 2018 00:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527580033; cv=none; d=google.com; s=arc-20160816; b=FAXZ9z3ye5P5yKcu0c8Pev+uoOvI7L2ys2FNtUXjAGq4o+Ir5UKOoViD4wUw2vRVhR ttgNS+jc5Cu65N4Y5JiKygG1oZi0D0gXoroaN2jumeUeXx/M3Cy94CE6xl7chXih1CsI syGOfd17ZO/ByMxKZR4GaGzluBl4Hu36l3ZMPjXwwwrms9SbSzzybhz4kD6DzpDSpeIe kY+fqitN5SkNbYvEQIk6eKlLtR1w9HNvh/ZVuIJNqxrV8Ek+kjQisSLijOkoDd/U5huN vcJxQwxDEmsMmp9xVzEbzk+UjcNdUGobdfhQ5Kq06FoKI1l+wz2epx93utug1DkZPUk8 1XjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :organization:from:references:cc:to:subject :arc-authentication-results; bh=SfCXRcop6GOGjM4aKJY2QWQ1W405ca0Ylvqkln1KE2Q=; b=UL01+E1k1xy+PP3WQnC5gyRi996SEkNgLuHZzoq9htfMIFp0m87uDkq0dmZY98quQm HEyZ+a2lnBT8xx3+lczNI+8ofbj4uTI3Rj60aiRZKIPWD4qANjvvcGKInx0wFwQHEv66 6LDQRUCkO2ugdDdqvwbaHLQd8Yo+Iaba/NA9QPu+hSSZkOV6yGQ/q5cCDFf7MS0jW7fm QF61laLdr/SPVOMbaFkxGl9q+J4ZVC+q6sywm97dlkJat4nDZupEJAVL0W4rVcZ7JkwV h5LDZ9WqYZ5sQYJY+mL/yKcR2Q80VKE94BuLylmR8Ov6cwVHNLUehWwdHc60FdQuvhQP QQHg== 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 t19-v6si31073721plo.287.2018.05.29.00.46.59; Tue, 29 May 2018 00:47: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 S1754938AbeE2Hol (ORCPT + 99 others); Tue, 29 May 2018 03:44:41 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35074 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754794AbeE2Hoj (ORCPT ); Tue, 29 May 2018 03:44:39 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4T7i9jS105313 for ; Tue, 29 May 2018 03:44:38 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 2j8ygveukx-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 29 May 2018 03:44:38 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 29 May 2018 08:44:33 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 29 May 2018 08:44:30 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4T7iUNh23527436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 29 May 2018 07:44:30 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 024874C04E; Tue, 29 May 2018 08:36:02 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A8F424C040; Tue, 29 May 2018 08:36:01 +0100 (BST) Received: from oc3784624756.ibm.com (unknown [9.152.212.222]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 29 May 2018 08:36:01 +0100 (BST) Subject: Re: [PATCH] perf docu: Update section on cpu topology To: Arnaldo Carvalho de Melo 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 References: <20180528074433.16652-1-tmricht@linux.ibm.com> <20180528195412.GI25467@kernel.org> From: Thomas-Mich Richter Organization: IBM LTC Date: Tue, 29 May 2018 09:44:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180528195412.GI25467@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18052907-0040-0000-0000-0000043ECF7A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18052907-0041-0000-0000-000026441CF5 Message-Id: <7a8d7174-0fe5-5492-9c40-8cf65a65bab9@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-29_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 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-1805290093 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/28/2018 09:54 PM, Arnaldo Carvalho de Melo wrote: > 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 Ah, sorry but that did not cross my mind.... It was introduced with commit 2bb00d2f95193 ("perf tools: Store the cpu socket and core ids in the perf.data header") and is available since Linux 4.4 Hope this helps... > >> 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 > -- > To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany -- Vorsitzende des Aufsichtsrats: Martina Koederitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294