[DTrace-devel] [PATCH 2/3] btf: do not try to generate CTF data if there is no BTF data

Nick Alcock nick.alcock at oracle.com
Tue Jun 24 14:16:32 UTC 2025


On 24 Jun 2025, Kris Van Hees outgrape:

> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>

Reviewed-by: Nick Alcock <nick.alcock at oracle.com>

modulo the spelling nit below.

> ---
>  libdtrace/dt_module.c | 24 ++++++++++++++++--------
>  1 file changed, 16 insertions(+), 8 deletions(-)
>
> diff --git a/libdtrace/dt_module.c b/libdtrace/dt_module.c
> index b3c8e247..eef5386a 100644
> --- a/libdtrace/dt_module.c
> +++ b/libdtrace/dt_module.c
> @@ -864,11 +864,12 @@ static void
>  dt_kern_module_find_btf(dtrace_hdl_t *dtp, dt_module_t *dmp)
>  {
>  	/*
> -	 * The first module for which we need to collect BTF data must be the
> -	 * 'vmlinux' module.
> +	 * If there is no shared BTF data, and we're trying to load BTF data
> +	 * fir any module other than "vmlinux", we can conclude no module has

s/fir/for/

-- 
NULL && (void)



More information about the DTrace-devel mailing list