[DTrace-devel] [PATCH] ERROR probe implementation
Eugene Loh
eugene.loh at oracle.com
Mon Jan 25 11:45:53 PST 2021
On 1/20/21 1:58 AM, Kris Van Hees wrote:
> @@ -2811,14 +2917,27 @@ dt_cg_node(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp)
> break;
>
> case DT_TOK_PTR:
> - case DT_TOK_DOT:
> + case DT_TOK_DOT: {
> + uint_t lbl_valid = dt_irlist_label(dlp);
> +
> assert(dnp->dn_right->dn_kind == DT_NODE_IDENT);
> dt_cg_node(dnp->dn_left, dlp, drp);
>
> /*
> - * Ensure that the lvalue is not the NULL pointer.
> + * If the lvalue is the NULL pointer, we must report a BADARR
BADARR
->
BADADDR
More information about the DTrace-devel
mailing list