Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp998291yba; Thu, 4 Apr 2019 02:04:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqylzPChgOt3o9EIe8fhymGEbg4lKlZwB0TyO/AmaiNYQxlUDn1+fx2xOpkJObgbrZOEUl0m X-Received: by 2002:a63:3f8d:: with SMTP id m135mr4491558pga.228.1554368696484; Thu, 04 Apr 2019 02:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368696; cv=none; d=google.com; s=arc-20160816; b=JiuRx/FtPAtotPEvfMYg8es7PsnzHW3mX6ucdQkDaocK+sdlcwQ3sq81z7NvgNmgQG MahfHiRIyL/NsjBokoDNTGX3jUoKpRheXMYOFGYG21I/swzqZymNP9vrpeCVKiy0R4JH xru83Rxsw+XbE2M0YiHI581/rJOUFYnWQaazrOwRTK6jhThF/QmylWOMgr2kTaCSo/mw FKZZPUF4Vc0e0eKZ4DRS8JoOXJXDFscF6JYd9iY14GWT7Q6awC3HXjNNVZV8XqLJ451M RSfHBvQTF91M3YCcGRGKvOQ1CKCY4I1gV2NDNKViv196VGLpWYG/3AIGzrYtUkDdRd/r yEyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ioUVyTPjH+GRlXlz66fUxXKaOblvXemspEE63ttdFmU=; b=b4uNmPhFiMhTNf9bgnqLpvoYipXgt42XqMKIXAVQYhqD+vGs7SQk9SbvULZ8cPQvgL AlPpCl68JDSgmVbJOinL/DR6zAd3eN9Unqy/sYdMLy1ZCe+KYF8QYlXBEDpnumEJToYb zWXYNLb3KRjTEFrmZTy8HSpSgiEvbaHzRgN0YJYOId3LMgt89Ce7CzKRvIpXNK7ATxEH D7X4s9GzGxNqWj6FQpiywY8kjiwNGMMoFR/UzST3FVixGbW+mg9Bcqpm3mO6ih9d3WAJ awY1UWZWxSnVx0n4YGmnGJ7Xvp5o9TtzAYVjcqEQOJTptynnp7FrsifJ5QceLhBsscQt DQIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="iRdN5Wo/"; 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 194si10985303pfu.48.2019.04.04.02.04.41; Thu, 04 Apr 2019 02:04:56 -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; dkim=pass header.i=@kernel.org header.s=default header.b="iRdN5Wo/"; 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 S1731895AbfDDJEG (ORCPT + 99 others); Thu, 4 Apr 2019 05:04:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:41732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730622AbfDDJEA (ORCPT ); Thu, 4 Apr 2019 05:04:00 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 801622147C; Thu, 4 Apr 2019 09:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368640; bh=rk/xY3WaHbsmD4YRfkWP8kfMWtfXogBsRQt3DYsKAQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iRdN5Wo/TP5ez7k3DNvKuZ4iRj1tDC0u/oUygE55DxDXUQDjCaSOHoHSjJzFPrIaZ ZDgOgLWbGXl22tQxPhzeTIlVqSpI4NfTmq1KZ1vl14+j38zLjnr6nKgJH+/GoQRq5u l75J+rk2taX9nv92/FiKLHu1evnxxwcMz433Fgx0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Richter , Hendrik Brueckner , Heiko Carstens , Martin Schwidefsky , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.19 098/187] perf report: Add s390 diagnosic sampling descriptor size Date: Thu, 4 Apr 2019 10:47:15 +0200 Message-Id: <20190404084607.790349854@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 2187d87eacd46f6214ce3dc9cfd7a558375a4153 ] 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 Signed-off-by: Sasha Levin --- 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 aa7f8c11fbb7..910f2621d211 100644 --- a/tools/perf/util/s390-cpumsf.c +++ b/tools/perf/util/s390-cpumsf.c @@ -294,6 +294,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; -- 2.19.1