[DTrace-devel] [PATCH] Adjust dynvarsize to avoid hitting BPF size limits

Kris Van Hees kris.van.hees at oracle.com
Thu Dec 9 05:04:40 UTC 2021


The number of entries in the dvars BPF map is calvulated as the
dynvarsize divided by the size of the value type, which is 1.  It
turns out that there is a limit on the number of entries and this
test hits that limit.

THis patch sets dynvarsize to 1024 to force a lower limit so that
this issue is not triggered anymore.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 test/unittest/variables/tvar/tst.store-char.d | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/unittest/variables/tvar/tst.store-char.d b/test/unittest/variables/tvar/tst.store-char.d
index 989bff94..64c97f7d 100644
--- a/test/unittest/variables/tvar/tst.store-char.d
+++ b/test/unittest/variables/tvar/tst.store-char.d
@@ -13,6 +13,7 @@
  */
 
 #pragma D option quiet
+#pragma D option dynvarsize=1024
 
 self char a, b;
 
-- 
2.34.1




More information about the DTrace-devel mailing list