Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH] perf test: Make perf trace enum augmentation tests exclusive
@ 2026-04-09  8:11 Thomas Richter
  2026-04-09 14:22 ` Howard Chu
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Richter @ 2026-04-09  8:11 UTC (permalink / raw)
  To: linux-kernel, linux-s390, linux-perf-users, acme, namhyung,
	howardchu95
  Cc: agordeev, gor, sumanthk, hca, japo, Thomas Richter

Running both tests cases 'perf trace enum augmentation tests'
and 'perf trace BTF general tests' together causes the first test case
to fail:
 # for i in $(seq 5); do \
	./perf test 'perf trace enum augmentation tests' \
	'perf trace BTF general tests'; \
   done
 125: perf trace enum augmentation tests  : Ok
 126: perf trace BTF general tests        : FAILED!
 125: perf trace enum augmentation tests  : Ok
 126: perf trace BTF general tests        : FAILED!
 125: perf trace enum augmentation tests  : Ok
 126: perf trace BTF general tests        : FAILED!
 125: perf trace enum augmentation tests  : Ok
 126: perf trace BTF general tests        : FAILED!
 125: perf trace enum augmentation tests  : Ok
 126: perf trace BTF general tests        : FAILED!
 #

Test case perf trace enum augmentation tests' fails because  the second
test case 'perf trace BTF general tests' runs concurrently as can
be observed using a ps -ef | grep perf output list on a different
window. Both do a perf trace command concurrently.
Make test case 'perf trace enum augmentation tests' exclusive.

 # for i in $(seq 5); do \
	./perf test 'perf trace enum augmentation tests' \
	'perf trace BTF general tests'; \
   done
 125: perf trace BTF general tests        : Ok
 155: perf trace enum augmentation tests  : Ok
 125: perf trace BTF general tests        : Ok
 155: perf trace enum augmentation tests  : Ok
 125: perf trace BTF general tests        : Ok
 155: perf trace enum augmentation tests  : Ok
 125: perf trace BTF general tests        : Ok
 155: perf trace enum augmentation tests  : Ok
 125: perf trace BTF general tests        : Ok
 155: perf trace enum augmentation tests  : Ok
 #

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Cc: Howard Chu <howardchu95@gmail.com>
---
 tools/perf/tests/shell/trace_btf_enum.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/tests/shell/trace_btf_enum.sh b/tools/perf/tests/shell/trace_btf_enum.sh
index 03e9f680a4a6..437510d46f58 100755
--- a/tools/perf/tests/shell/trace_btf_enum.sh
+++ b/tools/perf/tests/shell/trace_btf_enum.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# perf trace enum augmentation tests
+# perf trace enum augmentation tests (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 err=0
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] perf test: Make perf trace enum augmentation tests exclusive
  2026-04-09  8:11 [PATCH] perf test: Make perf trace enum augmentation tests exclusive Thomas Richter
@ 2026-04-09 14:22 ` Howard Chu
  0 siblings, 0 replies; 2+ messages in thread
From: Howard Chu @ 2026-04-09 14:22 UTC (permalink / raw)
  To: Thomas Richter
  Cc: linux-kernel, linux-s390, linux-perf-users, acme, namhyung,
	agordeev, gor, sumanthk, hca, japo

Hi Thomas,

On Thu, Apr 9, 2026 at 1:12 AM Thomas Richter <tmricht@linux.ibm.com> wrote:
>
> Running both tests cases 'perf trace enum augmentation tests'
> and 'perf trace BTF general tests' together causes the first test case
> to fail:
>  # for i in $(seq 5); do \
>         ./perf test 'perf trace enum augmentation tests' \
>         'perf trace BTF general tests'; \
>    done
>  125: perf trace enum augmentation tests  : Ok
>  126: perf trace BTF general tests        : FAILED!
>  125: perf trace enum augmentation tests  : Ok
>  126: perf trace BTF general tests        : FAILED!
>  125: perf trace enum augmentation tests  : Ok
>  126: perf trace BTF general tests        : FAILED!
>  125: perf trace enum augmentation tests  : Ok
>  126: perf trace BTF general tests        : FAILED!
>  125: perf trace enum augmentation tests  : Ok
>  126: perf trace BTF general tests        : FAILED!
>  #
>
> Test case perf trace enum augmentation tests' fails because  the second
> test case 'perf trace BTF general tests' runs concurrently as can
> be observed using a ps -ef | grep perf output list on a different
> window. Both do a perf trace command concurrently.
> Make test case 'perf trace enum augmentation tests' exclusive.
>
>  # for i in $(seq 5); do \
>         ./perf test 'perf trace enum augmentation tests' \
>         'perf trace BTF general tests'; \
>    done
>  125: perf trace BTF general tests        : Ok
>  155: perf trace enum augmentation tests  : Ok
>  125: perf trace BTF general tests        : Ok
>  155: perf trace enum augmentation tests  : Ok
>  125: perf trace BTF general tests        : Ok
>  155: perf trace enum augmentation tests  : Ok
>  125: perf trace BTF general tests        : Ok
>  155: perf trace enum augmentation tests  : Ok
>  125: perf trace BTF general tests        : Ok
>  155: perf trace enum augmentation tests  : Ok
>  #
>
> Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
> Cc: Howard Chu <howardchu95@gmail.com>

Acked-by: Howard Chu <howardchu95@gmail.com>

Thanks,
Howard

> ---
>  tools/perf/tests/shell/trace_btf_enum.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/tests/shell/trace_btf_enum.sh b/tools/perf/tests/shell/trace_btf_enum.sh
> index 03e9f680a4a6..437510d46f58 100755
> --- a/tools/perf/tests/shell/trace_btf_enum.sh
> +++ b/tools/perf/tests/shell/trace_btf_enum.sh
> @@ -1,5 +1,5 @@
>  #!/bin/bash
> -# perf trace enum augmentation tests
> +# perf trace enum augmentation tests (exclusive)
>  # SPDX-License-Identifier: GPL-2.0
>
>  err=0
> --
> 2.53.0
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-09 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-09  8:11 [PATCH] perf test: Make perf trace enum augmentation tests exclusive Thomas Richter
2026-04-09 14:22 ` Howard Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox