Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp916095rwb; Thu, 6 Oct 2022 06:16:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mGCRd/HByTYA6yi5OgL1BZ3xDfUXjQ0o02x3Mbtf1M7X1AZDEG/ZNDLAmQeXaHRES2Xjg X-Received: by 2002:a05:6402:1761:b0:455:37bb:93c3 with SMTP id da1-20020a056402176100b0045537bb93c3mr4412975edb.403.1665062218042; Thu, 06 Oct 2022 06:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665062218; cv=none; d=google.com; s=arc-20160816; b=0nQOckp37xH48oQ/YDzmNCQ47rtK0Ejf62uj/MJarX/0GxvMIZRV7Vf3f3vDxQRDxR 4GaQ4Nct02c5YD2SSoAsXQDwKXWMgqQ6jfp3JJdIDddizmgvpzP0732zQWPPZ4MK51cx wB9kepayPy1q87JeoY4dBdeluHLavu8OXHr/Qcm9ZrN/i5oRkW2uiUU9P+duejE5scMx ilKie+G7GJHM5AO4w7WE9OCPIHOLhASCyJeFFkA4lNutIqMXgrklZnXGqfudfoNORZsV U9AtGzBqNV2BpTckn9xFYNHK7TWneuH2Lzubd93pb9CE2BeFjhGiFxKUaejvjbrXh0T/ UcBw== 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=xJSOslAEAhqhcHvY18RtL9xpSS+8ATuqme/3JBQe9W0=; b=cs3GJvjil1G9SthURdwM8pGMEfGeJYfpJVlOJfiJqFrCpwSPx7GAwbIPaDvZy8sRZg Qy6sZc5ZwgyXg6O2qefiPmCBkBtHf92y4JIPBL+SzjxIyi7rIEp/U8ttVos+8BMqQ8SQ HdV16ip5aCG1v7zxWkWnx8xqUksHHAJ23EiGboZbCDxsLz1hHnmhB6D9e198efaD+beA sXVCCechsXYwFFtMrMDzNMcJp8sQUDIFK/t2Hagp9RA4T1gv3EQD2w8AzLFGPVAJlJN8 5yWcB/KM1s6gj958U+nisN2I7+x33vl1403v6XCPGFgj/D9qJQ6l4/GuMPHPQY61kxwe A3XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+Z8zTYw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ck17-20020a170906c45100b0078cffd3ce3esi7606521ejb.654.2022.10.06.06.16.26; Thu, 06 Oct 2022 06:16:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+Z8zTYw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230335AbiJFM7F (ORCPT + 99 others); Thu, 6 Oct 2022 08:59:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbiJFM6w (ORCPT ); Thu, 6 Oct 2022 08:58:52 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4432F1136 for ; Thu, 6 Oct 2022 05:58:50 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id v186so1938907pfv.11 for ; Thu, 06 Oct 2022 05:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=xJSOslAEAhqhcHvY18RtL9xpSS+8ATuqme/3JBQe9W0=; b=F+Z8zTYwsQ4oA2iB1DT4HidsGFsxp4YvXcTAqz9WwmD0NNRaNIXGtHksUhgoV9vB0y 9deVf0Zz2KDK6vFpGbhDs6PTdUSYgWA72zjbjEzM91zCNhbBU+ghp9gpqKX7jfCHscda TNMNaD2vQiKoGii+KkeZObkOaU0GjL4kPPXXguNLYM3IShYiK5Lv0CtSbUinbeHeLXti dcByEQ/mQJGskHF2pokgkITFW5k+m6w+FTUhwCroS+RImfxkZ0SJVQG7AZQCgxDtKpYO hIhznAXKt4gQiNGrfQ98UnLYYAgxcxrTee1Xp2eWOPh4UiXutQV9NF252WGkYweJOT4H djgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=xJSOslAEAhqhcHvY18RtL9xpSS+8ATuqme/3JBQe9W0=; b=xlODPQwU/mLMWvXqCKHrbgpjmDVSMaqRoUuKBvvEP4LgsmHXjo3XAYrilZkCgpYYXp 8pTf/9puyA+D+auBrhmDwStTedwspRjY6X+4dMs23gnmfEfHn400eTRtlY+soh9mPRFb i6iHWUIYwZCvgJukN7CJKS7UTMUNX9+XldrfgKrpX5PTC7b1Ky8OPEXviyIl6oUPUh7S 0CBinmDaVZtU+3y1s3zOU2X+N27CtKSsSL9iyRrT1ekkH1ghIKcBRP9VOf1NjKFw7+M3 zGHSxzTCziE8MGojKIqw8L+Uz5vCk4Knmw/NJOBBTCC+tE8MML2WoPNmDJFMgylbak68 jaNw== X-Gm-Message-State: ACrzQf1bqmMEd/fpZRPRjDE8NvE5seN2tqCQYvIJek5VdeSZDA3JzO1l Iz+AzmNUxCv75/0GdPnl6YpIXg== X-Received: by 2002:a62:1791:0:b0:562:2298:b33c with SMTP id 139-20020a621791000000b005622298b33cmr4602266pfx.25.1665061129495; Thu, 06 Oct 2022 05:58:49 -0700 (PDT) Received: from leoy-yangtze.lan (211-75-219-202.hinet-ip.hinet.net. [211.75.219.202]) by smtp.gmail.com with ESMTPSA id a9-20020a170902ecc900b00178b9c997e5sm8111493plh.138.2022.10.06.05.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 05:58:48 -0700 (PDT) Date: Thu, 6 Oct 2022 20:58:42 +0800 From: Leo Yan To: Arnaldo Carvalho de Melo Cc: carsten.haitzler@foss.arm.com, Jiri Slaby , linux-kernel@vger.kernel.org, coresight@lists.linaro.org, suzuki.poulose@arm.com, mathieu.poirier@linaro.org, mike.leach@linaro.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v9 02/13] perf test: Add build infra for perf test tools for CoreSight tests Message-ID: References: <20220909152803.2317006-1-carsten.haitzler@foss.arm.com> <20220909152803.2317006-3-carsten.haitzler@foss.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, On Thu, Oct 06, 2022 at 08:45:18AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Oct 06, 2022 at 08:26:00AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Sep 09, 2022 at 04:27:52PM +0100, carsten.haitzler@foss.arm.com escreveu: > > > +all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BINDINGS) $(OTHER_PROGRAMS) tests-coresight-targets > > > > > > # Create python binding output directory if not already present > > > _dummy := $(shell [ -d '$(OUTPUT)python' ] || mkdir -p '$(OUTPUT)python') > > > @@ -1007,6 +1015,9 @@ install-tests: all install-gtk > > > $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ > > > $(INSTALL) tests/shell/lib/*.sh '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ > > > $(INSTALL) tests/shell/lib/*.py '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib' > > > + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight'; \ > > > + $(INSTALL) tests/shell/coresight/*.sh '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight' > > > + $(Q)$(MAKE) -C tests/shell/coresight install-tests > > > > Added a missing ;\ on the line installing the *.py and adjusted use -m > > 644 for the .sh files to follow what was done in: > > > > 0a9eaf616f29ca32 ("perf tools: Don't install data files with x permissions") > > > > @@ -1006,7 +1014,10 @@ install-tests: all install-gtk > > $(INSTALL) tests/shell/*.sh '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell'; \ > > $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ > > $(INSTALL) tests/shell/lib/*.sh -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ > > - $(INSTALL) tests/shell/lib/*.py -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib' > > + $(INSTALL) tests/shell/lib/*.py -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ > > + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight'; \ > > + $(INSTALL) tests/shell/coresight/*.sh -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight' > > + $(Q)$(MAKE) -C tests/shell/coresight install-tests > > > > Also had to remove: > > $(INSTALL) tests/shell/coresight/*.sh -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight' > > from this patch, as it makes install fail at this point in the patchset: Thanks a lot! James and me had found the merging conflict and planned to send out email for reminding it, the right change for above section would be: @@ -1006,7 +1014,10 @@ install-tests: all install-gtk $(INSTALL) tests/shell/*.sh '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell'; \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ $(INSTALL) tests/shell/lib/*.sh -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ - $(INSTALL) tests/shell/lib/*.py -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib' + $(INSTALL) tests/shell/lib/*.py -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight'; \ + $(INSTALL) tests/shell/coresight/*.sh '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight' + $(Q)$(MAKE) -C tests/shell/coresight install-tests It's deliberately to not add '-m 644' when install coresight test shell scripts under the folder tests/shell/coresight/ so that we can keep the executable permission for these scripts. On the other flip, we set 644 mode for the scripts under tests/shell/lib/ so these scripts will not be executed directly by perf test framework. @Carsten, if have chance could you confirm for above change? > DESCEND plugins > GEN /tmp/build/perf/python/perf.so > INSTALL trace_plugins > INSTALL binaries > INSTALL tests > install: cannot stat 'tests/shell/coresight/*.sh': No such file or directory > make[2]: *** [Makefile.perf:1007: install-tests] Error 1 > make[2]: *** Waiting for unfinished jobs.... > > I'll add it back when the first .sh gets added to tests/shell/coresight/ Sorry for introducing extra efforts for you and thanks! Leo