Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1367609imm; Thu, 12 Jul 2018 00:10:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdke33gK8RhblZ1T+zcw3uf737KUZ7Us1rCkHg7YmmcRN8HHCFFBbUrGlDBj6DNgfo6uMJZ X-Received: by 2002:a62:98d6:: with SMTP id d83-v6mr1143874pfk.186.1531379459466; Thu, 12 Jul 2018 00:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531379459; cv=none; d=google.com; s=arc-20160816; b=cOuX0JQN7jSWtkvdc02WhHavWAIPj0n1+0MPan3qjjoO1FbK+FijkDEKwUjwtIUexZ v/kmSOHj/UTcwFPuaACfYbhPIdAIL9W9pgYPm4tzPMvRI/56/beKUdBYvIv4HKhy78xH QMliVySVSEgIqQG99RoM6M56tOylLeVNNGAtWw8ihb7p3oZGnP6aLpILPuzHtJlOarAC e4+cFFQaGWYRIewl1zQPDDG/R2IohE7Z/UFD2rJaG0/Rxo8hB/n7MS4CylRF+vqGOPjC ThuLehBGt6Yx9kAeeTPPVb0Zu9iIt/qWgi+BBio+Yh93gUHfzBmz35bhXLNj049uIXJb TKFA== 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=6KR2Js+8UW/D+0/UlR9JABOefAVPfvNI60+b5atc6sE=; b=T96rwovzszLsEci58XFLL1TVmhdqBctleRqbsC9pJBBRRturOXDWXud8J/aetfUGYD gyZB+kkcrcb3Dac4aLINOFMaKwTD2TJvWulcIN/MQQA4RWTlIJmUjoVOu41YA1JjMg49 HX64xhzNBzxDkNOPPo2QqzljAi1ZcOdTnNto0xtyFfMtPA7r/4FWpNOvB41LiYZ7Z0Sy pgj5PaZwMgQWG6D5WBIV/dgNbTGscE1f5TAJkCS/P/cUjQkveN4NPdboUqEm2wqF4Kl6 COQqAQGHiPmg7bVQZMOQBfLDGr9yk+SNaTB9YpqXkA7SUkZooepGejDNFRa50N4XMseX GqBQ== 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 m5-v6si20328415plt.468.2018.07.12.00.10.42; Thu, 12 Jul 2018 00:10:59 -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 S1726532AbeGLHST (ORCPT + 99 others); Thu, 12 Jul 2018 03:18:19 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55446 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeGLHST (ORCPT ); Thu, 12 Jul 2018 03:18:19 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6C78lAM040745 for ; Thu, 12 Jul 2018 03:10:04 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k61axkmq6-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 12 Jul 2018 03:10:04 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Jul 2018 08:09:58 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 12 Jul 2018 08:09:55 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6C79rX041222300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Jul 2018 07:09:53 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7C4974C044; Thu, 12 Jul 2018 10:10:15 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 340FE4C05C; Thu, 12 Jul 2018 10:10:15 +0100 (BST) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 12 Jul 2018 10:10:15 +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 , Stefan Raspl , stable@vger.kernel.org Subject: [PATCH] perf kvm: Fix subcommands on s390 Date: Thu, 12 Jul 2018 09:09:36 +0200 X-Mailer: git-send-email 2.16.4 X-TM-AS-GCONF: 00 x-cbid: 18071207-0008-0000-0000-000002523932 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18071207-0009-0000-0000-000021B87063 Message-Id: <20180712070936.67547-1-tmricht@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-12_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-1806210000 definitions=main-1807120073 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With commit eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU") s390 platform provides detailed type/model/capacitiy information in the CPU indentifier string instead of just "IBM/S390". This breaks perf kvm support which uses hard coded string IBM/S390 to compare with the CPU identifier string. Fix this by changing the comparison. Fixes: eca0fa28cd0d ("perf record: Provide detailed information on s390 CPU") Cc: Stefan Raspl Cc: # 4.17 Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/arch/s390/util/kvm-stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/arch/s390/util/kvm-stat.c b/tools/perf/arch/s390/util/kvm-stat.c index d233e2eb9592..aaabab5e2830 100644 --- a/tools/perf/arch/s390/util/kvm-stat.c +++ b/tools/perf/arch/s390/util/kvm-stat.c @@ -102,7 +102,7 @@ const char * const kvm_skip_events[] = { int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid) { - if (strstr(cpuid, "IBM/S390")) { + if (strstr(cpuid, "IBM")) { kvm->exit_reasons = sie_exit_reasons; kvm->exit_reasons_isa = "SIE"; } else -- 2.14.3