Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp825213rwb; Fri, 7 Oct 2022 04:49:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DCsQuxe+p4tcUBP4FL6840cm4t0s8iLy3xaNkfBqIW6c53CSGOj/ykXOYOY5SwmykBnOs X-Received: by 2002:a05:6a00:1304:b0:555:6d3f:1223 with SMTP id j4-20020a056a00130400b005556d3f1223mr4834285pfu.60.1665143358285; Fri, 07 Oct 2022 04:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665143358; cv=none; d=google.com; s=arc-20160816; b=FfrKx7fPXDTjkarEz4exRYoR3aNIgYRtUWPbfk5M6nFaI6zEekvop8HQUy62fWuKF4 de/DWZmHedKXAZoRc2rwv/ImRRt4EaMwZpw7Lvx1d6kvFFqAg75Y6UsFh5NIOTMu+1gr UDeqQpK8AhGU3Rd81dWr0T/4V8NLnoO3YFmo9ql3mEjL8ibmYlFpeADhCHi4jh2wDZjr i5vzgy4Ca9RZHonhFwfoEpbhr0/M+aRUtGBfYIYnoGLJAddaJgmtbWkyofNschVMiaCJ giKvDt3rXjlAZng208kiuBXdKpBzcvX7J/OJFPzMHi5NuGGdwLDCWY1hfAvLDkCj1n3f Ufgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=15JGEhhoDWUatI6z/HDGXaFc99I7N2ORqpGrnndV/NY=; b=hlWxXpH/yvR/Bw0ZYrd0V2Qhj9OsfAN8J/wd/eQ88Kamebs3449N3xAQsUb4+hlhjI 7e4nazyEgmJWAA4lDs2yMfeUzi0gvFH9r2cJtC518Zl083GJifYvNo3YgbhWA0ecUOyQ pCF21rn3JJR9h35zSG7k5ncbX7xJNfn2dZgQeFXINUuOeGQxSZtPaunMPgU3SN5bzNmi hxTbMeARCgepWtBYc2y1XQ7AwUVZoHaEJqI4qWfmfFODvHBhGEN+a9hOp/G7T7SZnJGc jZV/KeApUQjtSLQtloCjd9cWBrieXkiD7s89clCumiRq1T4eA5gQTZwEGYob71/ZI7Lb 5XeQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020a63b912000000b0045a88522c02si2251399pge.692.2022.10.07.04.49.03; Fri, 07 Oct 2022 04:49:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiJGLfJ (ORCPT + 99 others); Fri, 7 Oct 2022 07:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbiJGLfD (ORCPT ); Fri, 7 Oct 2022 07:35:03 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C1DB525C66; Fri, 7 Oct 2022 04:34:54 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 888FC1063; Fri, 7 Oct 2022 04:35:00 -0700 (PDT) Received: from [192.168.99.12] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 00C143F792; Fri, 7 Oct 2022 04:34:52 -0700 (PDT) Message-ID: Date: Fri, 7 Oct 2022 12:34:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v9 02/13] perf test: Add build infra for perf test tools for CoreSight tests To: Leo Yan , Arnaldo Carvalho de Melo Cc: 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 References: <20220909152803.2317006-1-carsten.haitzler@foss.arm.com> <20220909152803.2317006-3-carsten.haitzler@foss.arm.com> Content-Language: en-US From: Carsten Haitzler Organization: Arm Ltd. In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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 On 10/6/22 13:58, Leo Yan wrote: > 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! oh sorry - indeed i didn't see this problem coming after fixing the conflicts. i've got an update of the patches that fix that. should i just send through the 2 updates patches as a v10 or the whole series?