Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3738444imm; Mon, 11 Jun 2018 00:32:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJQ4bOdtzxi9HCAs8nTxYuOlio/kdyN4XFBsrFsNMeSi71a0JQwAd1OseNLSA2qOAHUoQFG X-Received: by 2002:a65:5b0a:: with SMTP id y10-v6mr14026439pgq.112.1528702378581; Mon, 11 Jun 2018 00:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528702378; cv=none; d=google.com; s=arc-20160816; b=0iTrb05cg9Vj4Z9iojHvfP1yfdH0FUAmW+ejWNxtY329x7nNvY1Mv+s3gc8gQ4VnFZ XTgHyihuS4d7Z4zwnYGWgSbwpt4lz2ayWf6U8/tTGWgIyVjX7AKCCgNX+JfnZ67flANA 0KqCgXiHnFTinrIj4QvNn1+ckx3dPHW5nH6F/FLFYOxKgWpnrSXm39Unrc4tGvDGGKTQ nNGgWvHAqgune7QYfoh+w6ckYAcsYLFPzf6XCCZ5zfMeV1KhkSTLEUpXvGwtmp4hSgaV 6+h7J98Q/3nsPr8iQrZ+aWlyZF4Mv8XBy0EBusH36bAw+uIHTPuOPhyAlvMHU377afWj r7wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=FP1BylOM565tYMeI4s2TiaocZE9UIJxW1WlXyZJjfFE=; b=OSyi5B+tEmpqXB0aZacMzN4OoC82NetLfwFkMmIPcLD5nzC8Oz5r/XWvTMgPoxKZIS u4nVZVJlUUp5na9mum42/UQbrwdKS+20GgFXft2m6NfWZ4P5kevtusCj3maC7jszCuzk lYC6XNl1ZdvUKnI/CkxR3MmW9bcfFeH5kljt6FmIJqWmgnRuL8/L2XfsK48+oHxA2FJ2 UZMm/vjBXKRYWxmLDLHeddSUBsDkrhEPrxyDslFOO0ylH+tdeqW1ekB8ZsBKo+Qlyrpb JYRHaB1yxX0tuD8payHilU/qlfFTsSzD4zqDZmSHr8Z9oUu6PrzsGR07fI1WMdhZnPyf USGA== 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 f5-v6si12092200pgu.103.2018.06.11.00.32.44; Mon, 11 Jun 2018 00:32:58 -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 S932415AbeFKHcP (ORCPT + 99 others); Mon, 11 Jun 2018 03:32:15 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44920 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932385AbeFKHcN (ORCPT ); Mon, 11 Jun 2018 03:32:13 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5B7ShE0030680 for ; Mon, 11 Jun 2018 03:32:12 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jhmp78ab1-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 11 Jun 2018 03:32:12 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 11 Jun 2018 08:32:10 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 11 Jun 2018 08:32:07 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5B7W6ZR28180642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 Jun 2018 07:32:06 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3D9BE11C069; Mon, 11 Jun 2018 08:22:44 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EE18E11C05C; Mon, 11 Jun 2018 08:22:43 +0100 (BST) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 11 Jun 2018 08:22:43 +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 2/2] perf test: Fix test 39 Session topology for s390 Date: Mon, 11 Jun 2018 09:31:53 +0200 X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180611073153.15592-1-tmricht@linux.ibm.com> References: <20180611073153.15592-1-tmricht@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18061107-0028-0000-0000-000002CF6978 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18061107-0029-0000-0000-000023867DF4 Message-Id: <20180611073153.15592-2-tmricht@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-11_03:,, 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 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806110092 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On s390 this test case fails because the socket identifiction numbers assigned to the CPU are higher than the CPU identification numbers. Fix this by adding the platform architecture into the perf data header flag information. This helps identifiing the test platform and handles s390 specifics in process_cpu_topology(). Output before: [root@p23lp27 perf]# ./perf test -vvvvv -F 39 39: Session topology : --- start --- templ file: /tmp/perf-test-iUv755 socket_id number is too big.You may need to upgrade the perf tool. ---- end ---- Session topology: Skip [root@p23lp27 perf]# Output after: [root@p23lp27 perf]# ./perf test -vvvvv -F 39 39: Session topology : --- start --- templ file: /tmp/perf-test-8X8VTs CPU 0, core 0, socket 6 CPU 1, core 1, socket 3 ---- end ---- Session topology: Ok [root@p23lp27 perf]# Fixes: c84974ed9fb6 ("perf test: Add entry to test cpu topology") Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/tests/topology.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/tests/topology.c b/tools/perf/tests/topology.c index 40e30a26b23c..9497d02f69e6 100644 --- a/tools/perf/tests/topology.c +++ b/tools/perf/tests/topology.c @@ -45,6 +45,7 @@ static int session_write_header(char *path) perf_header__set_feat(&session->header, HEADER_CPU_TOPOLOGY); perf_header__set_feat(&session->header, HEADER_NRCPUS); + perf_header__set_feat(&session->header, HEADER_ARCH); session->header.data_size += DATA_SIZE; -- 2.14.3