Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp160401imm; Tue, 14 Aug 2018 16:12:45 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzK9f7mkd6B3yZftFxOhczePcqP015AC9iH5+hSgXUgKBWQmSZCVlQGF4Vn3AU4A49JtiQh X-Received: by 2002:a63:89c7:: with SMTP id v190-v6mr22388123pgd.194.1534288365424; Tue, 14 Aug 2018 16:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534288365; cv=none; d=google.com; s=arc-20160816; b=YXMHw0VAl+pXVlB+aYZV27T2COw4cnWs54gYXF0WrBL5q/N0NyG5j6uJ8mL5Kt82kE 8kTffBP6pGiZwRYy7WLCjc1qvCT3rUZYNTujWrdQEWPMHxrIYfZ5KHG8cI0P80yaIctw cAAcU5MBOnUceTJdhPLdN8D8QYzSsBGz/zyVRlzWZ8rXVprmTOEDbjJworP/iEA28zyh MmMKXK4lgQSjTy346egDk4KWv5oJ1hAiPfWSnyUEVqFoSkNlBjXXC6RTcYJXHaHaPVtD QDPxPRg+n+d2vxLKcsAt/klY9xbYK9HYEGMeV1T1zCquGvhBIBV3ev2TASBYlMBmwon3 h1Hg== 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:arc-authentication-results; bh=fTzCHx+BTyyNlDLeBSBaLnKyozbh03BQHX5JwKVEA9k=; b=STI3mP4J5jf1Y0Z6huv/HKsGl5eSyI+jSPfipWI8tcU9GmLK68f30GhL9lbFQ6/xGg XMpZuZY7hB+14nxCTV4YidD+oEMTFlVSaUU2mdgySVqe0RTYI0MbgkVByvvq4IlsHt+W v5SRX+MUYeNjRO5u1aIHLoB6HdpTJRX9pVIZRcG7jCbqVN/9wc06NJ7etVEAtFE39NbJ Jo3xap2DmYwPhUS/RF2kIjGkvk50W/oPxF88I9Jk5NEWmVsExKK34yR5rFVsPsKbmzMD OOVlXxRiusktLy3LJx/NZU9Ekb0zC35fRzAQV5b7gpQmp09Rh0ZYNFcukHt0+0mwI7OY yJhA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 42-v6si21464531plf.488.2018.08.14.16.12.30; Tue, 14 Aug 2018 16:12:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732565AbeHOCAu (ORCPT + 99 others); Tue, 14 Aug 2018 22:00:50 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59392 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732521AbeHOCAt (ORCPT ); Tue, 14 Aug 2018 22:00:49 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A4D3D40216E8; Tue, 14 Aug 2018 23:11:23 +0000 (UTC) Received: from krava (ovpn-204-18.brq.redhat.com [10.40.204.18]) by smtp.corp.redhat.com (Postfix) with SMTP id 243A8178BC; Tue, 14 Aug 2018 23:11:20 +0000 (UTC) Date: Wed, 15 Aug 2018 01:11:20 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Michael Ellerman , Jiri Olsa , Ingo Molnar , Peter Zijlstra , namhyung@kernel.org, dsahern@gmail.com, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, alexander.kapshuk@gmail.com Subject: Re: [PATCH 1/2] perf tools: Make check-headers.sh check based on kernel dir Message-ID: <20180814231120.GB3180@krava> References: <20180811083915.17471-1-alexander.kapshuk@gmail.com> <20180813111504.3568-1-jolsa@kernel.org> <87mutplnwk.fsf@concordia.ellerman.id.au> <20180814072726.GA13931@krava> <20180814180644.GA24338@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180814180644.GA24338@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 14 Aug 2018 23:11:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 14 Aug 2018 23:11:23 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 14, 2018 at 03:06:44PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Aug 14, 2018 at 09:27:26AM +0200, Jiri Olsa escreveu: > > On Tue, Aug 14, 2018 at 11:47:39AM +1000, Michael Ellerman wrote: > > > Jiri Olsa writes: > > > > diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh > > > > index ea48aa6f8d19..9d466e853aec 100755 > > > > --- a/tools/perf/check-headers.sh > > > > +++ b/tools/perf/check-headers.sh > > > > @@ -88,6 +88,8 @@ check () { > > > > # differences. > > > > test -d ../../include || exit 0 > > > > > > > > +pushd ../.. > /dev/null > > > > + > > > > # simple diff check > > > > for i in $HEADERS; do > > > > check $i -B > > > > > > This breaks the build when sh is not bash: > > > > > > ./check-headers.sh: 91: ./check-headers.sh: pushd: not found > > > ./check-headers.sh: 107: ./check-headers.sh: popd: not found > > > Makefile.perf:205: recipe for target 'sub-make' failed > > > > sry.. Arnaldo, would you change it for simple cd (attached below) > > or should I send the fix? > > Nah, I'm folding this in, to keep it bisectable. any chance one of your docker tests could run build in sh/zsh? ;-) thanks, jirka