Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3472715imm; Mon, 13 Aug 2018 12:18:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwKnO1t8wb88oD2msrhJsDpbPZPjEUzV6qX4bv9uNismohl2xV+OHyFAfgB4WmcM1PTZ7QY X-Received: by 2002:a63:64c2:: with SMTP id y185-v6mr18207031pgb.126.1534187900143; Mon, 13 Aug 2018 12:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534187900; cv=none; d=google.com; s=arc-20160816; b=Cn3LcHvdKdE+cBJXRmCe8K5K2J9/OaBQ0VE1nfJFQSdA+r5drzMkfy2oM0Z0AEAlLF rztTFHxG3FsHgnxhQDPBkzEp4zznigNBmWEPAQDAu2MIHui8TBvzBSyTaXA3KlYXP+8e VLj9SCnMjVWBJoeDJisfNBwJlkFfjEYOk0+Kvllm9zNSrVUy2+Z1bzRxW6p0gt8iJBMM nvl++Sy20KoVnn8NSgTG2fYKiz4Omm+YIAEyso2n7e2gb+mDyQwAPJkBfEiRLybXu1Wn GaB0c8uWvfJfgHwz6m790V4xkkekN3oN5vQYuJDY+AIPfufF9kLu8Qjy5qn2EB/1VU3S jRxg== 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=7Vym/ct/wz21o4AFo6S1caSWT+3HbK0tMvbvHgVEXDU=; b=WGsMCMdDL720qqGl+vSMhvbiC3lDQTeQOmEa2AyEUPG4WPZsPYRfdvy6Tm6udTfwod 9djEJRWfrV2dTTzTRnLSZKrkzxnLK5FzwDOGtdFF69Pwva87olCyN+xPE4ORFfW1vwvl VJIJ7GVzb3GpwclIxijnPHDTPcYNAo/TDPXS2THtyBpdqBvNPuVw44V9ElR4FeqmGnJ0 2ILRytqsxZ8k7VN+D4X3wsWsjDgq0ck3YCEPoDJCHH7m7RNADlX0KnurTjeMslqg/rSJ FsUq/SICi0q/Kw0pcFWdsTUNGRmw5e0gE953qqX1vIsakgV6Qgl35Q9z2cQplwPBw9Q2 piVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ntxq0Tz3; 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 p1-v6si19978298pfb.280.2018.08.13.12.18.04; Mon, 13 Aug 2018 12:18:20 -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=ntxq0Tz3; 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 S1730460AbeHMVmV (ORCPT + 99 others); Mon, 13 Aug 2018 17:42:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:50608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729241AbeHMVmV (ORCPT ); Mon, 13 Aug 2018 17:42:21 -0400 Received: from jouet.infradead.org (unknown [190.15.121.82]) (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 B10E7215A5; Mon, 13 Aug 2018 18:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534186732; bh=LU6sth4Gn1VmM72851mWGjiUsLAZ4FokH1PPSe8dnRo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ntxq0Tz3T964I0Tner8JlWIh3c4IONG8wcoRltiqFhsjMClsyYpzbZ6+dxGeGp81K 0iEQ4ijuq25Fa9kKwSa1AQuNWSbtKxCKxo8QdWgbyAH1cgZuRwFnoAX5ybWUQo3FIR Qn4LeaK/i53TFUcTtEYtuBaSBIMwhHZ7Qj7hiFMY= Received: by jouet.infradead.org (Postfix, from userid 1000) id 3576D140A1C; Mon, 13 Aug 2018 15:58:50 -0300 (-03) Date: Mon, 13 Aug 2018 15:58:50 -0300 From: Arnaldo Carvalho de Melo To: Alexander Kapshuk Cc: Jiri Olsa , jolsa@kernel.org, mingo@kernel.org, namhyung@kernel.org, David Ahern , alexander.shishkin@linux.intel.com, a.p.zijlstra@chello.nl, linux-kernel Subject: Re: [PATCH] perf tools: Fix check-headers.sh AND list path of execution Message-ID: <20180813185850.GC4499@kernel.org> References: <20180723070145.GB7523@krava> <20180811083915.17471-1-alexander.kapshuk@gmail.com> <20180813111631.GA718@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Aug 13, 2018 at 02:19:10PM +0300, Alexander Kapshuk escreveu: > On Mon, Aug 13, 2018 at 2:16 PM Jiri Olsa wrote: > > > > On Sat, Aug 11, 2018 at 11:39:15AM +0300, Alexander Kapshuk wrote: > > > The '||' path of execution in the 'test' block of the check_2() function > > > may also be taken if file2 does not exist, in which case the warning > > > message about the ABI headers being different would still be printed > > > where it should not be. See below. > > > > > > % file1=file1; file2=file2 > > > % cmd="echo diff $file1 $file2" > > > % test -f $file2 && > > > eval $cmd || echo "Warning: Kernel ABI header at 'tools/$file1' > > > differs from latest version at '$file2'" >&2 > > > Warning: Kernel ABI header at 'tools/file1' differs from latest > > > version at 'file2' > > > > > > The proposed patch converts the code following the '&&' operator into a > > > compound list to be executed in the current process environment only if > > > file2 does exist. Should the files being compared differ, a diff command > > > to compare the files concerned is printed on standard output. E.g. > > > > > > diff -u tools/arch/x86/lib/memcpy_64.S arch/x86/lib/memcpy_64.S > > > > > > Signed-off-by: Alexander Kapshuk > > > > I posted follow up patches based on this one > > as a reply on this patch > > > > for this one: > > > > Acked-by: Jiri Olsa > > > > thanks, > > jirka > > Noted. > Thanks. Thanks, applied the three patches to acme/perf/core. - Arnaldo