Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9982314ybi; Wed, 24 Jul 2019 13:30:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw52F4BXXKullR9DsBluVTDOsBnAEV6uHJ7fgZninKxw++62uAi324leVlWgyBaQsqGyhBF X-Received: by 2002:a17:90a:b394:: with SMTP id e20mr88509952pjr.76.1564000227168; Wed, 24 Jul 2019 13:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564000227; cv=none; d=google.com; s=arc-20160816; b=gGlB1VISsbE/cOFtEUiDqi7ScikCbUtulUtbXb3tDlMYvTDUetcrKLcJCX9BnPCGrx flhuRIAmvJKEJyP0C8992wI+DFqvD9x1SMBP5gAmBcXm7p1dZwK0b352zp/BzcYYOTC4 xmAlZfn0K4nYIM9E4NihJ7ZcSSRvm6fAsYIhflAH8uVKcLURTiPc2g/fujuRQLxhokXF N6+V9uRkLqBBU+B6dlYHxnSixU2W+QRQwKKvs9l/pF7AxSKrDRVPWROANIFZKjheaN0H oURkyqFneIGNIwjZ62J0IjFtjySJ4pKNXRN6EAzpZ1Zr04/bSQOr8AN6pnbdrk2pCfIU pOzg== 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=VsILa6kZBkOg9PtTXzkpPBqFXbtwI+berUP82n7u5JqS/dltX0F2Bp6dyKweiAkMhS w4/TrERu78W3vMFiOKpmemOaBvTnv+BEgIspOpo82eNYqlDdudLBDedNZVbfis9YK7gy X/4FbWwri2HhIvVraJAabprnuIU1ebrNjBuIy3j7ucg+lxd6g6X/2PsnuvVhsLxbYbxN ArmvbA4PzA5xIqSb8Kwt+wnE2wk95OL0MgLM1KFVbaK7ApbrRpBHWesBmheNW1S9bQTa obkJt3OzFvcFGvikpjpBa4gM5ssg6/iM3XkX9wZF8F74aIr/my9tXV9OKbbzfVVpJOb2 DKHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CcQBgQRr; 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 j5si14028290pgm.427.2019.07.24.13.30.12; Wed, 24 Jul 2019 13:30:27 -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=CcQBgQRr; 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 S2388663AbfGXTd5 (ORCPT + 99 others); Wed, 24 Jul 2019 15:33:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:55972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388132AbfGXTdz (ORCPT ); Wed, 24 Jul 2019 15:33:55 -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 1517021951; Wed, 24 Jul 2019 19:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996834; bh=3wEy0eQE3mYuym3yN5JDT7B+2H6vcXNHpCc7LbT+U4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CcQBgQRrJxDgRe0XNNkFOYO5nIWEbUcsAmQpUMuRaBrN1AexpTT9dhYEqOhGBbWg1 LYAzpFiPAAVncV2jMALHAI4jqGQyAh6AX+j9m0gKeCyCb8ohiZ+ZVEBRfVN86LUio7 CPvWz73a+DNyUkUkjnfyJEXb8ue1V0DlXRR3Uepw= 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.2 233/413] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Date: Wed, 24 Jul 2019 21:18:44 +0200 Message-Id: <20190724191751.813389599@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@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