Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1156662rwb; Wed, 14 Dec 2022 07:11:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5lI8QdGiQ2nndJMJefY8WBkUh3fFvEuKmwUbEzcv+69f1yOWYvy9Rm7Oc5+rD7+CJ6iUca X-Received: by 2002:a17:906:3917:b0:7bf:1081:9472 with SMTP id f23-20020a170906391700b007bf10819472mr19641156eje.69.1671030665483; Wed, 14 Dec 2022 07:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671030665; cv=none; d=google.com; s=arc-20160816; b=bAL/5FJGA+z+2LN6bfqLF2YfNRunvfrOwEk7/zddml8hcmYXD7yjEdu+3GPOaEWMxT eVq5jCQRnbW5E697qFomsDGPHkW2Ypk7oo1yjNUc+v3OFg76CiEo0SJPP87HguK7R7BX FnR8qb4vFIBRKL/0I1h9Jm6Vj6RTTweogr1R1JJuz2NeM3QU5wUDH8W5vo1o/DYp0pFJ q9fcSldluNlVH/gdtm5i3zBz9Nb9smPAJd3AfNeAWM7knRmnjnSgM6zG9tT3f9AOWLVo kkpbQio5QTy5jSBgPCbUT7KfHYVGT8UbDLEFWXHC3SYAzeSUgpSQ46dGVLgWGkYcHDcp x6kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=82NTsPakwbCOf/HoZgzTirFiY/fjSTGo4FP/1Hl9bPA=; b=EOthtpPT5AJpmHNVz//W4nBZTLQWi78/5Rkonl15hM9GXjlyTpFhrIr53watWe7CAc FELWIJW+GNjLDkoSmHGyslxk8ZI0ourN3iByXyPP28T83H52qYCktK7sri9xmH/8d6aQ Uvb/SDPtGpP/H6aQBVYrjSZCxzRIiJ0/sIDobmI9odG9OhsWcru5TK8atWLPO7MQnxoG 7TCiPocoXemU0vgz6X/xwrDqhe7I3cPRYRGeWiHXLsVpD274w5s+DkhFQn/g/B7Cc/r2 3Jr5nQQy350bb7Xna14iEOy9uY7Odqf6qz/30PyTqTeE0ANAcNjAjY0i/8tAutMbED8g WCSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DDM5pcZ0; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090658c600b007c1572c3efesi10225247ejs.846.2022.12.14.07.10.44; Wed, 14 Dec 2022 07:11:05 -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=@kernel.org header.s=k20201202 header.b=DDM5pcZ0; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238196AbiLNOfL (ORCPT + 69 others); Wed, 14 Dec 2022 09:35:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238650AbiLNOfD (ORCPT ); Wed, 14 Dec 2022 09:35:03 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEE56BF2; Wed, 14 Dec 2022 06:35:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4999061ACE; Wed, 14 Dec 2022 14:35:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F887C433EF; Wed, 14 Dec 2022 14:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671028501; bh=m98RlXJ/WE9s7A2/YHKpBSHyNKsZEnL4fFE9zIp3ocE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DDM5pcZ0jlu38c7MLCTaHrXajkeM7tOgeVuIkw0XTQvpfpl5DlhG5EvxTtf+TYmjt mrbTx5R6devy6Dax4iPppell2fc+Rj1nfJmcBGnQDfUuY5eO6hNHKtfCrbE0ED0REz JkbAuYp3h6YElz/KFQ3dXPofd4Y3MmqqZGQ04ROx47diVl54m8KNOpIQwzIqcN5gCz rW9x0O1hKzcg/VatoVfkINLqisaYjUrpNIcN9sqcfYpOUjmRguwT0AAi6V96+EEzNa gRkLLStL0AS0wT8tf73rvaXmpb1YLvdmN90Q2XUKaL61GlkpkvXm4PvyzbXLGV+bfk qnKMEj+pft67A== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 84C0940367; Wed, 14 Dec 2022 11:34:58 -0300 (-03) Date: Wed, 14 Dec 2022 11:34:58 -0300 From: Arnaldo Carvalho de Melo To: Thomas Richter Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, hca@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, svens@linux.ibm.com Subject: Re: [PATCH 2/2] perf/test: Fix perf test 89 on x86 Message-ID: References: <20221213105729.1447368-1-tmricht@linux.ibm.com> <20221213105729.1447368-2-tmricht@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Em Wed, Dec 14, 2022 at 11:40:32AM +0100, Thomas Richter escreveu: > On 12/13/22 15:46, Arnaldo Carvalho de Melo wrote: > > Em Tue, Dec 13, 2022 at 11:57:29AM +0100, Thomas Richter escreveu: > >> perf test '89: probe libc's inet_pton & backtrace it with ping' > >> fails on x86. Debugging revealed a changed stack trace for the > >> ping command using probes: > >> ping 35729 [002] 8006.365063: probe_libc:inet_pton: (3ff9603e7c0) > >> 12be50 __GI___inet_pton+0x0 (/usr/lib64/libc.so.6) > >> 4fca main+0x139b (/usr/bin/ping) > >> The line getaddrinfo.... in the call stack is gone. > >> It was introduced with glibc version 2.36.8 released > >> with Fedora 37. > >> Output before on x86 > >> # ./perf test 89 > >> 89: probe libc's inet_pton & backtrace it with ping : FAILED! > >> # > >> Output after on x86: > >> # ./perf test 89 > >> 89: probe libc's inet_pton & backtrace it with ping : Ok > >> # > > Not having at the current state of that script, that $expected may be a > > subset of the actual backtrace, i.e. will this continue working with > > the systems where that getaddrinfo line appear? > No, that is not the case. > Taking this into account requires a larger rework of the call stack > checking. Not just simple line by line matching which is done now. > It also raises the question of how far to go back > in glibc history. Different versions of glibc have different call stacks. > I will rethink this... One possibility is to have the options on a temp file, the previous one, then if it fails, remove the getaddrinfo line and try again, if it works, its the new glibc, test result is Ok. Add a commment stating that from circa glibc versiuon 2.36.8 the getaddrinfo isn't there anymore. - Arnaldo