[DTrace-devel] [oracle/dtrace-utils] 62e2fc: dtprobed, usdt parser: add support for ELF notes-b...

euloh noreply at github.com
Fri Jun 6 06:37:39 UTC 2025


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

  Changed paths:
    M dtprobed/dof_stash.c
    M dtprobed/dof_stash.h
    M dtprobed/dtprobed.c
    M libcommon/Build
    M libcommon/usdt_parser.c
    M libcommon/usdt_parser.h
    M libcommon/usdt_parser_dof.c
    M libcommon/usdt_parser_host.c
    A libcommon/usdt_parser_notes.c

  Log Message:
  -----------
  dtprobed, usdt parser: add support for ELF notes-based USDT

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


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


  Commit: 538929727a498407c1353eba8ed43b2b7386df98
      https://github.com/oracle/dtrace-utils/commit/538929727a498407c1353eba8ed43b2b7386df98
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-06 (Fri, 06 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: 4984318b74f4b403af075b175cd8801c6abffc21
      https://github.com/oracle/dtrace-utils/commit/4984318b74f4b403af075b175cd8801c6abffc21
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-06 (Fri, 06 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: b2ab2b76fe091401c3b0b93438ba8c0ae91c5cf0
      https://github.com/oracle/dtrace-utils/commit/b2ab2b76fe091401c3b0b93438ba8c0ae91c5cf0
  Author: Eugene Loh <eugene.loh at oracle.com>
  Date:   2025-06-06 (Fri, 06 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>


Compare: https://github.com/oracle/dtrace-utils/compare/2ac3202150dd...b2ab2b76fe09

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