Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3945819pjo; Tue, 3 Mar 2020 09:53:42 -0800 (PST) X-Google-Smtp-Source: ADFU+vtu1viymQ7DFDQvobVtkRiFx854aRFg8+w8OJjQoKi/eimi2HsmpMJCX1QiE6XrDLX0A/05 X-Received: by 2002:a05:6830:147:: with SMTP id j7mr4277189otp.12.1583258022060; Tue, 03 Mar 2020 09:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583258022; cv=none; d=google.com; s=arc-20160816; b=xnEKiicKfY0hKhqzZFUeGLG/n141EWfiWCCAILryrJKvwpihc+xUWTQKUdXjn/1brA IjdGqdzaqOtFddsnYpSRT/TTptu6pyhyHmau8dyciaJZkdpPfIQxbKdccQKxrAL7ay1/ 5/ZDQZePlAo/51BDQsyVtBMaheoiPBVjhcqp8wcUocrWjkJExlbyeTpTYa4PK7Fzza4Q 9DImCMHm+ttHjqQ2R3BNhqPhjoHLN5M/EsTTiqN099zjWM2huvNVp6hSKR9b0/VjeGLG Lgy4mDD4r0/7WXxOTEveiGofUr3mh/a8pP2B1IHZRgAE2ufNSLRueRHaEPBBekHcoCOM WUCA== 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=m2Gcs1Ge9of5U8bsc6HiAvnV7JXiauGjQhfahBt4tuo=; b=C0qAAHUd6WV36aVbMJwDX4Vicg4q5PFPLoezxza98zyJxh4AZP0zQ3I5HaBS1xwJ7k 9E77gdj1P724uehGDkeceMLR0J7Qtt2Ykc0vYi9sNEbP1V7l4W8hxz7i+Ys0730UPHHv Ew9C51xl2Km24ebKyOUVxEEip/kUOxvMUDFfPsrlxBKHH0hDLCppwUkuLEjyJoTphyVP C1JCbEVrsYJMRG7OwqFzC6WgEbqHLppwjKF7giCLw/lWAoyP6rsk/twsTGtdudv96XBu hS5UfwE/t75LWrZPCKfkw170piy30GYBOfbQNyaUwxHQF+uQLRdMFh3FdaimjAd+lUWJ uGtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YFa4f23j; 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 67si8330421ott.243.2020.03.03.09.53.29; Tue, 03 Mar 2020 09:53:42 -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; dkim=pass header.i=@kernel.org header.s=default header.b=YFa4f23j; 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 S1731425AbgCCRvi (ORCPT + 99 others); Tue, 3 Mar 2020 12:51:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:59622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731998AbgCCRvb (ORCPT ); Tue, 3 Mar 2020 12:51:31 -0500 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 B7FFA20870; Tue, 3 Mar 2020 17:51:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583257891; bh=dYY2nfybQa9fso0nwr0Pvip/Pef4msplkJ7pnFd76jo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YFa4f23j2CskE8y4Z0VjyPPun1VSNrJymLBTfhETc0tQ7HBbt2TVVN/qgiq258FNZ i3VN5xQg9t65h0hAPzkwf88BxMHErGthwES/tPSMSvWSCuBQUBb8tz6/lD4ghyxVti 2quHHZ/dpWtnv4tYduZYSCNsh+0NAfiBMvcDR43U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jin Yao , Thomas Richter , Jiri Olsa , Alexander Shishkin , Andi Kleen , Jin Yao , Kan Liang , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 5.5 140/176] perf report: Fix no libunwind compiled warning break s390 issue Date: Tue, 3 Mar 2020 18:43:24 +0100 Message-Id: <20200303174320.976028884@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200303174304.593872177@linuxfoundation.org> References: <20200303174304.593872177@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Jin Yao commit c3314a74f86dc00827e0945c8e5039fc3aebaa3c upstream. Commit 800d3f561659 ("perf report: Add warning when libunwind not compiled in") breaks the s390 platform. S390 uses libdw-dwarf-unwind for call chain unwinding and had no support for libunwind. So the warning "Please install libunwind development packages during the perf build." caused the confusion even if the call-graph is displayed correctly. This patch adds checking for HAVE_DWARF_SUPPORT, which is set when libdw-dwarf-unwind is compiled in. Fixes: 800d3f561659 ("perf report: Add warning when libunwind not compiled in") Signed-off-by: Jin Yao Reviewed-by: Thomas Richter Tested-by: Thomas Richter Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jin Yao Cc: Kan Liang Cc: Peter Zijlstra Link: http://lore.kernel.org/lkml/20200107191745.18415-1-yao.jin@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/builtin-report.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -412,10 +412,10 @@ static int report__setup_sample_type(str PERF_SAMPLE_BRANCH_ANY)) rep->nonany_branch_mode = true; -#ifndef HAVE_LIBUNWIND_SUPPORT +#if !defined(HAVE_LIBUNWIND_SUPPORT) && !defined(HAVE_DWARF_SUPPORT) if (dwarf_callchain_users) { - ui__warning("Please install libunwind development packages " - "during the perf build.\n"); + ui__warning("Please install libunwind or libdw " + "development packages during the perf build.\n"); } #endif