Linux DTrace development list
 help / color / mirror / Atom feed
From: Kris Van Hees <kris.van.hees@oracle.com>
To: Nick Alcock <nick.alcock@oracle.com>
Cc: Kris Van Hees <kris.van.hees@oracle.com>,
	dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Subject: Re: [PATCH 13/17] dtprobed, usdt parser: add support for ELF notes-based USDT
Date: Sat, 7 Jun 2025 19:44:48 -0400	[thread overview]
Message-ID: <aETO8OPi3+cbuJxX@oracle.com> (raw)
In-Reply-To: <87ecvvjsjq.fsf@esperi.org.uk>

On Sat, Jun 07, 2025 at 07:49:29PM +0100, Nick Alcock wrote:
> On 7 Jun 2025, Kris Van Hees verbalised:
> 
> > Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
> 
> Reviewed-by: Nick Alcock <nick.alcock@oracle.com>

Thanks.

> Modulo this piece of utter pedantry:
> 
> > +	 *   rc = 1: All blocks written successfully.
> > +	 *   rc = 0: Some blocks not written.
> > +	 *   rc = -1: An erorr happened (some blocks not written).
> 
> Erorr is an erorr!

Thanks.

> > +		if (prp->fun != NULL) {
> > +			ptp->next = prp->next;
> > +			ptp->nargc = prp->nargc;
> > +			ptp->nargs = prp->nargs;
> > +			ptp->nargsz = prp->nargsz;
> > +			ptp->xargc = prp->xargc;
> > +			ptp->xargs = prp->xargs;
> > +			ptp->xargsz = prp->xargsz;
> > +			ptp->xmap = prp->xmap;
> > +			prp->next = ptp;
> > +			prp->ntp++;
> > +		} else {
> > +			dt_htab_delete(prbmap, ptp);
> > +			dt_htab_insert(pvp->pmap, ptp);
> > +			ptp->ntp = 1;
> > +			ptp->nargc = prp->nargc;
> > +			ptp->nargs = prp->nargs;
> > +			ptp->nargsz = prp->nargsz;
> > +			ptp->xargc = prp->xargc;
> > +			ptp->xargs = prp->xargs;
> > +			ptp->xargsz = prp->xargsz;
> > +			ptp->xmap = prp->xmap;
> > +			pvp->probec++;
> > +		}
> > +	}
> > +
> > +prvit = NULL;
> > +while ((pvp = dt_htab_next(prvmap, &prvit)) != NULL) {
> > +  dt_htab_next_t	*prbit = NULL;
> > +  dt_probe_t		*prp;
> > +
> > +  dt_dbg_usdt("    Provider '%s' with %d probe%s:\n", pvp->name, pvp->probec, pvp->probec == 1 ? "" : "s");
> > +  while ((prp = dt_htab_next(pvp->pmap, &prbit)) != NULL) {
> > +    dt_dbg_usdt("      Probe %s:%s:%s:%s (off %x)\n", prp->prv, prp->mod, prp->fun ? prp->fun : "", prp->prb, prp->fun ? prp->off : -1);
> > +    while ((prp = prp->next) != NULL)
> > +      dt_dbg_usdt("        Probe %s:%s:%s:%s (off %x)\n", prp->prv, prp->mod, prp->fun ? prp->fun : "", prp->prb, prp->fun ? prp->off : -1);
> > +  }
> > +}
> > +
> > +	/* Emit any provider that has tracepoints. */
> > +	prvit = NULL;
> > +	while ((pvp = dt_htab_next(prvmap, &prvit)) != NULL) {
> > +		if (pvp->probec > 0 && emit_provider(out, dhp, pvp) == -1)
> > +			goto err;
> > +	}
> > +
> > +	goto out;
> 
> Going by the indentation, the outdented bit looks like debugging code
> you either forgot to remove, or forgot to reindent :)

Ah yes, thanks.

      reply	other threads:[~2025-06-07 23:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-07  6:15 [PATCH 13/17] dtprobed, usdt parser: add support for ELF notes-based USDT Kris Van Hees
2025-06-07 18:49 ` Nick Alcock
2025-06-07 23:44   ` Kris Van Hees [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aETO8OPi3+cbuJxX@oracle.com \
    --to=kris.van.hees@oracle.com \
    --cc=dtrace-devel@oss.oracle.com \
    --cc=dtrace@lists.linux.dev \
    --cc=nick.alcock@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox