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

euloh noreply at github.com
Sun Jun 8 04:48:11 UTC 2025


  Branch: refs/heads/devel
  Home:   https://github.com/oracle/dtrace-utils
  Commit: e8e924424b489ac0e12c59cf2c1e0a189527c123
      https://github.com/oracle/dtrace-utils/commit/e8e924424b489ac0e12c59cf2c1e0a189527c123
  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/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: 741c7403eb61cf8586fba9c2672f03288ba142cd
      https://github.com/oracle/dtrace-utils/commit/741c7403eb61cf8586fba9c2672f03288ba142cd
  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: 0d21c8484b649b028a7b54fc1221be7e7e3bb9aa
      https://github.com/oracle/dtrace-utils/commit/0d21c8484b649b028a7b54fc1221be7e7e3bb9aa
  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/3af24adf996e...0d21c8484b64

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