* [PATCH 1/1] perf tests data_validation: Fixup test header
@ 2026-05-11 12:10 Arnaldo Carvalho de Melo
2026-05-11 15:28 ` Ian Rogers
0 siblings, 1 reply; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2026-05-11 12:10 UTC (permalink / raw)
To: linux-kernel
Cc: Ian Rogers, Adrian Hunter, Jiri Olsa, Namhyung Kim,
linux-perf-users
We made a mistake by having the SPDX comment in the second line, where
'perf test' shell support expects the test title, fix it.
Now we can specify a substring and have that test selected:
root@number:~# perf test truncat
84: Test that perf report handles truncated perf.data gracefully (no crash, no segfault — clean error exit).: Ok
root@number:~# perf test -vv truncat
84: Test that perf report handles truncated perf.data gracefully (no crash, no segfault — clean error exit).:
--- start ---
test child forked, pid 62890
---- end(0) ----
84: Test that perf report handles truncated perf.data gracefully (no crash, no segfault — clean error exit).: Ok
root@number:~#
Fixes: 24be50a54cb38cb4 ("perf test: Add truncated perf.data robustness test")
Cc: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/tests/shell/data_validation.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/perf/tests/shell/data_validation.sh b/tools/perf/tests/shell/data_validation.sh
index 649f71b6cdb93202..f8fcc4c0448b0c51 100755
--- a/tools/perf/tests/shell/data_validation.sh
+++ b/tools/perf/tests/shell/data_validation.sh
@@ -1,7 +1,6 @@
#!/bin/bash
+# Test that perf report handles truncated perf.data gracefully (no crash, no segfault — clean error exit).
# SPDX-License-Identifier: GPL-2.0
-# Test that perf report handles truncated perf.data gracefully
-# (no crash, no segfault — clean error exit).
#
# Exercises the bounds checking and minimum-size validation added
# by the perf-data-validation hardening series.
--
2.54.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] perf tests data_validation: Fixup test header
2026-05-11 12:10 [PATCH 1/1] perf tests data_validation: Fixup test header Arnaldo Carvalho de Melo
@ 2026-05-11 15:28 ` Ian Rogers
0 siblings, 0 replies; 2+ messages in thread
From: Ian Rogers @ 2026-05-11 15:28 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: linux-kernel, Adrian Hunter, Jiri Olsa, Namhyung Kim,
linux-perf-users
On Mon, May 11, 2026 at 5:10 AM Arnaldo Carvalho de Melo
<arnaldo.melo@gmail.com> wrote:
>
> We made a mistake by having the SPDX comment in the second line, where
> 'perf test' shell support expects the test title, fix it.
>
> Now we can specify a substring and have that test selected:
>
> root@number:~# perf test truncat
> 84: Test that perf report handles truncated perf.data gracefully (no crash, no segfault — clean error exit).: Ok
> root@number:~# perf test -vv truncat
> 84: Test that perf report handles truncated perf.data gracefully (no crash, no segfault — clean error exit).:
> --- start ---
> test child forked, pid 62890
> ---- end(0) ----
> 84: Test that perf report handles truncated perf.data gracefully (no crash, no segfault — clean error exit).: Ok
> root@number:~#
>
> Fixes: 24be50a54cb38cb4 ("perf test: Add truncated perf.data robustness test")
> Cc: Ian Rogers <irogers@google.com>
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Reviewed-by: Ian Rogers <irogers@google.com>
I plan to send a patch to improve how the test name is read from a
script. It is either that or continuing to spend time teaching my LLM
not to make checkpatch.pl happy and thereby break this. It seems
better that we just teach the code to skip lines containing SPDX.
Thanks,
Ian
> ---
> tools/perf/tests/shell/data_validation.sh | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/tools/perf/tests/shell/data_validation.sh b/tools/perf/tests/shell/data_validation.sh
> index 649f71b6cdb93202..f8fcc4c0448b0c51 100755
> --- a/tools/perf/tests/shell/data_validation.sh
> +++ b/tools/perf/tests/shell/data_validation.sh
> @@ -1,7 +1,6 @@
> #!/bin/bash
> +# Test that perf report handles truncated perf.data gracefully (no crash, no segfault — clean error exit).
> # SPDX-License-Identifier: GPL-2.0
> -# Test that perf report handles truncated perf.data gracefully
> -# (no crash, no segfault — clean error exit).
> #
> # Exercises the bounds checking and minimum-size validation added
> # by the perf-data-validation hardening series.
> --
> 2.54.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-11 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-11 12:10 [PATCH 1/1] perf tests data_validation: Fixup test header Arnaldo Carvalho de Melo
2026-05-11 15:28 ` Ian Rogers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox