Skip to contentSkip to conversation

test: Lengthen the delay in USDT defer trigger.

PATCH New [email protected] 1 participant 1 message Dec 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: Lengthen the delay in USDT defer trigger.

From: Eugene Loh <[email protected]>

The trigger usdt-tst-defer.c expects that, as soon as probe foo is enabled, so too are the foo and bar is-enabled probes as well as the bar probe. Since they are not turned on absolutely concurrently, the trigger actually has a microsleep after foo is enabled and before further activity is resumed. Nonetheless, there is evidence in occasional test runs that some events are missed.

Since there are no guarantees how concurrently these probes are turned on, lengthen the delay.

---
 test/triggers/usdt-tst-defer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/triggers/usdt-tst-defer.c +1 -1
index 2df5401b2..51125de2b 100644
@@ -57,7 +57,7 @@ main(int argc, char **argv)
 	}
 
 	/* wait for probes to get set up */
-	usleep(100000);
+	usleep(500 * 1000);
 
 	/* in phase 2, just loop over probe "bar" a fixed number of times */
 	for (i = 0; i < 10; i++) {
Signature · 1 line
2.43.5