Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1889022ybd; Thu, 27 Jun 2019 03:19:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLZ/U6RMMcRN8aF4+8wdGFH26/EQLmihh33cJHmuD2agTAtIXTQi6GDHTqpY5d8Ev92kJc X-Received: by 2002:a17:902:2e81:: with SMTP id r1mr3845471plb.0.1561630760741; Thu, 27 Jun 2019 03:19:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561630760; cv=none; d=google.com; s=arc-20160816; b=q6z9ra1KQyPhuKpVpRWgM0IZAr8H9B5uEdNKjlkwNW08CpzcRkp8XnvfDOL6nvpGsc XGedkUd/L1y3PenYaKp1bAn9XeMKyZF9XuqyUI5EYw4pjrfjXIvk3ACpwbCtDWmQz8Lc 4CcjV61AI9f/0rZnOKW6xAOOz1e3wSryBG2PMS6WJYetJLDzQd+cx2+u8h1iAJDZZ7Jw vUXUvqtaE9Ngi4bQ9cjQRknNIUDdcPtWy6X2YjzTgkDcGA8xPNEIAzGVDLhbg7zJNQKB iUoh+b/yeyzOXRs6YoqssffdXtswEe+DJYUER1bfZgSSAteMapFOdbjrQA4nptoMkPXg 7mvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=hKlnh1Et05R9Z87zdUXDlNWz80mIofYvTOi5D/uei1Y=; b=DMKPro7Sfpsxfru44r7O7cqQi6CY3kHz8LzYSKYlRqKgpB72+7M4bCPaRgE4ILKIls W9ZyNs05qaER70rKYmNDW2J/hK/G5I1zz+YS3r7q0Z4D/vZcfjD3pmxfMaLvABoJEXiT KkZsHYjnguKyZtZ7M4e3Uy+ua9WoU5HqaxH2ZkNW6lJxGNF70+rvjgZa4ERlROITW2Vr F3tWZd44D1zhsXhv+3naIHaJo9IerQnc8RLAR1fy9/AAnFQ9SC0is4d0Rjp4KLyHANYi 51q05FxxvgTIXd/GxZLtqKll03ie7Bm/bL83N8WKaQwiscsde6zjaSPot9eHkrHC+Yn1 Xu7A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h20si690103pfn.169.2019.06.27.03.19.01; Thu, 27 Jun 2019 03:19:20 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726487AbfF0KR1 (ORCPT + 99 others); Thu, 27 Jun 2019 06:17:27 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:3926 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbfF0KR1 (ORCPT ); Thu, 27 Jun 2019 06:17:27 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5RAG7xj121954 for ; Thu, 27 Jun 2019 06:17:25 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2tcrvq8f7d-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 27 Jun 2019 06:17:25 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Jun 2019 11:17:23 +0100 Received: from b06avi18626390.portsmouth.uk.ibm.com (9.149.26.192) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 27 Jun 2019 11:17:19 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x5RAH8Cb34275654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Jun 2019 10:17:08 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 07AAD52051; Thu, 27 Jun 2019 10:17:18 +0000 (GMT) Received: from oc2388111647.ibm.com (unknown [9.85.112.4]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id E311A52067; Thu, 27 Jun 2019 10:17:15 +0000 (GMT) From: Seeteena Thoufeek To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, sandipan@linux.ibm.com, mpetlan@redhat.com, kim.phillips@arm.com, brueckner@linux.ibm.com, linux-kernel@vger.kernel.org Cc: s1seetee@linux.vnet.ibm.com Subject: [PATCH] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Date: Thu, 27 Jun 2019 15:46:54 +0530 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 19062710-0012-0000-0000-0000032CDC2C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19062710-0013-0000-0000-000021661995 Message-Id: <1561630614-3216-1-git-send-email-s1seetee@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-27_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906270120 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org '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 --- 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 61c9f8f..58a99a2 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' -- 1.8.3.1