Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4778330imm; Mon, 25 Jun 2018 23:54:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ5lbk5XvZcop2c8EN7RI3wzUhHUm6QfsCLv8n/OTEHz5bLifaqQhJTQegWzAR6sse4ZQWz X-Received: by 2002:a17:902:aa48:: with SMTP id c8-v6mr340168plr.132.1529996077179; Mon, 25 Jun 2018 23:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529996077; cv=none; d=google.com; s=arc-20160816; b=d4IP3RcfFocGlWENfgiTsL+7MhHnFvjy3AP5/nPxnfdBmogHQ4Qw1gfdP0WVlV5lVU 3K685viUYUSpCJ1v2MFe+JcMDPOxuStMNO8XaeJ/FMU1lB6pZuF1XrwawcRByvgSfjLh U1FheyWi4Ao348pD1jUHvB+MNzQql4AYSicYY8nJcHImjTu2pabXMmGmUH1t31RzSXau Un2Sl7yjPb8r16VeWDCJwGEue+OuO2Pl6MINcSzUSNMuvJWeFh+PXHWRq6HDTM8Q5W3+ /c6el1WBcl2I7jwMViff5868iBBMMmYNBrS9Kk5z7ScnzHLt2Dq64XMH21SKcTUCuwVe eiCg== 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=7ZH/8cryIAQbuG/VQeXFDy1NQiME0IuiXRauQraSCu0=; b=ta2L0DBpseRipuhBnDwqF3vdmXQJkaZq3anlKiQkJdOTh4v/EsDadJISKFdRtak1Mb 1Aeg+0Ig723CpcqvM29Prvvardo08yIE8/u638DhgfxScIfwWqtNwHQDET+fCSnOrjIK Y+L9Ri2qfLpe8TxleNHrY3prg/2i1YArDbDxqb+41TqLyp3D4v08XggCuZuh49w5emh4 D0fccAAKud9SAQA7qImq+TJ1TEeTipy5i9ghIGpLQ6jBA0znsyj2jjtbvCwm0V+su82m 9FYqoOWNQXaF0KUnUvrHKwOHEt/7esDTpGmlXNrlaq8XtJ7TzPAMDv6RY/GuUEzho4nJ 3vLQ== 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 1-v6si988389plu.282.2018.06.25.23.54.22; Mon, 25 Jun 2018 23:54:37 -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 S1752092AbeFZGw1 (ORCPT + 99 others); Tue, 26 Jun 2018 02:52:27 -0400 Received: from terminus.zytor.com ([198.137.202.136]:55323 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372AbeFZGw0 (ORCPT ); Tue, 26 Jun 2018 02:52:26 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5Q6qHSM1591129 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 25 Jun 2018 23:52:18 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5Q6qHvl1591126; Mon, 25 Jun 2018 23:52:17 -0700 Date: Mon, 25 Jun 2018 23:52:17 -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, schwidefsky@de.ibm.com, acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tmricht@linux.ibm.com, brueckner@linux.ibm.com, tglx@linutronix.de, heiko.carstens@de.ibm.com Reply-To: tmricht@linux.ibm.com, heiko.carstens@de.ibm.com, tglx@linutronix.de, brueckner@linux.ibm.com, mingo@kernel.org, acme@redhat.com, schwidefsky@de.ibm.com, hpa@zytor.com, linux-kernel@vger.kernel.org In-Reply-To: <20180611073153.15592-2-tmricht@linux.ibm.com> References: <20180611073153.15592-2-tmricht@linux.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf test session topology: Fix test on s390 Git-Commit-ID: b930e62ecd362843002bdf84c2940439822af321 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=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham 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: b930e62ecd362843002bdf84c2940439822af321 Gitweb: https://git.kernel.org/tip/b930e62ecd362843002bdf84c2940439822af321 Author: Thomas Richter AuthorDate: Mon, 11 Jun 2018 09:31:53 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 25 Jun 2018 11:59:35 -0300 perf test session topology: Fix test on s390 On s390 this test case fails because the socket identifiction numbers assigned to the CPU are higher than the CPU identification numbers. F/ix 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(). 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]# 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]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Heiko Carstens Cc: Martin Schwidefsky Fixes: c84974ed9fb6 ("perf test: Add entry to test cpu topology") Link: http://lkml.kernel.org/r/20180611073153.15592-2-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- 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;