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 1/4] btf: btf argument to dt_btf_get_string() should be const
Date: Fri, 17 Apr 2026 18:02:04 +0100 [thread overview]
Message-ID: <87mrz1zfjn.fsf@esperi.org.uk> (raw)
In-Reply-To: <IA0PR10MB73252238BD3B5AB32F0AB2EBC2252@IA0PR10MB7325.namprd10.prod.outlook.com> (Kris Van Hees's message of "Tue, 14 Apr 2026 02:27:45 -0400")
On 14 Apr 2026, Kris Van Hees told this:
> Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
> ---
> libdtrace/dt_btf.c | 2 +-
> libdtrace/dt_btf.h | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/libdtrace/dt_btf.c b/libdtrace/dt_btf.c
> index 1f6dfd54d..d08599192 100644
> --- a/libdtrace/dt_btf.c
> +++ b/libdtrace/dt_btf.c
> @@ -849,7 +849,7 @@ dt_btf_type_by_id(dtrace_hdl_t *dtp, const dt_btf_t *btf, int32_t id)
> }
>
> const char *
> -dt_btf_get_string(dtrace_hdl_t *dtp, dt_btf_t *btf, uint32_t off)
> +dt_btf_get_string(dtrace_hdl_t *dtp, const dt_btf_t *btf, uint32_t off)
> {
> if (dtp->dt_shared_btf == NULL)
> goto ok;
> diff --git a/libdtrace/dt_btf.h b/libdtrace/dt_btf.h
> index 3e5f53622..d956ad940 100644
> --- a/libdtrace/dt_btf.h
> +++ b/libdtrace/dt_btf.h
> @@ -20,7 +20,8 @@ typedef struct bpf_btf_info btf_info_t;
> extern void dt_btf_destroy(dtrace_hdl_t *, dt_btf_t *);
> extern dt_btf_t *dt_btf_load_module(dtrace_hdl_t *, dt_module_t *);
> extern ctf_dict_t *dt_btf_module_ctf(dtrace_hdl_t *, dt_module_t *);
> -extern const char *dt_btf_get_string(dtrace_hdl_t *, dt_btf_t *, uint32_t);
> +extern const char *dt_btf_get_string(dtrace_hdl_t *, const dt_btf_t *,
> + uint32_t);
> extern int32_t dt_btf_lookup_name_kind(dtrace_hdl_t *, dt_module_t *,
> const char *, uint32_t);
> extern int dt_btf_func_argc(dtrace_hdl_t *dtp, const dt_btf_t *btf,
--
NULL && (void)
prev parent reply other threads:[~2026-04-17 17:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 6:27 [PATCH 1/4] btf: btf argument to dt_btf_get_string() should be const Kris Van Hees
2026-04-17 17:02 ` Nick Alcock [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=87mrz1zfjn.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox