From patchwork Fri Dec 16 11:59:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Richter X-Patchwork-Id: 33946 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp923421wrn; Fri, 16 Dec 2022 04:05:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jGERyjQgIz7NFZOPW6nV75xotTbkVGdmRhPbRyz6RnFjkOIpRQ1KDogF3yKGS8ck9bVhB X-Received: by 2002:a17:90a:348e:b0:219:8cbb:c158 with SMTP id p14-20020a17090a348e00b002198cbbc158mr33597520pjb.5.1671192312878; Fri, 16 Dec 2022 04:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671192312; cv=none; d=google.com; s=arc-20160816; b=H2HSRt/xneA7ISL4zZ+wQjiJWLazAc0copYewfNSQHe8CcsCLG3bD6rCO6hAC+dHIi 5NQM7d1BMDrkEEIK2UQDeisFlv3jSgdo75qy4tbJXC2KRjfFLhCAOjkIr1h0LG/OrkGb SWgt4P44qTKGXihD1mqmBVBGi287iNbBvPkaQxtr0gC4ySOdvnSNhRRY9GMHg3Y4NnTF ThJJ1AW7tx8avf7CnPrn96eQMC0bs5QHYLBv2vu6VDiSXULAnFpcfH0qJFnou7eeG/xH JbKLHI8KTpIJBSeDJiAueqAZDRXhN7vuEXANqmjO++gaF+14mrV2HB1c1VrByjkQEkCg VS4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=h7RK8T8taq4CuuKj6hSyg+dTmQ/jogpwEizyJ2NFvGI=; b=oBooMHkQ8XLzSOkznurBkZhxK7Ms4yM0ENmWPGyk3d9oJjkWOMLMP0u/Yv5wg7oyjO aYwX8PZDtQMqY5SgPbgswZjfdzM5slL1fODI1ySwCczxTv5n6QHZJt5GiX5vNjYrtcO7 JU77NnKZwFKlVv0qcLmRKU/zIWNWqRNBIBDH9FR4cMDH+sQBicMLVzrJ78FlAU4GAoIe r662gp4yV7mGbS2q0dsVi0Gd+vTC07bs+KuJMhReGtXjNpF9Azp/fa2oznywcu6JwLbZ +V2oygvFAnCuqWmhRFNahUPYlIItME0DjT2fqVJH1BfnZGg2Rj8QNhld1IAY4AWOMAPb HGJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=k9leIK4B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a17090a4e0800b00202827b6f5asi2118762pjh.162.2022.12.16.04.04.49; Fri, 16 Dec 2022 04:05:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=k9leIK4B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230256AbiLPL75 (ORCPT + 99 others); Fri, 16 Dec 2022 06:59:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbiLPL7c (ORCPT ); Fri, 16 Dec 2022 06:59:32 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE96340467; Fri, 16 Dec 2022 03:59:30 -0800 (PST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BGBNMiq018266; Fri, 16 Dec 2022 11:59:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=h7RK8T8taq4CuuKj6hSyg+dTmQ/jogpwEizyJ2NFvGI=; b=k9leIK4B68/T/Wbiu/oreFVOivTZil3pHjBMMBwV5J4YMpFYEsWQqtCanjMES5BixpyR /renbNe/1sJVBP4JBYIcjij1QP3clks5ozqLdJeGbOfJaAcuz+gStnUBuDM3jU8M9HjA GdK7H62wC+LU1IIT+6C8lPvUBzt78SP73rH2FmB2WkaXE4XKsKBGEikK/Wk/nog36slN J+ELUkgF3cl7ePtx26NmZg2FD7CcGrXhoa+kSjHp68WUgZw7zyiYKztdN+HH9p6RZbCG SC450L9GORZpzSdM8rihiGtosePK8K/xdGpTYQszoSZW3vnuvcDDsqbrqaI+Y5UUzMQM GA== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mgqrm8rnv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Dec 2022 11:59:19 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 2BG2Z7ja008206; Fri, 16 Dec 2022 11:59:18 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3mfs5yj7r1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Dec 2022 11:59:17 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2BGBxE2Z22348452 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Dec 2022 11:59:14 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 254F420040; Fri, 16 Dec 2022 11:59:14 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DD3A420043; Fri, 16 Dec 2022 11:59:13 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 16 Dec 2022 11:59:13 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, gor@linux.ibm.com, sandipan.das@amd.com, sumanthk@linux.ibm.com Cc: svens@linux.ibm.com, hca@linux.ibm.com, Thomas Richter Subject: [PATCH 1/2 v2] perf/test: Fix perf test 84 on s390 Date: Fri, 16 Dec 2022 12:59:09 +0100 Message-Id: <20221216115910.369093-1-tmricht@linux.ibm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: UiQJLMspSXVLaYOTEO8Ylg3ntU6Jnibv X-Proofpoint-GUID: UiQJLMspSXVLaYOTEO8Ylg3ntU6Jnibv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-16_07,2022-12-15_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 mlxscore=0 priorityscore=1501 clxscore=1011 impostorscore=0 adultscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212160102 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752372150851592340?= X-GMAIL-MSGID: =?utf-8?q?1752372150851592340?= perf test '84: probe libc's inet_pton & backtrace it with ping' fails on s390. Debugging revealed a changed stack trace for the ping command using probes: ping 35729 [002] 8006.365063: probe_libc:inet_pton: (3ff9603e7c0) 13e7c0 __GI___inet_pton+0x0 (/usr/lib64/libc.so.6) ---> 104371 text_to_binary_address+0xef1 (inlined) 104371 gaih_inet+0xef1 (inlined) 104371 __GI_getaddrinfo+0xef1 (inlined) 5d4b main+0x139b (/usr/bin/ping) The line ---> text_to_binary_address ... is new. It was introduced with glibc version 2.36.7.2 released with Fedora 37 for s390. Output before # ./perf test 84 84: probe libc's inet_pton & backtrace it with ping : FAILED! # Output after: # ./perf test 84 84: probe libc's inet_pton & backtrace it with ping : Ok # Signed-off-by: Thomas Richter --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 1 + 1 file changed, 1 insertion(+) 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 f12a4e217968..0f01c62cbee9 100755 --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -37,6 +37,7 @@ trace_libc_inet_pton_backtrace() { case "$(uname -m)" in s390x) eventattr='call-graph=dwarf,max-stack=4' + echo "text_to_binary_address.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected