Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp612081imm; Wed, 15 Aug 2018 03:03:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxn5xSHNzNpaEPF+CgZS+XRScAQ0d4gZiipotglF+kVD6wJJx7rhOeMSFuyGryUqPPZhsjQ X-Received: by 2002:a63:9902:: with SMTP id d2-v6mr24549713pge.343.1534327439026; Wed, 15 Aug 2018 03:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534327438; cv=none; d=google.com; s=arc-20160816; b=aiU3B6pnqiFjFN4Ij2zrxuzrDLiUIfnO+WQ6jGtr8blnVTfw9kwpNIP8tDvNSW4YHZ 5BRMIJi6rBoozpsmlr4G52x/UNmXGc4u40eI7rl3Su4zceta3rfiwzvbGzHDjXy7MYce tQk/0RFAPDtmqHaI/gWWug5GKXqSZI8SD4E7iC8XPJXdgN5B/EUHz4VlrpbbUz27JGrz Umrn/R010OtxBiVPWWIz9GXWt5tYDOt/Ivek0VR1ryiz0AYwPqeOwx6cLJO6feIQ4yft PFr+vvRtIVKzba9XChQjCAZBixJ7iva2xfar6SdEXkJNCIsT/un+tMMnA7Vy2vTyJRb5 80xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=ZcVHo8iwj7CY5b9ZD958Np1yP3CTTMxQ5K35m29z5z0=; b=b5TDBTZIbftnhDZdDHiXCAxo2lUfuKL6e8sDA6wwZcbc2lUm/g2w9esrvypTxNcW8H Qm+U2N0X0RXh0xP1Q3eti5yi7H2enDBoUCpGoyirYwtMrvBEmW3BA1D6zct3+cKOF3gl ZcF3YmsUiTFplJswhykB0SnQD/BrgeMFvCmY6ZFVpLBd5BCBDWlIfUHRqB5E3XfNSGRZ AHrfOwzeT/gMNaEvneOoFhcNgJyoh3Ohc25egIfFXgeeqUVRjygxoitToeqQySj5Zea2 bP4MCAVVRCIgaTPoR6uq9qFUcBFFjm2jkEJWDxxIZNFCvlS9VF/680fDhq9Ym7iHW5q1 mRPg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c83-v6si26154632pfk.361.2018.08.15.03.03.44; Wed, 15 Aug 2018 03:03:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728957AbeHOMy0 (ORCPT + 99 others); Wed, 15 Aug 2018 08:54:26 -0400 Received: from ozlabs.org ([203.11.71.1]:38777 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbeHOMy0 (ORCPT ); Wed, 15 Aug 2018 08:54:26 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41r4lZ6wB5z9s4c; Wed, 15 Aug 2018 20:02:50 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Jiri Olsa , Arnaldo Carvalho de Melo Cc: 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 In-Reply-To: <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> <20180814231120.GB3180@krava> Date: Wed, 15 Aug 2018 20:02:48 +1000 Message-ID: <87wossaqwn.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jiri Olsa writes: > 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? ;-) Just using an Ubuntu image, where /bin/sh == dash should work, that's how I hit it. cheers