Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp845230imj; Fri, 15 Feb 2019 07:45:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IY7Haua8H4VCzKAOmc5avWlfUe9EazIel2H9/YCnMIXBr+aukL7waEWRksIQfpQTP8bgcfz X-Received: by 2002:aa7:8249:: with SMTP id e9mr10405519pfn.93.1550245534410; Fri, 15 Feb 2019 07:45:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550245534; cv=none; d=google.com; s=arc-20160816; b=uNivvCqu7INRkRX4sg4gRVN0UeaYKhOd+AQ2xhX3cLqTLhs4O3zihvnXjHqcd1/JU3 o4hzljddxo5V7XfdZRx1YisreXfZmkw7APTUHsL76qJ5ZBjXxKRr4R1DAH269lN5q3sp drBJ/XYrD2adwu2DMjuLMJkZj+iEPpO++5O3o1Mz3SP/OOUdQj8EfH5EVhXQZtrqHO9g zp+XtCei5KTlKo50C1B3lJzwyQgmRaGtZJVG0vYbUJPIUNz+kf+QwmGOnhuh0ZCxsC7Y vbEFiZxUrpmTn7bjjztoaDK4if48zhq/CUX2VIIU/3Ip9BhjRX1zMnef6KnTB4Rnmshw QCFQ== 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; bh=SRXJETOR7xcaN+ZmcD50+WX9AXgiCaV2BSbo4yY8f4E=; b=sjOtNJpyzhwSg1evguVxSgPdijVV08lhV+LsQQuMbkL2UqdIlJYwPXwSmzSlaPgi2N b9SimVwScnxlwb8CtRJIWqN4HLJqZX5L4f6VGr40I7z1L/GBDk6lIDPFH5StB90TEs4M 5wgTwSU9LhmVv9hYkzOIL7GaDQ6NRmQgWLuou2gBULT9XLtZmhYbOjnefe5kTC8o2/Vu m7/hEOGeK0s2XL41E9gAqHXTz5iv0DtdMOJ+vJKpbBAJrYM9/nQomUionGeuBQpgU/y5 K2+s6j+AC4jaCPBJur67KFnURrvE342Uq7eBa/ET95/n7xmaVt8qT1zJU9se8yJ4EOf4 Rbmw== 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 193si5617562pgc.220.2019.02.15.07.45.18; Fri, 15 Feb 2019 07:45:34 -0800 (PST) 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 S2404567AbfBOJ0r (ORCPT + 99 others); Fri, 15 Feb 2019 04:26:47 -0500 Received: from terminus.zytor.com ([198.137.202.136]:39629 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731084AbfBOJ0n (ORCPT ); Fri, 15 Feb 2019 04:26:43 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x1F9QOu41115616 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 15 Feb 2019 01:26:24 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x1F9QNVe1115611; Fri, 15 Feb 2019 01:26:23 -0800 Date: Fri, 15 Feb 2019 01:26:23 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Thomas Richter Message-ID: Cc: brueckner@linux.ibm.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, schwidefsky@de.ibm.com, mingo@kernel.org, tmricht@linux.ibm.com, heiko.carstens@de.ibm.com, acme@redhat.com Reply-To: mingo@kernel.org, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, tmricht@linux.ibm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, brueckner@linux.ibm.com, hpa@zytor.com, acme@redhat.com In-Reply-To: <20190211100627.85714-1-tmricht@linux.ibm.com> References: <20190211100627.85714-1-tmricht@linux.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf report: Add s390 diagnosic sampling descriptor size Git-Commit-ID: 2187d87eacd46f6214ce3dc9cfd7a558375a4153 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: 2187d87eacd46f6214ce3dc9cfd7a558375a4153 Gitweb: https://git.kernel.org/tip/2187d87eacd46f6214ce3dc9cfd7a558375a4153 Author: Thomas Richter AuthorDate: Mon, 11 Feb 2019 11:06:27 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 14 Feb 2019 13:31:08 -0300 perf report: Add s390 diagnosic sampling descriptor size On IBM z13 machine types 2964 and 2965 the descriptor sizes for sampling and diagnostic sampling entries might be missing in the trailer entry and are set to zero. This leads to a perf report failure when processing diagnostic sampling entries. This patch adds missing descriptor sizes when the trailer entry contains zero for these fields. Output before: [root@s38lp82 perf]# ./perf report --stdio | fgrep Samples 0xabbf0 [0x8]: failed to process type: 68 Error: failed to process sample [root@s38lp82 perf]# Output after: [root@s38lp82 perf]# ./perf report --stdio | fgrep Samples # Total Lost Samples: 0 # Samples: 3K of event 'SF_CYCLES_BASIC_DIAG' # Samples: 162 of event 'CF_DIAG' [root@s38lp82 perf]# Fixes: 2b1444f2e28b ("perf report: Add raw report support for s390 auxiliary trace") Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Heiko Carstens Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20190211100627.85714-1-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/s390-cpumsf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/perf/util/s390-cpumsf.c b/tools/perf/util/s390-cpumsf.c index d9525d220db1..c215704931dc 100644 --- a/tools/perf/util/s390-cpumsf.c +++ b/tools/perf/util/s390-cpumsf.c @@ -352,6 +352,11 @@ static bool s390_cpumsf_validate(int machine_type, *dsdes = 85; *bsdes = 32; break; + case 2964: + case 2965: + *dsdes = 112; + *bsdes = 32; + break; default: /* Illegal trailer entry */ return false;