Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1122081rwb; Thu, 6 Oct 2022 08:41:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78cLZmWHvPcic0UtDUvM8BJAxh3AAh1p07+rrE8lvD1nBCMkOEnzjyLjkKel7nRWOm/cqy X-Received: by 2002:a17:907:60c7:b0:78c:b9e8:89b8 with SMTP id hv7-20020a17090760c700b0078cb9e889b8mr354467ejc.439.1665070912184; Thu, 06 Oct 2022 08:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665070912; cv=none; d=google.com; s=arc-20160816; b=BDb543XPFSgSNPKYa0KHq7iC7ooJsAG3EeKeALCNjLLRsoomUseKb6sSeJDcPOrjcK UpIEXnDXfvf0dmJZ9d2s7Rs98bwdFVbcuWN5POsD0eLkImvh4opfbrBE3VBVPgIyPTr7 h13gLsECz+K4EKPYZLtxivkXSyN6DxynGI5zkY/WiK3Y3oPy4pu/06zuXECrvtLx9fyk USlHwAqZhHOJRpmD/UCxmGg6FS7BmVctf3CbweoUOkuhtM2o84niZch/p37jSwykKxF5 BeEhcwnhKgzdLxSQWJxwBi7ksy2hMvvaiPIsbs5n/epiKGD1K1CaFBC7C1IfhGs4IgB+ SoOQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XtvtZz1yUgqHiAj7O8HtuSAPvSYvhkK7EoWWsgh0ZUE=; b=JZ5h2RftGLdl0GFzCzWdrDTQlZ+rSSV+TonHoI/M6YP6Q+RodRYm0awv1zDFS6Z8pD 0ew/Z75ef8WZs//uXuhNQAfxu/03WcAWqcrVpPFmfssb0lygz7nVbVP8l7jaGtbDHgw/ PtPZHotWT8nlukFymkqqcPoya+hVWjv1EK8TVilp5sc6azmXt1L4GSZ/C/UjCRbRXOoj Rj7o+az6kyl5couqG5ZvyUw4en8FcPfG+2jWTIpnZcOlsOyZGmAdN5JmCVWPSmdyBGJ/ 63mTy8BBm7B+B82waFaca02OVKBD0rbwZ/rBSPwaZQ5drvi48bZORDf4iNEMnnxGHpme uRqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zdVppy7U; 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 nd38-20020a17090762a600b00787f13c332esi22203446ejc.799.2022.10.06.08.41.25; Thu, 06 Oct 2022 08:41:52 -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=zdVppy7U; 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 S230171AbiJFPHn (ORCPT + 99 others); Thu, 6 Oct 2022 11:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231859AbiJFPHb (ORCPT ); Thu, 6 Oct 2022 11:07:31 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 125CCB3B31 for ; Thu, 6 Oct 2022 08:07:28 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id t10-20020a17090a4e4a00b0020af4bcae10so2004633pjl.3 for ; Thu, 06 Oct 2022 08:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date; bh=XtvtZz1yUgqHiAj7O8HtuSAPvSYvhkK7EoWWsgh0ZUE=; b=zdVppy7U8tcJQ88OlDFFKdVJQzkbfHRxI85A7ctKKxwBvnxVy9mg/m4HcggmyZHIXk s1I9tV16Q69fNBCaOlYvpWtgc+kjeclkInb7qXf0PyY0DQVckXA/b9gdlJ7GrKVUMmdS oyhehdBQXoTNt900f2O28IPX3vsJ4VFayrGR3SV1MNqnNK8Yiq3dV7K6DrcDZrJI/I9G 35dbQdFi63TP4lYUVqhhOkMkrAEfj0uxJXV47n/Sj5zb/GFsCgDgZIFDuggDGzgmT0j4 Vw2XkdmFuU0j/0bBAzw98P5WnzmqcHCW2TrdGLXzwHJBmDP3v0x2rxvneHvOyEdnGsb5 cOuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=XtvtZz1yUgqHiAj7O8HtuSAPvSYvhkK7EoWWsgh0ZUE=; b=jXkXCfkx3RDJFtAQr5z7OaYUkuVewVYrPqptKgfWThsEvSBlbMdV4GuwR76eEeaFtP g5fCTSFBBOYevrxK1h8J7LzhXqNRTQyShchM1ld2sQl5pAWdKTI6qzqgphP/Q2YonFvO 5JclJxRs7kYB+pLLoVlaEU9JMqaZLdd/H1jfqFkJPAyf5aV6SLVoQx9hVVnV0kIFf1RF POUngblrQDqV9B7t3lJ9vutImAWfqA26MvPfNDEuIXbrRQ6dN2OnC/k1iRlkfbh3ZzX8 cX5rPH69r/RMGFaPAHKFC6LxLxk0AX2QK+hsVjBog2VryPayCfq8LbMx6DUNXxRpuT41 0tjQ== X-Gm-Message-State: ACrzQf1FWls2f9fRYVAMsmCwnQIsjtc94Zpw1eSDz+moovbpYhB0zU/h WPdZiRAypBPq+bBUKaooODOo9g== X-Received: by 2002:a17:90b:4acf:b0:202:65e3:da5a with SMTP id mh15-20020a17090b4acf00b0020265e3da5amr10929521pjb.174.1665068847275; Thu, 06 Oct 2022 08:07:27 -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 ik8-20020a170902ab0800b001730a1af0fbsm3366287plb.23.2022.10.06.08.07.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 08:07:26 -0700 (PDT) Date: Thu, 6 Oct 2022 23:07:19 +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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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=unavailable 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 On Thu, Oct 06, 2022 at 11:22:13AM -0300, Arnaldo Carvalho de Melo wrote: [...] > > @@ -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? > > If you need for some .sh, coresight test's to have x set while all of > the others don't have, and you have a good reason for that, ok, we just > add a comment. Simply to say, all lib scripts are not needed for execute permission. Yes, it's good to add a comment for the installation steps. > > > 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! > > This also has to go, I'll check and fix this loop that doesn't follow > the existing output style, happens with ´make install', etc too: > > ⬢[acme@toolbox perf]$ make -C tools/perf clean > make: Entering directory '/var/home/acme/git/perf/tools/perf' > CLEAN x86 > CLEAN libtraceevent > CLEAN libapi > CLEAN libbpf > CLEAN libsubcmd > CLEAN libperf > CLEAN fixdep > CLEAN feature-detect > CLEAN python > CLEAN bpf-skel > make -C asm_pure_loop clean >/dev/null <------------------- > make -C memcpy_thread clean >/dev/null <------------------- > make -C thread_loop clean >/dev/null <------------------- > make -C unroll_loop_thread clean >/dev/null <------------------- Ouch, if we can update the file tests/shell/coresight/Makefile as below: $(CLEANDIRS): $(call QUIET_CLEAN, test-$(@:clean-%=%)) $(Q)$(MAKE) -C $(@:clean-%=%) clean >/dev/null Then we can get output as: # make clean CLEAN arm64 CLEAN libtraceevent CLEAN libapi CLEAN libbpf CLEAN libsubcmd CLEAN libperf CLEAN fixdep CLEAN feature-detect CLEAN python CLEAN bpf-skel CLEAN test-asm_pure_loop CLEAN test-memcpy_thread CLEAN test-thread_loop CLEAN test-unroll_loop_thread CLEAN core-objs CLEAN core-progs CLEAN core-gen CLEAN Documentation Sorry for inconvenience. Thanks, Leo