* [PATCH] perf test: Remove x permission from lib/stat_output.sh
@ 2023-06-22 5:58 Namhyung Kim
2023-06-22 17:51 ` Ian Rogers
0 siblings, 1 reply; 2+ messages in thread
From: Namhyung Kim @ 2023-06-22 5:58 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo, Jiri Olsa, Ian Rogers
Cc: Adrian Hunter, Peter Zijlstra, Ingo Molnar, LKML,
linux-perf-users, Kan Liang, Andi Kleen
The commit fc51fc87b1b8 factored out the helper functions to a library
but the new file had execute permission. Due to the way it detects
the shell test scripts, it showed up in the perf test list unexpectedly.
$ ./perf test list 2>&1 | grep 86
76: x86 bp modify
77: x86 Sample parsing
78: x86 hybrid
86: <---- (here)
$ ./perf test -v 86
86: :
--- start ---
test child forked, pid 1932207
test child finished with 0
---- end ----
: Ok
As it's a collection of library functions, it should not run as is.
Let's remove the execute permission.
Fixes: fc51fc87b1b8 ("perf test: Move all the check functions of stat CSV output to lib")
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
tools/perf/tests/shell/lib/stat_output.sh | 0
1 file changed, 0 insertions(+), 0 deletions(-)
mode change 100755 => 100644 tools/perf/tests/shell/lib/stat_output.sh
diff --git a/tools/perf/tests/shell/lib/stat_output.sh b/tools/perf/tests/shell/lib/stat_output.sh
old mode 100755
new mode 100644
--
2.41.0.162.gfafddb0af9-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] perf test: Remove x permission from lib/stat_output.sh
2023-06-22 5:58 [PATCH] perf test: Remove x permission from lib/stat_output.sh Namhyung Kim
@ 2023-06-22 17:51 ` Ian Rogers
0 siblings, 0 replies; 2+ messages in thread
From: Ian Rogers @ 2023-06-22 17:51 UTC (permalink / raw)
To: Namhyung Kim
Cc: Arnaldo Carvalho de Melo, Jiri Olsa, Adrian Hunter,
Peter Zijlstra, Ingo Molnar, LKML, linux-perf-users, Kan Liang,
Andi Kleen
On Wed, Jun 21, 2023 at 10:58 PM Namhyung Kim <namhyung@kernel.org> wrote:
>
> The commit fc51fc87b1b8 factored out the helper functions to a library
> but the new file had execute permission. Due to the way it detects
> the shell test scripts, it showed up in the perf test list unexpectedly.
>
> $ ./perf test list 2>&1 | grep 86
> 76: x86 bp modify
> 77: x86 Sample parsing
> 78: x86 hybrid
> 86: <---- (here)
>
> $ ./perf test -v 86
> 86: :
> --- start ---
> test child forked, pid 1932207
> test child finished with 0
> ---- end ----
> : Ok
>
> As it's a collection of library functions, it should not run as is.
> Let's remove the execute permission.
>
> Fixes: fc51fc87b1b8 ("perf test: Move all the check functions of stat CSV output to lib")
> Cc: Kan Liang <kan.liang@linux.intel.com>
> Cc: Andi Kleen <ak@linux.intel.com>
> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Thanks,
Ian
> ---
> tools/perf/tests/shell/lib/stat_output.sh | 0
> 1 file changed, 0 insertions(+), 0 deletions(-)
> mode change 100755 => 100644 tools/perf/tests/shell/lib/stat_output.sh
>
> diff --git a/tools/perf/tests/shell/lib/stat_output.sh b/tools/perf/tests/shell/lib/stat_output.sh
> old mode 100755
> new mode 100644
> --
> 2.41.0.162.gfafddb0af9-goog
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-22 17:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 5:58 [PATCH] perf test: Remove x permission from lib/stat_output.sh Namhyung Kim
2023-06-22 17:51 ` Ian Rogers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®