[DTrace-devel] [oracle/dtrace-utils] df960f: usdt: implement tracing USDT probes specified in E...

euloh noreply at github.com
Sat Jun 7 15:01:14 UTC 2025


  Branch: refs/heads/kvh/usdt-dev
  Home:   https://github.com/oracle/dtrace-utils
  Commit: df960fff50078e5516f4d5191f975f006f7a0a4f
      https://github.com/oracle/dtrace-utils/commit/df960fff50078e5516f4d5191f975f006f7a0a4f
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-07 (Sat, 07 Jun 2025)

  Changed paths:
    M include/dtrace/pid.h
    M libdtrace/dt_cg.c
    M libdtrace/dt_cg.h
    M libdtrace/dt_pid.c
    M libdtrace/dt_prov_uprobe.c

  Log Message:
  -----------
  usdt: implement tracing USDT probes specified in ELF notes

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: be2ab3046d24c23d8eef61f6e51505fc69b717e5
      https://github.com/oracle/dtrace-utils/commit/be2ab3046d24c23d8eef61f6e51505fc69b717e5
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-07 (Sat, 07 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.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>


  Commit: 352ee3bc356189b4e9eb3cca63645f7f9ca8ad52
      https://github.com/oracle/dtrace-utils/commit/352ee3bc356189b4e9eb3cca63645f7f9ca8ad52
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-07 (Sat, 07 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: 4258ce213541547b85bbf998c3208e385c010aed
      https://github.com/oracle/dtrace-utils/commit/4258ce213541547b85bbf998c3208e385c010aed
  Author: Eugene Loh <eugene.loh at oracle.com>
  Date:   2025-06-07 (Sat, 07 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/d1df03dc53af...4258ce213541

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