public inbox for dtrace@lists.linux.dev
 help / color / mirror / Atom feed
From: Nick Alcock <nick.alcock@oracle.com>
To: dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Cc: Kris Van Hees <kris.van.hees@oracle.com>
Subject: [PATCH v5 2/6] dtprobed: stop skipping zero-tracepoint probes in dof_stash.c
Date: Tue,  5 Nov 2024 00:06:04 +0000	[thread overview]
Message-ID: <20241105000608.333229-3-nick.alcock@oracle.com> (raw)
In-Reply-To: <20241105000608.333229-1-nick.alcock@oracle.com>

We already validate that they don't exist in dof_parser.c, so no such probes
can ever get here.  Handling this impossible, untestable case has just got
harder, because we'd have to skip DIT_ARGS_{NATIVE,XLAT,MAP} records too.
Just stop considering it.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
---
 dtprobed/dof_stash.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dtprobed/dof_stash.c b/dtprobed/dof_stash.c
index 8bf465678217..82fdd3174759 100644
--- a/dtprobed/dof_stash.c
+++ b/dtprobed/dof_stash.c
@@ -586,12 +586,6 @@ dof_stash_write_parsed(pid_t pid, dev_t dev, ino_t ino, dt_list_t *accum)
 			if (err != 0)
 				goto err_provider;
 
-			/*
-			 * Skip probes with zero tracepoints entirely.
-			 */
-			if (accump->parsed->probe.ntp == 0)
-				break;
-
 			mod = accump->parsed->probe.name;
 			assert(accump->parsed->size > (mod - (char *) accump->parsed));
 			fun = mod + strlen(mod) + 1;
-- 
2.46.0.278.g36e3a12567


  parent reply	other threads:[~2024-11-05  0:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-05  0:06 [PATCH v5 0/6] usdt typed args, translators and arg mapping Nick Alcock
2024-11-05  0:06 ` [PATCH v5 1/6] usdt: get arg types and xlations into DTrace from the DOF Nick Alcock
2024-11-05 16:56   ` Kris Van Hees
2024-11-05 18:01     ` [DTrace-devel] " Kris Van Hees
2024-11-05 19:53       ` Nick Alcock
2024-11-05  0:06 ` Nick Alcock [this message]
2024-11-05  0:06 ` [PATCH v5 3/6] cg: add argument mapping in the trampoline Nick Alcock
2024-11-05 17:29   ` Kris Van Hees
2024-11-05 19:58     ` Nick Alcock
2024-11-05  0:06 ` [PATCH v5 4/6] usdt: typed args and arg mapping Nick Alcock
2024-11-05 18:53   ` Kris Van Hees
2024-11-06 11:16     ` Nick Alcock
2024-11-06 22:18       ` Kris Van Hees
2024-11-05  0:06 ` [PATCH v5 5/6] usdt: new tests for USDT arg sanity with overlapping pid probes Nick Alcock
2024-11-05  0:06 ` [PATCH v5 6/6] usdt: fix create_underlying error path Nick Alcock

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=20241105000608.333229-3-nick.alcock@oracle.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox