Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2445089pxu; Sat, 28 Nov 2020 14:25:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuMWkE6G+qKT+mF1pasounKDT0Kw3JDq/QtRKaDxwxINE1haTz+a+ES/5318cm1OauGU8V X-Received: by 2002:aa7:d717:: with SMTP id t23mr14488157edq.286.1606602307172; Sat, 28 Nov 2020 14:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606602307; cv=none; d=google.com; s=arc-20160816; b=v4ZZ3H7akHeGThl7tQEAXwU/FMhWErrW6y04UiMT/5DW3lDKbbstdAoOZ1EG8egfAH m1Ld33zb3h6AW+HVLdVWbUl1GALQEAHXHa5JQdKTnZkFsbQZIKNL6Rj1JZqrdko62VE9 9Y2pyc8eK7LcmLKCNqTpE1O1AlVpmLNdG+sSN4t5Pg/tSeTvxsWxOwPMx9KJw75vhs/B Pt57wCDhFxDxvBAT6Vr6NQFkEEDtiEEGp5Gffm74y4CatUwK9IWzFFsCrLBDKHeYeDnj d+kdiEBtS+ye0Z6h9qLaoHbfk5vvKJBsoz9E6sMNBGPvqqjYFdn3EMXi0oPEFC+fpX9s KEfg== 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=5gA9oQYSyBT4Z0vJhRDeAJKF5kHu/LWhQyfFb1ooOvQ=; b=yKX2zP+oglqOdc1kF2xenCNWToAdg26TEoGQy4587j2lUHrZHDoR8177FHzgCrp4fR SwFDQlgsH9tTavVUCRINurTwcIG38bUqSex9kpuJH2Xq4NZkCNyT6SyNL/sq8tWnZsA3 4p7X47dZaqWNVIHJAxH1KTW+vM7B+2xgUaGBtlwkixW7vMbF9jec0Ho3wqgdYuq/h+Oh 04TkCWn4VNGlE14f55qgr91ic94Yrtl2k7TwIvBVVOzOmme1JOfBp7lGBO1pyGia68Zp ZQxQwvqi9VnQKaLMCt6ZgqLV0z8H8oTBB9C9QzKvrqjKkj3Rs5Wv/hTi5rYVw6T1BSUu Mgjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UzBGcVRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si4684578ejk.9.2020.11.28.14.24.44; Sat, 28 Nov 2020 14:25:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UzBGcVRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729667AbgK1VtW (ORCPT + 99 others); Sat, 28 Nov 2020 16:49:22 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:38026 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727455AbgK0Tp7 (ORCPT ); Fri, 27 Nov 2020 14:45:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606506349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5gA9oQYSyBT4Z0vJhRDeAJKF5kHu/LWhQyfFb1ooOvQ=; b=UzBGcVRF/atUJ5X3W1838AP1FQTJfw1+BMYQDY/1ngYHdndq92Ryz6B/gYEndA0g0+Bfmu fDyHuz6zpoXv/PW5NqNuSCAuUWTpfv/BpGPf1qLRTszqiSXqUFYgsIILuZ3ZjJXdARrafv 4gKvwSJOF5hrCX6TiFbaE0H5+NtlgKQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-98-5Rvl11ApMEKCsSqgButfqw-1; Fri, 27 Nov 2020 14:45:45 -0500 X-MC-Unique: 5Rvl11ApMEKCsSqgButfqw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 349E01005D50; Fri, 27 Nov 2020 19:45:43 +0000 (UTC) Received: from krava (unknown [10.40.194.2]) by smtp.corp.redhat.com (Postfix) with SMTP id EE7DB60BD9; Fri, 27 Nov 2020 19:45:39 +0000 (UTC) Date: Fri, 27 Nov 2020 20:45:39 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Song Liu , Ian Rogers , Stephane Eranian , Alexey Budankov , Andi Kleen , Adrian Hunter Subject: Re: [PATCH 09/25] perf tools: Add support to read build id from compressed elf Message-ID: <20201127194539.GA2788968@krava> References: <20201126170026.2619053-1-jolsa@kernel.org> <20201126170026.2619053-10-jolsa@kernel.org> <20201126174620.GA70905@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201126174620.GA70905@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 26, 2020 at 02:46:20PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Nov 26, 2020 at 06:00:10PM +0100, Jiri Olsa escreveu: > > Adding support to decompress file before reading build id. > > > > Adding filename__read_build_id and change its current > > versions to read_build_id. > > > > Shutting down stderr output of perf list in the shell test: > > 82: Check open filename arg using perf trace + vfs_getname : Ok > > > > because with decompression code in the place we the > > filename__read_build_id function is more verbose in case > > of error and the test did not account for that. > > There are two patches here, right? Also the test output shows it after, > before is missing, showing what the test wasn't accounting for. hum, I'm not sure I understand, the test fails because the change introduced more terminal output, so I think it needs to be together > > - Arnaldo > > > Signed-off-by: Jiri Olsa > > --- > > .../tests/shell/trace+probe_vfs_getname.sh | 2 +- > > tools/perf/util/symbol-elf.c | 37 ++++++++++++++++++- > > 2 files changed, 36 insertions(+), 3 deletions(-) > > > > diff --git a/tools/perf/tests/shell/trace+probe_vfs_getname.sh b/tools/perf/tests/shell/trace+probe_vfs_getname.sh > > index 11cc2af13f2b..3660fcc02fef 100755 > > --- a/tools/perf/tests/shell/trace+probe_vfs_getname.sh > > +++ b/tools/perf/tests/shell/trace+probe_vfs_getname.sh > > @@ -20,7 +20,7 @@ skip_if_no_perf_trace || exit 2 > > file=$(mktemp /tmp/temporary_file.XXXXX) > > > > trace_open_vfs_getname() { > > - evts=$(echo $(perf list syscalls:sys_enter_open* 2>&1 | egrep 'open(at)? ' | sed -r 's/.*sys_enter_([a-z]+) +\[.*$/\1/') | sed 's/ /,/') > > + evts=$(echo $(perf list syscalls:sys_enter_open* >&1 2>/dev/nul | egrep 'open(at)? ' | sed -r 's/.*sys_enter_([a-z]+) +\[.*$/\1/') | sed 's/ /,/') and one extra 'l' missing in /dev/nul ;-) also perhaps the >&1 is superfluous jirka