Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4885810imm; Fri, 18 May 2018 12:21:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrQh6dQp7k0FCiQALFOoJY4rqwKv+u+g6FJ6XaBDgQ1jzRvzVzXtbnbR9WLK47lZ1lNP+cL X-Received: by 2002:a17:902:14cb:: with SMTP id y11-v6mr10522799plg.229.1526671300620; Fri, 18 May 2018 12:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526671300; cv=none; d=google.com; s=arc-20160816; b=QN7z9SyA+h81n6Mg5gnmnn04VXYas+8gBx2VXpnbOGHuED52O3eIlq6pas9COvxf0D MUkEiD6RWdbwKMkSUbUKJKxC8KpUsq7n3NQrAoCCRC9pLGRKJxfaee/fixqdA7C6BrzA mmoVPMKpFEGAP/HLgoD7UCQNgJ9vOLQEVuCIEdQIjGuCj6hlPWdvT+5Xws8RpUDRx+lB LjlAam4vVAdeuWlZ1T/rVfj78AKCIiuktr43FML0zTfjcpDpAM52OR6eFz5tOP14lkqu 3Un6Qxx2HBZBQzuEYjUxzHNLvBuvFGcjj01vyDdIkeGzYedYvCBdZSEx9X2dbwZXK2ml jWeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=nOQQn03Mg6R1MM/CT5YRRKD8x538/U3Oj+G31UbaqrM=; b=PPzn5TRiDcFeZvsVieZ9oK5wH788n1DLJPI3kMR0jQU6/fBWLG83h68xqqulstukJk Almxl1yZZ6XtvjAy8Tkw8Tp424R3H8G86EXFtav0qqjgp85GsCaNTq2ZbBIbyRDL083+ YbDwRttAFm+5wzhwWAQiNORqruOk6GpBGstfh5TsKCzVTHwrmsVypd+CXJIEoGWJQQgE oSc5pnRaumjBeFIsmnvlUM6lD9Hbm+GbUTBuxKJfet9sxzPVFaHU63YUdecnldLT7qUS XS+OPSH8o4aDL4oavvvBkMVgEeoE21CdDdEYKYWBAgouCnc7kHHnS0/bbloWZihKDkNg 9bdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yvUWxgDW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11-v6si8883278pfm.330.2018.05.18.12.21.25; Fri, 18 May 2018 12:21:40 -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=yvUWxgDW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751906AbeERTVJ (ORCPT + 99 others); Fri, 18 May 2018 15:21:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:56400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751117AbeERTVG (ORCPT ); Fri, 18 May 2018 15:21:06 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (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 B3F1120857; Fri, 18 May 2018 19:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526671265; bh=iO7MPIggO0Y/t7Qp564A5rZ+vdkV3+BPb0d/HsA/VxU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yvUWxgDWkiiRZ6HhNTWll8rIJRxS3qODxmd9avkowwF5/J067pkM8rGaDlfj3kNj7 q3m6m1k4azxPbkn9vTnBWN1WcC4FWt/aHa4Che0kspoJ8ldw/3lrP7OQBL3IiY9fNn 0lNJS9bidElL0OoewpRvpWxqfgghYAN8BnnQ18Is= Received: by jouet.infradead.org (Postfix, from userid 1000) id 5CE57145293; Fri, 18 May 2018 16:21:02 -0300 (-03) Date: Fri, 18 May 2018 16:21:02 -0300 From: Arnaldo Carvalho de Melo To: Sandipan Das Cc: jolsa@redhat.com, linux-kernel@vger.kernel.org, ravi.bangoria@linux.ibm.com, naveen.n.rao@linux.vnet.ibm.com, tmricht@linux.ibm.com Subject: Re: [PATCH] perf tests: Fix regex for record+probe_libc_inet_pton.sh Message-ID: <20180518192102.GB5001@kernel.org> References: <20180518072417.1498-1-sandipan@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180518072417.1498-1-sandipan@linux.vnet.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, May 18, 2018 at 12:54:17PM +0530, Sandipan Das escreveu: > This test currently fails because the regular expressions for > matching the output of perf script do not consider the symbol > offsets to be part of the output. > > The symbol offsets are seen because of the default behaviour > introduced by commit 4140d2ea74b3 ("perf script: Show symbol > offsets by default"). > > Before applying this patch: > > # perf test -v "probe libc's inet_pton & backtrace it with ping" > > 62: probe libc's inet_pton & backtrace it with ping : > --- start --- > test child forked, pid 30389 > ping 30406 [002] 307144.280983: probe_libc:inet_pton: (7f4117adf220) > 7f4117adf220 __GI___inet_pton+0x0 (/usr/lib64/libc-2.25.so) > FAIL: expected backtrace entry 1 ".*inet_pton[[:space:]]\(/usr/lib64/libc-2.25.so|inlined\)$" got "7f4117adf220 __GI___inet_pton+0x0 (/usr/lib64/libc-2.25.so)" > test child finished with -1 > ---- end ---- > probe libc's inet_pton & backtrace it with ping: FAILED! > > After applying this patch: > > # perf test -v "probe libc's inet_pton & backtrace it with ping" > > 62: probe libc's inet_pton & backtrace it with ping : > --- start --- > test child forked, pid 30539 > ping 30556 [003] 307254.313217: probe_libc:inet_pton: (7fe19ab10220) > 7fe19ab10220 __GI___inet_pton+0x0 (/usr/lib64/libc-2.25.so) > 7fe19aad5ebd getaddrinfo+0x11d (/usr/lib64/libc-2.25.so) > 56351e3c1c71 main+0x891 (/usr/bin/ping) > test child finished with 0 > ---- end ---- > probe libc's inet_pton & backtrace it with ping: Ok Here it went from failing with: [root@seventh ~]# perf test -v pton 64: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 22590 ping 22607 [001] 12782.425689: probe_libc:inet_pton: (7f8686da4e40) 7f8686da4e40 __GI___inet_pton+0x0 (/usr/lib64/libc-2.26.so) FAIL: expected backtrace entry 1 ".*inet_pton[[:space:]]\(/usr/lib64/libc-2.26.so|inlined\)$" got "7f8686da4e40 __GI___inet_pton+0x0 (/usr/lib64/libc-2.26.so)" test child finished with -1 ---- end ---- probe libc's inet_pton & backtrace it with ping: FAILED! [root@seventh ~]# To failing with: [root@seventh ~]# perf test -v pton 64: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 28954 ping 28971 [002] 14277.711200: probe_libc:inet_pton: (7fc9d66e3e40) 7fc9d66e3e40 __GI___inet_pton+0x0 (/usr/lib64/libc-2.26.so) 7fc9d66b02b4 getaddrinfo+0x124 (/usr/lib64/libc-2.26.so) 56075cb98f40 [unknown] (/usr/bin/ping) FAIL: expected backtrace entry 3 ".*\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" got "56075cb98f40 [unknown] (/usr/bin/ping)" test child finished with -1 ---- end ---- probe libc's inet_pton & backtrace it with ping: FAILED! [root@seventh ~]# Trying to figure this out... - Arnaldo