[DTrace-devel] [oracle/dtrace-utils] 458b67: link: implement USDT probe definitions in ELF notes

euloh noreply at github.com
Mon Jun 9 16:30:47 UTC 2025


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

  Changed paths:
    M libdtrace/drti.c
    M libdtrace/dt_dof.c
    M libdtrace/dt_impl.h
    M libdtrace/dt_link.c
    M libdtrace/dt_program.c
    M test/triggers/Build
    A test/triggers/usdt-tst-arg-const-prov.d
    A test/triggers/usdt-tst-arg-const.c
    A test/triggers/usdt-tst-arg-reg-prov.d
    A test/triggers/usdt-tst-arg-reg.c
    A test/triggers/usdt-tst-deref-decode-prov.d
    A test/triggers/usdt-tst-deref-decode.aarch64.c
    A test/triggers/usdt-tst-deref-decode.x86_64.c
    M test/unittest/options/tst.linktype.r
    M test/unittest/options/tst.strip.sh
    A test/unittest/usdt/err.wrong-probe-argc-cc.sh
    A test/unittest/usdt/err.wrong-probe-argc-rt.sh
    A test/unittest/usdt/err.wrong-probe.sh
    A test/unittest/usdt/err.wrong-prov.sh
    A test/unittest/usdt/tst.arg-reg.d
    A test/unittest/usdt/tst.arg-reg.r
    R test/unittest/usdt/tst.badguess.sh
    R test/unittest/usdt/tst.badguess.x
    A test/unittest/usdt/tst.const.d
    A test/unittest/usdt/tst.const.r
    A test/unittest/usdt/tst.deref-decode.d
    R test/unittest/usdt/tst.guess32.sh
    R test/unittest/usdt/tst.guess32.x
    M test/unittest/usdt/tst.multiprov-dupprobe-shlibs.r.p
    M test/utils/Build
    M test/utils/showUSDT.c
    M uts/Build
    M uts/common/sys/sdt.h
    A uts/common/sys/usdt.h
    A uts/common/sys/usdt_gennote.h
    A uts/common/sys/usdt_internal.h

  Log Message:
  -----------
  link: implement USDT probe definitions in ELF notes

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


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

  Changed paths:
    M test/unittest/dtrace-util/tst.ListProbesModuleUSDT.sh

  Log Message:
  -----------
  test: fix test for non-installed testing

On a system without DTrace installed, <sys/usdt.h> cannot be found,
causing this test to fail.  Use test_cppflags to ensure the correct
location is used in all cases.

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


  Commit: 30c8be7604c839fa27d630a7b795c4349d462148
      https://github.com/oracle/dtrace-utils/commit/30c8be7604c839fa27d630a7b795c4349d462148
  Author: Eugene Loh <eugene.loh at oracle.com>
  Date:   2025-06-08 (Sun, 08 Jun 2025)

  Changed paths:
    M test/unittest/usdt/tst.pidprobes.sh

  Log Message:
  -----------
  test: Adapt USDT PC search for USDT LTO changes

To check USDT PCs, we looked at disassembly for characteristics that
indicated USDT probes.

With LTO, however, USDT instrumentation has changed.

Therefore, use showUSDT in tst.pidprobes.sh to extract USDT PCs.

Note that tst.pidargs.sh and tst.pidargmap.sh depend on
tst.pidprobes.sh.  Therefore, those tests also benefit from this change.
They do not yet pass, however, since index 0 for args[] is said to be
out of range.

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>


Compare: https://github.com/oracle/dtrace-utils/compare/0d21c8484b64...30c8be7604c8

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