Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11692273rwd; Thu, 22 Jun 2023 17:34:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5g93kLfZGHtOqqM7QODn8VEc+oemrksYFQ8taoO7EyQ68FcQWJlr0BUKo0CtBBCfNhGg/l X-Received: by 2002:a17:90a:70cf:b0:25e:8fd9:8dc with SMTP id a15-20020a17090a70cf00b0025e8fd908dcmr8557712pjm.42.1687480457826; Thu, 22 Jun 2023 17:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687480457; cv=none; d=google.com; s=arc-20160816; b=kyyAO28BHpFrtImT6d3NMvNmWCdZEx+u3+gCIAG6HAfcxINuabdY3IVChBT54lv5IT 64C7Ti11wE7HNc+UkrWk8wTGJEGYP6gU1gMhyK/1itzizOc+WKllpP8Ppn+RjxOZngSg DIQM5lv66dSJsJIZtgvrjA1N30MeCUIv+iCgzvMk46RyGdksA0Wh5RyMDutaKnX9C88w IkUm2kzwna5JE0Tg+AshDrYH/BmLIUOfQaPpX+A14VXUm+O5BQ1O/FnGXN+5j70pogNH Jjs4p5Z2XnGbLknHyRzMxgwx9pWZEbPTv7hp1MEbLwKnZ4JNp9duWNiFgoabj2XlL19w OaDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tHoAe9cIDc1QJuWRtysL5UB6OfB9G0bH9MDuVg4W10k=; fh=l7oUGn0tRyuqSYDDHlmR8V/JymCaSa26zXVZNVm1MzI=; b=vu4LOxTmSEs6inOjlMj2e0z/9tOGg0vYE/3n362bz9KBqgDSxnbkvdnKAeJ33fpAf3 HTKUSGwNxEYsyuR002vm4ynCHNY7+ymYlwPLh2wlrZH6P9PE2RHQ63lXNS+4Sco5TwIa f8N09Uv9WanuNftiwnYaen/KWcHnCnV45nvmkpLF0XyOqMi8HxagFsXjLktgB50xJRYp n8MmOF9h9B/9PAZ4he5TVmu3t13SO45rcpuqkk0CWuDl+NTTFS43l9VlNuwLAxwmryyt wfvLd6rD4jlJgKdG+IE/C/JJ37RA2/cZp2PbAheSN0KA484jYsWU4Ot9n7B3BmswExDg bt+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=MbvhppHt; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb5-20020a17090ae7c500b002590bf12fedsi772887pjb.181.2023.06.22.17.34.06; Thu, 22 Jun 2023 17:34:17 -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=@google.com header.s=20221208 header.b=MbvhppHt; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231442AbjFWASB (ORCPT + 99 others); Thu, 22 Jun 2023 20:18:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbjFWAR4 (ORCPT ); Thu, 22 Jun 2023 20:17:56 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD3422128 for ; Thu, 22 Jun 2023 17:17:55 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-4007b5bafceso52101cf.1 for ; Thu, 22 Jun 2023 17:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687479475; x=1690071475; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tHoAe9cIDc1QJuWRtysL5UB6OfB9G0bH9MDuVg4W10k=; b=MbvhppHtjitG1PHoBVIsJl9V7O55xbc93l3YrjeBUBnHDttRI0JfDMreVgCAlaMvIy rMgXtEHooNwzOFO2gbGFrgm3LFYlj4aBYYbl8nKTcE6g2GgoYnRjSyz9gijrSyAcJh4m ayRDeasTifPGsDSgBUaNZI91qdiXhHaDKkK5jToyVWuCJhrys9pJysT5DWwQk3JEM4hr /zSCQd3uuvxA5mGE/NmZXx3as7PLIOBiN5vfexImULSR/vhpuKdULr9BldN9NhcEooDL a+G6rAlmCDG9pehdwTTWUzPu7sWa1nKxnvIkFoG5BHc4h3Rhu5r5ozp+UEaTACpvLsD3 89yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687479475; x=1690071475; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tHoAe9cIDc1QJuWRtysL5UB6OfB9G0bH9MDuVg4W10k=; b=eX1utYSvppAKucPPnxhZOxT0WOOF9uav11b+u8gmE/9z2vHmY43pvnevoot7WRMjWZ ycrkZS8Ksf7tgkIOQN3iPOh5+jbcSrUie/HJGejLODrHm5OBgILkctzVEoLkoY5+7Kre +EXTHC1Ut7qe36T1B2r8Ens1JTC9GrQ0nDHD47vP8F1lcOhkTKysx1EATvUnZtl1Hkzb SCaGzRM04J6z2+ZK3QlobnGrNgDxbk0htNO4m0STEXjriJ0aum5cNNVu+gDjRs433hNT t4pyECVD8PstVjkFHE+dLbm6HEcrRW3gk/4qRUsUimmY1atfX3Uf3DRef0G6bi+UdfKN goTg== X-Gm-Message-State: AC+VfDyGfLaXJ+sZ3bofVqhLyWoDMjIeH3DnhmJ0wTECf2GPv4dMF2XG VJ+Cu2gsBq52uMQ/LEN+6TvMAT+UyZwS44Uz/fjR8Q== X-Received: by 2002:a05:622a:1309:b0:3ed:6bde:9681 with SMTP id v9-20020a05622a130900b003ed6bde9681mr23282qtk.0.1687479474878; Thu, 22 Jun 2023 17:17:54 -0700 (PDT) MIME-Version: 1.0 References: <20230622235357.225190-1-namhyung@kernel.org> <20230622235357.225190-2-namhyung@kernel.org> In-Reply-To: <20230622235357.225190-2-namhyung@kernel.org> From: Ian Rogers Date: Thu, 22 Jun 2023 17:17:43 -0700 Message-ID: Subject: Re: [PATCH 2/2] perf test: Set PERF_EXEC_PATH for script execution To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Aditya Gupta , Petar Gligoric , Hagen Paul Pfeifer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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, Jun 22, 2023 at 4:54=E2=80=AFPM Namhyung Kim = wrote: > > The task-analyzer.py script (actually every other scripts too) requires > PERF_EXEC_PATH env to find dependent libraries and scripts. For scripts > test to run correctly, it needs to set PERF_EXEC_PATH to the perf tool > source directory. > > Instead of blindly update the env, let's check the directory structure > to make sure it points to the correct location. > > Fixes: e8478b84d6ba ("perf test: add new task-analyzer tests") > Cc: Petar Gligoric > Cc: Hagen Paul Pfeifer > Cc: Aditya Gupta > Signed-off-by: Namhyung Kim Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/tests/shell/test_task_analyzer.sh | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/perf/tests/shell/test_task_analyzer.sh b/tools/perf/te= sts/shell/test_task_analyzer.sh > index 59785dfc11f8..0095abbe20ca 100755 > --- a/tools/perf/tests/shell/test_task_analyzer.sh > +++ b/tools/perf/tests/shell/test_task_analyzer.sh > @@ -5,6 +5,12 @@ > tmpdir=3D$(mktemp -d /tmp/perf-script-task-analyzer-XXXXX) > err=3D0 > > +# set PERF_EXEC_PATH to find scripts in the source directory > +perfdir=3D$(dirname "$0")/../.. > +if [ -e "$perfdir/scripts/python/Perf-Trace-Util" ]; then > + export PERF_EXEC_PATH=3D$perfdir > +fi > + > cleanup() { > rm -f perf.data > rm -f perf.data.old > -- > 2.41.0.162.gfafddb0af9-goog >