[DTrace-devel] [PATCH 10/10] Reduce strsize to avoid BPF hash map key size limitations

Kris Van Hees kris.van.hees at oracle.com
Fri Mar 18 19:04:53 UTC 2022


Some older kernels impose a limitations on the key size for BPF hash
maps based on the maximum BPF stack size.  That limitation was lifted
before the 5.4 kernel series but the verifier kept imposing it until
the 5.12 kernel series.

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

diff --git a/test/unittest/arrays/tst.basic6.d b/test/unittest/arrays/tst.basic6.d
index ff47548e..81355e47 100644
--- a/test/unittest/arrays/tst.basic6.d
+++ b/test/unittest/arrays/tst.basic6.d
@@ -15,6 +15,7 @@
 
 
 #pragma D option quiet
+#pragma D option strsize=64
 
 BEGIN
 {
-- 
2.34.1




More information about the DTrace-devel mailing list