Patch "perf test: Set PERF_EXEC_PATH for script execution" has been added to the 6.3-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    perf test: Set PERF_EXEC_PATH for script execution

to the 6.3-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     perf-test-set-perf_exec_path-for-script-execution.patch
and it can be found in the queue-6.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a70f8519acd4a6388165ea550418e7f3075feb49
Author: Namhyung Kim <namhyung@xxxxxxxxxx>
Date:   Thu Jun 22 16:53:57 2023 -0700

    perf test: Set PERF_EXEC_PATH for script execution
    
    [ Upstream commit e4ef3ef1bc0a3d2535427da78b8095ef657eb474 ]
    
    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 <petar.gligoric@xxxxxxxxxxxxxxxxx>
    Cc: Hagen Paul Pfeifer <hagen@xxxxxxxx>
    Cc: Aditya Gupta <adityag@xxxxxxxxxxxxx>
    Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
    Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
    Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
    Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
    Cc: Ingo Molnar <mingo@xxxxxxxxxx>
    Acked-by: Ian Rogers <irogers@xxxxxxxxxx>
    Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/tests/shell/test_task_analyzer.sh b/tools/perf/tests/shell/test_task_analyzer.sh
index 1b7f3c1ec218b..365b61aea519a 100755
--- a/tools/perf/tests/shell/test_task_analyzer.sh
+++ b/tools/perf/tests/shell/test_task_analyzer.sh
@@ -5,6 +5,12 @@
 tmpdir=$(mktemp -d /tmp/perf-script-task-analyzer-XXXXX)
 err=0
 
+# set PERF_EXEC_PATH to find scripts in the source directory
+perfdir=$(dirname "$0")/../..
+if [ -e "$perfdir/scripts/python/Perf-Trace-Util" ]; then
+  export PERF_EXEC_PATH=$perfdir
+fi
+
 cleanup() {
   rm -f perf.data
   rm -f perf.data.old



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux