From: Nick Alcock <nick.alcock@oracle.com>
To: Kris Van Hees <kris.van.hees@oracle.com>
Cc: 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, 07 Jun 2025 19:49:29 +0100 [thread overview]
Message-ID: <87ecvvjsjq.fsf@esperi.org.uk> (raw)
In-Reply-To: <IA4PR10MB8374A6881B0188B5168B375AC269A@IA4PR10MB8374.namprd10.prod.outlook.com> (Kris Van Hees's message of "Sat, 07 Jun 2025 02:15:04 -0400")
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>
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!
> + 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 :)
--
NULL && (void)
next prev parent reply other threads:[~2025-06-07 18:49 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 [this message]
2025-06-07 23:44 ` Kris Van Hees
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=87ecvvjsjq.fsf@esperi.org.uk \
--to=nick.alcock@oracle.com \
--cc=dtrace-devel@oss.oracle.com \
--cc=dtrace@lists.linux.dev \
--cc=kris.van.hees@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.