[DTrace-devel] [oracle/dtrace-utils] a5903f: options: add -xbtfpath option

Kris Van Hees noreply at github.com
Wed Jun 25 04:01:39 UTC 2025


  Branch: refs/heads/devel
  Home:   https://github.com/oracle/dtrace-utils
  Commit: a5903f518dc1ad5d634f56e06fdbb56df0913f11
      https://github.com/oracle/dtrace-utils/commit/a5903f518dc1ad5d634f56e06fdbb56df0913f11
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M libdtrace/dt_btf.c
    M libdtrace/dt_impl.h
    M libdtrace/dt_open.c
    M libdtrace/dt_options.c

  Log Message:
  -----------
  options: add -xbtfpath option

Also move the initialization of BPF and BTF to dtrace_init() to ensure
that the -xbtfpath= option is processed before we try to access BTF
data.

Use -xbtfpath=none to disable the use of BTF data.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Nick Alcock <nick.alcock at oracle.com>


  Commit: 59063c82621356360b5d6c71430530c385b47316
      https://github.com/oracle/dtrace-utils/commit/59063c82621356360b5d6c71430530c385b47316
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M libdtrace/dt_module.c

  Log Message:
  -----------
  btf: do not try to generate CTF data if there is no BTF data

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Nick Alcock <nick.alcock at oracle.com>


  Commit: f0e1424fa41b50b0c9382b2d7e2012a3c6fdbb8a
      https://github.com/oracle/dtrace-utils/commit/f0e1424fa41b50b0c9382b2d7e2012a3c6fdbb8a
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M libdtrace/dt_pragma.c

  Log Message:
  -----------
  dlibs: report missing CTF and BTF data for vmlinux

If the kernel is not compiled with CTF and/or BTF enabled, DTrace will
not work.  This used to result in an assert, which is rather harsh and
not user friendly.  We now report a nice error.

Doing this in the pragma 'depends on' handling may seem odd but that is
where the initial type data load is triggered.  If for some strange
reason no dlibs exist (and thus no 'depends on' are encountered), the
compiler will complain about missing type information anyway.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Nick Alcock <nick.alcock at oracle.com>


Compare: https://github.com/oracle/dtrace-utils/compare/23cdaf54ce75...f0e1424fa41b

To unsubscribe from these emails, change your notification settings at https://github.com/oracle/dtrace-utils/settings/notifications



More information about the DTrace-devel mailing list