Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp482986rwr; Wed, 3 May 2023 01:20:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RR7OOvD6zFWcE6SN8PtDvqvSPNP4ldrGQCWPRkVnc/naktbYcwhHyS49NfV+nU9oymY3X X-Received: by 2002:a05:6a20:6a0f:b0:ef:205f:8184 with SMTP id p15-20020a056a206a0f00b000ef205f8184mr28627006pzk.13.1683102042965; Wed, 03 May 2023 01:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683102042; cv=none; d=google.com; s=arc-20160816; b=E+IrxQtTEnT4b0E5nSL3WEjVW7u/3kfkUEODu0gSJ3M9yuxVV1AWTUDNYkZOEddWRX 322o2dr3kOiuwbOZFga5oNOlil+L+wRMctki59BtCSBv34kMdV7+yyjhW3mDmaq0EJ8n Z4SkSahcETkmJ54dHvkqM86C54ugtQ7SffCSYYFWQD7Qb6GdNlN847Px70muR4Zt53Ya 5OmfL1bCL3oG0FsJmpsdIs54tlGd7QyDZpTC/oynaODPo/s0nvsnqvzUHyRXp/TVX6Ws lH96DM4QrEy26OKMMw9+WsLgdOY3S7jL7OxFXYU1I4/sD9fciej0Fd3BsamysXN/p88k pF0Q== 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=TZTIlAYz5Xrm3wa3jxWVgbAqiZepf8IQvMmA42vTCVY=; b=VS/M3PoCaRjyAVm6CHDTCTx5EeZY/EpVCWhbiiZBh7DgagRU1PqmUzJO4m/eVPZ71t RhiWtjNy6+MKZhlyLA40plZAyFtpTkggm8SkcRFwxuX5pnWYmasE3ycg0BvPL/JX/rP/ L07Rr6+crJy/ld9hNnAP4K8R2JFIMpWz3J6BiIxY0Bkwj4uPaqaAlWWsSqcj/f+qPRWY Oopj8O9bVj+Y0HsctRzOx1+dqWtU3n2G2jTvxTXSfokZuGHlqd2G4gQqcF85yqR6nIWP D4Ll75cFGHhJln+JPCjfBZgcSLZVCt2IJD0prcEqvEsiwh5SwJ2n4nkpENBqqryJdpiS En7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dFlXR9l8; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020a624d01000000b0063f1582c50bsi30586795pfb.338.2023.05.03.01.20.30; Wed, 03 May 2023 01:20:42 -0700 (PDT) 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=dFlXR9l8; 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 S229887AbjECIMK (ORCPT + 99 others); Wed, 3 May 2023 04:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbjECIMI (ORCPT ); Wed, 3 May 2023 04:12:08 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C07B5; Wed, 3 May 2023 01:11:50 -0700 (PDT) Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3438BVEp023737; Wed, 3 May 2023 08:11:47 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=TZTIlAYz5Xrm3wa3jxWVgbAqiZepf8IQvMmA42vTCVY=; b=dFlXR9l856fIKbI2J1x7YENN7vnr/HZ7SWw5QkAxZ8OhEF1mKCpgU5cn/G+WxVRtbJpX Am6p/W7j2v/iAu6jcgLbBaBtQb+/JXW+Bu2S+M9Kpg0Z7Bvrir9KFUghuzfwcpY1Xj51 q8WGwzfolZQBWdT9qZmWWiULXqicPoA3k6D+dgO6uNNMigOl3NrvHkwgcHvHT9aGlZ0l AZ+7eSd7s9fwjnGZf65B9A/D/bGsM+Y2fATHOjc2Vcf1GwVwtiV5n0j18xWWWaSs20Bl 4Ose0A/aq84eXbd+N3j4bpadmtkXKfsh5ebU40pk4xnp393Uyr8pBxY3bafdfKNjn7Di lw== Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qbjqfhv6g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 03 May 2023 08:11:47 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 342437qa027740; Wed, 3 May 2023 08:11:45 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma03ams.nl.ibm.com (PPS) with ESMTPS id 3q8tv6t26w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 03 May 2023 08:11:44 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3438BeaV34865832 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 3 May 2023 08:11:41 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DD5B12004B; Wed, 3 May 2023 08:11:40 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B69D72004F; Wed, 3 May 2023 08:11:40 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 3 May 2023 08:11:40 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com, Thomas Richter Subject: [PATCH] Fix perf test probe libc's inet_pton on s390 Date: Wed, 3 May 2023 10:11:34 +0200 Message-Id: <20230503081134.3372415-1-tmricht@linux.ibm.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: mJOiGhctZuvIl8KHMKcJs6DhbHoeAf0u X-Proofpoint-ORIG-GUID: mJOiGhctZuvIl8KHMKcJs6DhbHoeAf0u X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-03_04,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 clxscore=1011 impostorscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305030066 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, T_SCC_BODY_TEXT_LINE 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 With Fedora 38 the perf test 86 probe libc's inet_pton fails on s390. The call chain of the ping command changed. The functions text_to_binary_address() and gaih_inet() do not show up in the call chain anymore. Output before: # ./perf test -v 86 86: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 541050 fgrep: warning: fgrep is obsolescent; using grep -F fgrep: warning: fgrep is obsolescent; using grep -F BFD: DWARF error: could not find variable specification at offset 0x22011 ... ping 541078 [002] 348826.679581: probe_libc:inet_pton_1: (3ffad84b940) 14b940 __GI___inet_pton+0x0 (/usr/lib64/libc.so.6) 10e9c3 __GI_getaddrinfo+0xeb3 (inlined) 4397 main+0x737 (/usr/bin/ping) FAIL: expected backtrace entry "gaih_inet.*\+0x[[:xdigit:]]\ +[[:space:]]\(/usr/lib64/libc.so.6|inlined\)$" got "4397 main+0x737 (/usr/bin/ping)" test child finished with -1 ---- end ---- probe libc's inet_pton & backtrace it with ping: FAILED! # Output after: # ./perf test -v 86 86: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 541098 fgrep: warning: fgrep is obsolescent; using grep -F fgrep: warning: fgrep is obsolescent; using grep -F BFD: DWARF error: could not find variable specification at offset 0x309d1 ... ping 541126 [006] 349309.099067: probe_libc:inet_pton_1: (3ffb7f4b940) 14b940 __GI___inet_pton+0x0 (/usr/lib64/libc.so.6) 10e9c3 __GI_getaddrinfo+0xeb3 (inlined) 4397 main+0x737 (/usr/bin/ping) test child finished with 0 ---- end ---- 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 | 2 -- 1 file changed, 2 deletions(-) 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 b4149b2db4c6..4c739056cb65 100755 --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -38,8 +38,6 @@ 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 ;; -- 2.40.0