All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] test: Allow more variations in expected fbt kernel stacks
@ 2025-02-08 23:21 eugene.loh
  2025-02-08 23:21 ` [PATCH 2/2] test: Account for pid:::entry ustack() being correct eugene.loh
  2025-02-28 15:47 ` [PATCH 1/2] test: Allow more variations in expected fbt kernel stacks Kris Van Hees
  0 siblings, 2 replies; 4+ messages in thread
From: eugene.loh @ 2025-02-08 23:21 UTC (permalink / raw)
  To: dtrace, dtrace-devel

From: Eugene Loh <eugene.loh@oracle.com>

This test checks the call stack upon entry to vfs_write().
Unfortunately, these checks require some maintenance since the call
stack can vary -- slightly or greatly -- depending on processor or
kernel.  There is a competition between ease of test maintenance and
strictness of correctness checks.

Adapt post processing of output to allow new variations in stacks
seen in UEK 8 (currently Linux 6.12).

Orabug: 37459289
Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
---
 test/unittest/stack/tst.stack_fbt.sh | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/test/unittest/stack/tst.stack_fbt.sh b/test/unittest/stack/tst.stack_fbt.sh
index c365e14d6..8a0b7999c 100755
--- a/test/unittest/stack/tst.stack_fbt.sh
+++ b/test/unittest/stack/tst.stack_fbt.sh
@@ -37,9 +37,18 @@ if [ $? -ne 0 ]; then
 	exit 1
 fi
 
-# Strip out blank lines and pointer values.
-
-awk 'NF != 0 { sub(/+0x[0-9a-f]*$/, "+{ptr}"); print }' dtrace.out > dtrace.post
+# Strip out
+# - blank lines
+# - "constprop"
+# - "isra"
+# - "_after_hwframe"    (x86 starting with UEK8)
+# - pointer values
+
+awk 'NF != 0 { sub("\\.constprop\\.[0-9]", "");
+               sub("\\.isra\\.[0-9]", "");
+               sub("_after_hwframe\\+", "+");
+               sub(/+0x[0-9a-f]*$/, "+{ptr}");
+               print }' dtrace.out > dtrace.post
 if [ $? -ne 0 ]; then
 	echo ERROR: awk failed
 	cat dtrace.out
-- 
2.43.5


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

end of thread, other threads:[~2025-02-28 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-08 23:21 [PATCH 1/2] test: Allow more variations in expected fbt kernel stacks eugene.loh
2025-02-08 23:21 ` [PATCH 2/2] test: Account for pid:::entry ustack() being correct eugene.loh
2025-02-28 16:00   ` Kris Van Hees
2025-02-28 15:47 ` [PATCH 1/2] test: Allow more variations in expected fbt kernel stacks Kris Van Hees

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.