[DTrace-devel] [PATCH] Use pcb_exitlbl in trampoline instead of allocating a label

Eugene Loh eugene.loh at oracle.com
Tue Jan 12 21:07:42 PST 2021


Subject to a few minor nits (noted below):  Reviewed-by: Eugene Loh 
<eugene.loh at oracle.com>

On 01/12/2021 08:48 AM, Kris Van Hees wrote:
> Clauses used to be compiled into their own program, with a trampoline
> prologues and epilogue surrounding the actual clause implementation.

prologues
->
prologue

> This required a specific exit label to be alloocated for use in the

alloocated
->
allocated

> trampoline because the compiler-generated label (pcb_exitlbl) was
> specific to the clause implementation.
>
> diff --git a/libdtrace/dt_cg.c b/libdtrace/dt_cg.c
> -uint_t
> +void
>   dt_cg_tramp_prologue(dt_pcb_t *pcb)
>   {
>   	return dt_cg_tramp_prologue_act(pcb, DT_ACTIVITY_ACTIVE);

Remove "return"?



More information about the DTrace-devel mailing list