* [PATCH] test: Allow duplicate lines for rawfbt synthetic tests
@ 2025-03-19 17:42 eugene.loh
2025-03-19 17:47 ` Kris Van Hees
0 siblings, 1 reply; 2+ messages in thread
From: eugene.loh @ 2025-03-19 17:42 UTC (permalink / raw)
To: dtrace, dtrace-devel
From: Eugene Loh <eugene.loh@oracle.com>
It is possible for the probe in these tests to fire "concurrently"
on multiple CPUs, leading to duplicate lines of output. Add
post processing to reduce multiple lines of duplicate output.
Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
---
test/unittest/providers/rawfbt/tst.synthetic-entry.r.p | 3 +++
test/unittest/providers/rawfbt/tst.synthetic-return.r.p | 3 +++
2 files changed, 6 insertions(+)
create mode 100755 test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
create mode 100755 test/unittest/providers/rawfbt/tst.synthetic-return.r.p
diff --git a/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p b/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
new file mode 100755
index 000000000..18171f044
--- /dev/null
+++ b/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+uniq
diff --git a/test/unittest/providers/rawfbt/tst.synthetic-return.r.p b/test/unittest/providers/rawfbt/tst.synthetic-return.r.p
new file mode 100755
index 000000000..18171f044
--- /dev/null
+++ b/test/unittest/providers/rawfbt/tst.synthetic-return.r.p
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+uniq
--
2.43.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] test: Allow duplicate lines for rawfbt synthetic tests
2025-03-19 17:42 [PATCH] test: Allow duplicate lines for rawfbt synthetic tests eugene.loh
@ 2025-03-19 17:47 ` Kris Van Hees
0 siblings, 0 replies; 2+ messages in thread
From: Kris Van Hees @ 2025-03-19 17:47 UTC (permalink / raw)
To: eugene.loh; +Cc: dtrace, dtrace-devel
On Wed, Mar 19, 2025 at 01:42:25PM -0400, eugene.loh@oracle.com wrote:
> From: Eugene Loh <eugene.loh@oracle.com>
>
> It is possible for the probe in these tests to fire "concurrently"
> on multiple CPUs, leading to duplicate lines of output. Add
> post processing to reduce multiple lines of duplicate output.
>
> Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
> ---
> test/unittest/providers/rawfbt/tst.synthetic-entry.r.p | 3 +++
> test/unittest/providers/rawfbt/tst.synthetic-return.r.p | 3 +++
> 2 files changed, 6 insertions(+)
> create mode 100755 test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
> create mode 100755 test/unittest/providers/rawfbt/tst.synthetic-return.r.p
>
> diff --git a/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p b/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
> new file mode 100755
> index 000000000..18171f044
> --- /dev/null
> +++ b/test/unittest/providers/rawfbt/tst.synthetic-entry.r.p
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +uniq
> diff --git a/test/unittest/providers/rawfbt/tst.synthetic-return.r.p b/test/unittest/providers/rawfbt/tst.synthetic-return.r.p
> new file mode 100755
> index 000000000..18171f044
> --- /dev/null
> +++ b/test/unittest/providers/rawfbt/tst.synthetic-return.r.p
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +uniq
> --
> 2.43.5
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-19 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 17:42 [PATCH] test: Allow duplicate lines for rawfbt synthetic tests eugene.loh
2025-03-19 17:47 ` Kris Van Hees
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox