Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10402744ybi; Wed, 24 Jul 2019 22:34:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMsZ7Q3hgVM2EWqXfIW2p6RUb9HN97IXWo4UOtHKlEMCLXHcdnfJDzKFcYtNU7gNkpVw7C X-Received: by 2002:a65:6102:: with SMTP id z2mr83927425pgu.391.1564032861344; Wed, 24 Jul 2019 22:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564032861; cv=none; d=google.com; s=arc-20160816; b=lOPBT6GTy6fuQLEhzdsKsckNhcE8JmivH2EzmcG3sOtrbDG8T4ITyegT6OEa92+VDM UBgb3XejOwCRludsEXdAbhZa/oi0IvLWIVvawk3K5iEnJZaa7geZBJv7euSwdlfR2oeb WFANS2aDRi3rsIdoDMpXID4fD8cBdlLhumLIzfvdp/rBg0+TUQvij9z5nQW2Nm6IE/D8 XcI5nZUJNwriGfckffH7pBYywQZnJ9HbsxVryp4S8fa69QHBi7CV1YuvnyqWpBU91bgl TQ3yq1GMzzy2M6WpsHxcGCIURLEUcyMllAd13p/slrPi3jj/xBRI3/X0dY9rOqK35U2n dZdw== 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=PQV1gAqdzLD6k33FwknOI5gYAg0RNd+TWq49ro2s3FA=; b=tZLU1WoLed0WLtzfWPWlq1UY00o88LYWPnZQDoVPmHBEdkLj3oWkHlq0+v6mn76N6H 6j4q6SVhAS7yAiXa0BwHtLnAJ1oQFVTko34bS/me11b+Eu+Cnq+YZCQ/EOVICTjOWqgK r0mLnrABDNEa1hV0B/AsagQ5YY4tTrIWIAYMomX428gqoHFYLLIEAB6oWmELATPwgE4U ACH56ktxBU1xfoCDis7emzAStmnZEvTOTKqX7ImlScVCSjE1cLWPNLoAfpNIN2TKvMpF ec9YO9xzhg1PKQxk+F7pEVDdtofh1FY0znCSuW5/+CAoWkmyosbA/52/+85byYDQJFo9 gu+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zRdrdcWN; 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 q18si15358105pll.79.2019.07.24.22.33.30; Wed, 24 Jul 2019 22:34:21 -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=zRdrdcWN; 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 S2404379AbfGXTyf (ORCPT + 99 others); Wed, 24 Jul 2019 15:54:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:37528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404369AbfGXTyd (ORCPT ); Wed, 24 Jul 2019 15:54:33 -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 5CB0520665; Wed, 24 Jul 2019 19:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563998071; bh=3wEy0eQE3mYuym3yN5JDT7B+2H6vcXNHpCc7LbT+U4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zRdrdcWN5bhIpM3kGncs27jSSB/xwy7h+EsBjV0bz2BDaVi5fxg1e/CmjDnJmG1pO GVNvO5/s2oRsoB5knTrtd5RC1khQ5X+KFkg4EYXSsDknCitFYV6+yDNni71E/9jzbK EoX2wmX3ysMculsDHjRMtxFa3rpwbr151rRcxYgo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Seeteena Thoufeek , Kim Phillips , Alexander Shishkin , Hendrik Brueckner , Jiri Olsa , Michael Petlan , Namhyung Kim , Peter Zijlstra , Sandipan Das , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.1 209/371] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Date: Wed, 24 Jul 2019 21:19:21 +0200 Message-Id: <20190724191740.290737574@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191724.382593077@linuxfoundation.org> References: <20190724191724.382593077@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 [ Upstream commit bff5a556c149804de29347a88a884d25e4e4e3a2 ] 'probe libc's inet_pton & backtrace it with ping' testcase sometimes fails on powerpc because distro ping binary does not have symbol information and thus it prints "[unknown]" function name in the backtrace. Accept "[unknown]" as valid function name for powerpc as well. # perf test -v "probe libc's inet_pton & backtrace it with ping" Before: 59: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 79695 ping 79718 [077] 96483.787025: probe_libc:inet_pton: (7fff83a754c8) 7fff83a754c8 __GI___inet_pton+0x8 (/usr/lib64/power9/libc-2.28.so) 7fff83a2b7a0 gaih_inet.constprop.7+0x1020 (/usr/lib64/power9/libc-2.28.so) 7fff83a2c170 getaddrinfo+0x160 (/usr/lib64/power9/libc-2.28.so) 1171830f4 [unknown] (/usr/bin/ping) FAIL: expected backtrace entry ".*\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" got "1171830f4 [unknown] (/usr/bin/ping)" test child finished with -1 ---- end ---- probe libc's inet_pton & backtrace it with ping: FAILED! After: 59: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 79085 ping 79108 [045] 96400.214177: probe_libc:inet_pton: (7fffbb9654c8) 7fffbb9654c8 __GI___inet_pton+0x8 (/usr/lib64/power9/libc-2.28.so) 7fffbb91b7a0 gaih_inet.constprop.7+0x1020 (/usr/lib64/power9/libc-2.28.so) 7fffbb91c170 getaddrinfo+0x160 (/usr/lib64/power9/libc-2.28.so) 132e830f4 [unknown] (/usr/bin/ping) test child finished with 0 ---- end ---- probe libc's inet_pton & backtrace it with ping: Ok Signed-off-by: Seeteena Thoufeek Reviewed-by: Kim Phillips Cc: Alexander Shishkin Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Sandipan Das Fixes: 1632936480a5 ("perf tests: Fix record+probe_libc_inet_pton.sh without ping's debuginfo") Link: http://lkml.kernel.org/r/1561630614-3216-1-git-send-email-s1seetee@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh index 61c9f8fc6fa1..58a99a292930 100755 --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -44,7 +44,7 @@ trace_libc_inet_pton_backtrace() { eventattr='max-stack=4' echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected - echo ".*\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected + echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected ;; *) eventattr='max-stack=3' -- 2.20.1