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

Eugene Loh eugene.loh at oracle.com
Fri Mar 18 20:39:47 UTC 2022


Reviewed-by: Eugene Loh <eugene.loh at oracle.com>

On 3/18/22 3:04 PM, Kris Van Hees via DTrace-devel wrote:
> 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
>   {



More information about the DTrace-devel mailing list