Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10422862ybi; Wed, 24 Jul 2019 22:57:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRDN1VXqG6hQaOlXTgbvbYuI6RWRiKViJH7xq/RlosC4VrS3TAtcKySohqafmsyBhTw/pa X-Received: by 2002:a17:90a:3463:: with SMTP id o90mr93167236pjb.15.1564034267325; Wed, 24 Jul 2019 22:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034267; cv=none; d=google.com; s=arc-20160816; b=p2xa3ORqZaRWD2U840Qf88vGhE8lQV9sboupHOigQphShZigTx+OjivLrKc5qI627x gxx4f/9SQZcjB6MSBMDOgAvZOP81yVi81c8YBno7pOwJlHqR9EcwmEnnZP5rJHrJRqij l8sd21zhaIc9JP5puM3yDV+7o0t1Qo0UIzoEMAtfL1lAUvTii2ASePDgoEBU/REVDRJ9 ZSTma+JLrbUc+D9kg20zXQPxqoXyqeQlQ8i0EqUPFBf2QSa7hfomYLOgmSEGwJhFx/pL oGUvNw3wsXNjN1MlslMcxIt0HMYRNyBJfiBOqap26q4qpwykM++fV3Z8iNniGdVV62Av 4CjA== 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=AvT8cywiQE8+01TeTFILp9y2T7RIixDRvH6C46lDQws=; b=HKY7/MDcMTRCeQnN+1bcPHtbooCIrfPoYc29XRfJueasjP2G6jP4IN2Ta7/E6FOatr FOgdhIwbeoX0TXbPz4D5+wOPigndGeeLPb6lkP+4N31irOvOFQEpGlO4wukmq7SCPTuD ZP+T9V0UGkQdZZLwsFLlLjj/RKKxExSXpem6/+VAbEsYwVlzq4EsM9YDMWxDQwyH1Joj W9foK3eSq4R1QqdzIfuYJYaoTVsrr7q48OZsD43HBAp/KmZI0lZM2MC+htBWsdiHcTVn ZqOXu/dBhz38XleRudwXU44ZVR6bSiNKYjDwS/6ldAbxn7/Px2s8q7tK2EGqsHzTJUn6 Gc3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HO79zcTg; 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 q3si16654793pjb.1.2019.07.24.22.57.33; Wed, 24 Jul 2019 22:57:47 -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=HO79zcTg; 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 S2404547AbfGYFlI (ORCPT + 99 others); Thu, 25 Jul 2019 01:41:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:55856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404534AbfGYFlH (ORCPT ); Thu, 25 Jul 2019 01:41:07 -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 1297522BEF; Thu, 25 Jul 2019 05:41:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033266; bh=8DMklsvQV6fe9UrzD0NLaowBnG4I7eiVU5QUoamScYY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HO79zcTgiw9aUc8z080S9UN6bSRDumyMVOWxBIsaDGWUMxnwuSW/Wx6bCLQOmdigw QEtW5AmGBDZsWHhoQE/jnb5G7AIzsrfBhVWNU84oQt7GeLbAVC8xwGKerrLuLyzghR hOGlo/Rzb+dKGN4SRkDFfduUzdryppcbakld0poU= 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 4.19 150/271] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Date: Wed, 24 Jul 2019 21:20:19 +0200 Message-Id: <20190724191708.067810524@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@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 cab7b0aea6ea..f5837f28f3af 100755 --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -43,7 +43,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