Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1044248rwb; Thu, 6 Oct 2022 07:50:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6uNVEz0nT3IiZwYh3Vs7NwboJIpIR1RJxEV7sZpoLZrP+eHXWULlSIjnAHtfeSLcqgthWy X-Received: by 2002:a17:906:cc12:b0:78d:2b54:9e80 with SMTP id ml18-20020a170906cc1200b0078d2b549e80mr213063ejb.144.1665067816440; Thu, 06 Oct 2022 07:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665067816; cv=none; d=google.com; s=arc-20160816; b=DjBdXsT0kbB6W4guS3EAKEr2u00D6GrqL/f5s67GGIXiS9qsGR8z9r8Kla9R8z72Un MGRHWxaB10qmV1I58HGwfQKpfNXPhAkS6J/qW2RLVpDOVucdmh2uLL35DCpkH/L65PZN KJHYmWsl2pBYpq77Sr/UwrrX3362G2ZVESYbb0ZHsb7AZnf/xi9HOhQFZMMxiH8ViXpz vOvD9rFM9HRzhQvMEVsdz/c5I201gHNZe2QbQp+s1ciV7f7JQdSIBsOtxFUsJ+jH+KH3 +UvdQJD6Rvp+Tj3dHullJhROWyWkvyzZLPI/EvJAr0lkJJUQMzmqX3Rqk6i9z2oW8qo6 zR0A== 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=8WMnzB7oMOhNgfQmXr5QIBR38xErh3EDeanZr6bAJsc=; b=weqLRju4jCjpyIqjZWwzVXXyBGcrc9FRGKL/mpW3L9Gzk24zt6XNLPU7u3C/rs2U52 jmKP57z/9Z0TWDdy59bUibOZQbgXSExXew1dprcXu8U0+wSYqFr9PR+hM5/twOU2ky4/ EZPlmrVQ2xukga+ykiVD3t7NilGoZ1JinwOuGPvWmjQ/l+TZD8GyzGeb8YOso6g32CBP U/Z3IP0I4oIsqD2alLd77+XKIuDEXefkKL3QIHh7GnyNQTA0tsyIFehO7j3qt1K+p1eQ PrVnbw/v1x+rZ7nBrfBWkpR4LRpuWRO57TwKtWg1oeSmok1ZoYjFxilDQDTsGhC6LrUj 8yWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jSh2egTU; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg2-20020a1709072cc200b00787c0e9818csi15501187ejc.568.2022.10.06.07.49.44; Thu, 06 Oct 2022 07:50:16 -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=@kernel.org header.s=k20201202 header.b=jSh2egTU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbiJFOWZ (ORCPT + 99 others); Thu, 6 Oct 2022 10:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbiJFOWT (ORCPT ); Thu, 6 Oct 2022 10:22:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C92426C9; Thu, 6 Oct 2022 07:22:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 02F24619C9; Thu, 6 Oct 2022 14:22:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1272AC433C1; Thu, 6 Oct 2022 14:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665066136; bh=BM5uURa+DGhvIFtUX3xR5G28+0xFbKPQcDjpjq4DcdY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jSh2egTUaInEQ0WGVxYALOrCj/bgkJASHRsnOKSMU+yVtVKnBaz/WY8tz/+V9JkMU G4gO7MfNXi+sk98mtB5XqjY1tl0Erso1eGqwSO/I0XEucLpqf2ADDiKF0kNSUz1fOf +FdxGntrNKobNNt2ZfpvTwUHrNAv1WEvHko6ovksnkH7qyxT493WpMQ6Gj/HPIJqMv 0CzddkvK/C2j7xKPUGgWa8igN1LmvRfJVPT8JWYHg3IFtsb3TYCz4GMZVLHl0F32Bm htmuuCLyisCR5jjhFLFzPifUd9yxzIzpNtL3vLXgXzDV1jE/ZZ83Xmw4kUZTWfsp+9 rC7cXG04ZRI+A== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 686E84062C; Thu, 6 Oct 2022 11:22:13 -0300 (-03) Date: Thu, 6 Oct 2022 11:22:13 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan 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-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Em Thu, Oct 06, 2022 at 08:58:42PM +0800, Leo Yan escreveu: > 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: Not at this patch, in this patch there are no tests/shell/coresight/*.sh which makes 'make install' to fail _at this point_, for bisectability we can't just test at the end of the patchkit. > @@ -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. > > 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 <------------------- CLEAN core-objs CLEAN core-progs CLEAN core-gen CLEAN Documentation make: Leaving directory '/var/home/acme/git/perf/tools/perf' ⬢[acme@toolbox perf]$