[DTrace-devel] [PATCH 12/19] Increase size of BPF probes map
Eugene Loh
eugene.loh at oracle.com
Tue Oct 8 22:15:23 UTC 2024
Just to be clear, this patch is (thankfully) being withdrawn. Whew.
On 8/29/24 01:25, eugene.loh at oracle.com wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
>
> We are going to support discovery of new probes after dtrace is
> launched. For example, there could be a pid or USDT probe with a
> wildcard pid specification that could be matched by a process that
> has not yet started. Or, a process could load a shared library.
>
> This means the probe map will have to grow. For now, just wire in
> some headroom, as ugly a hack as this is.
>
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
> ---
> libdtrace/dt_bpf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libdtrace/dt_bpf.c b/libdtrace/dt_bpf.c
> index 70803e3c..75e48962 100644
> --- a/libdtrace/dt_bpf.c
> +++ b/libdtrace/dt_bpf.c
> @@ -920,7 +920,7 @@ gmap_create_probes(dtrace_hdl_t *dtp)
>
> fd = create_gmap(dtp, "probes", BPF_MAP_TYPE_HASH, sizeof(uint32_t),
> sizeof(dt_bpf_probe_t),
> - dt_list_length(&dtp->dt_enablings));
> + dt_list_length(&dtp->dt_enablings) + 1000);
> if (fd == -1)
> return -1;
>
More information about the DTrace-devel
mailing list