[DTrace-devel] [PATCH] test: Allow duplicate lines for rawfbt synthetic tests

eugene.loh at oracle.com eugene.loh at oracle.com
Wed Mar 19 17:42:25 UTC 2025


From: Eugene Loh <eugene.loh at 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 at 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




More information about the DTrace-devel mailing list