[DTrace-devel] [oracle/dtrace-utils] aa6366: test: allow overriding CC, OBJCOPY, OBJDUMP, NM, ...

Kris Van Hees noreply at github.com
Thu Jun 5 14:57:11 UTC 2025


  Branch: refs/heads/kvh/usdt-dev
  Home:   https://github.com/oracle/dtrace-utils
  Commit: aa63660a7cfcdeb1daf4fb63f1c15f75a1693064
      https://github.com/oracle/dtrace-utils/commit/aa63660a7cfcdeb1daf4fb63f1c15f75a1693064
  Author: Eugene Loh <eugene.loh at oracle.com>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M runtest.sh
    M test/expensive/locking/tst.DestructionDoubleUnlock.sh
    M test/internals/headers/tst.header-endianness.sh
    M test/stress/options/tst.cpu-syscall.sh
    M test/unittest/aggs/tst.aggmod_full2.sh
    M test/unittest/arrays/tst.uregsarray-check.sh
    M test/unittest/bitfields/tst.bitfield-offset.x
    M test/unittest/builtinvar/tst.errno3.sh
    M test/unittest/builtinvar/tst.tid_pid.sh
    M test/unittest/dtrace-util/tst.ListProbesArgsUSDT.sh
    M test/unittest/dtrace-util/tst.ListProbesFuncUSDT.sh
    M test/unittest/dtrace-util/tst.ListProbesModuleUSDT.sh
    M test/unittest/dtrace-util/tst.ListProbesNameUSDT.sh
    M test/unittest/dtrace-util/tst.ListProbesProviderUSDT.sh
    M test/unittest/fbtprovider/tst.entryargs2.sh
    M test/unittest/funcs/copyout/tst.copyout.sh
    M test/unittest/funcs/copyoutstr/tst.copyoutstr.sh
    M test/unittest/misc/tst.include.sh
    M test/unittest/options/tst.cpu-syscall.sh
    M test/unittest/options/tst.ctypes.sh
    M test/unittest/options/tst.dtypes.sh
    M test/unittest/options/tst.linktype.sh
    M test/unittest/options/tst.strip.sh
    M test/unittest/pid/tst.dash.sh
    M test/unittest/pid/tst.offsets.sh
    M test/unittest/pid/tst.provregex1.sh
    M test/unittest/pid/tst.provregex2.sh
    M test/unittest/pid/tst.provregex3.sh
    M test/unittest/pid/tst.provregex4.sh
    M test/unittest/usdt/tst.allargs.sh
    M test/unittest/usdt/tst.badguess.sh
    M test/unittest/usdt/tst.badguess.x
    M test/unittest/usdt/tst.dlclose1.sh
    M test/unittest/usdt/tst.dlclose2.sh
    M test/unittest/usdt/tst.dlclose3.sh
    M test/unittest/usdt/tst.dlclose4.sh
    M test/unittest/usdt/tst.eliminate.sh
    M test/unittest/usdt/tst.enable_pid.sh
    M test/unittest/usdt/tst.enabled.sh
    M test/unittest/usdt/tst.enabled2.sh
    M test/unittest/usdt/tst.entryreturn.sh
    M test/unittest/usdt/tst.exec-dof-replacement.sh
    M test/unittest/usdt/tst.execstack.sh
    M test/unittest/usdt/tst.fork.sh
    M test/unittest/usdt/tst.guess32.sh
    M test/unittest/usdt/tst.guess64.sh
    M test/unittest/usdt/tst.header.sh
    M test/unittest/usdt/tst.lingering.sh
    M test/unittest/usdt/tst.link-idempotence.sh
    M test/unittest/usdt/tst.linkpriv.sh
    M test/unittest/usdt/tst.linkunpriv.sh
    M test/unittest/usdt/tst.manyprobes.sh
    M test/unittest/usdt/tst.manyprocs.sh
    M test/unittest/usdt/tst.multiple.sh
    M test/unittest/usdt/tst.multiprov-dupprobe-shlibs.sh
    M test/unittest/usdt/tst.multitrace.sh
    M test/unittest/usdt/tst.nusdtprobes.sh
    M test/unittest/usdt/tst.onlyenabled.sh
    M test/unittest/usdt/tst.pidprobes.sh
    M test/unittest/usdt/tst.pie.sh
    M test/unittest/usdt/tst.reeval.sh
    M test/unittest/usdt/tst.static.sh
    M test/unittest/usdt/tst.static2.sh
    M test/unittest/usdt/tst.user.sh
    M test/utils/workload_analyze_loop.sh

  Log Message:
  -----------
  test: allow overriding CC, OBJCOPY, OBJDUMP, NM, ...

Bug: https://github.com/oracle/dtrace-utils/issues/75
Signed-off-by: Sam James <sam at gentoo.org>
Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>


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

  Changed paths:
    M libdtrace/dt_provider.c
    M libdtrace/dt_provider.h

  Log Message:
  -----------
  provider: fix registering fbt and rawfbt twice

Now that rawfbt has been integrated into the fbt provider, it no longer
needs to be in the list of providers to call populate() in.

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


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

  Changed paths:
    M libdtrace/dt_provider.c

  Log Message:
  -----------
  providers: loop through all providers for discovery

The discovery of probes was tied to the static list of providers that
are called on init.  It should iterate over all providers that are in
fact registered, i.e. the dt_provs hash.

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


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

  Changed paths:
    M libdtrace/dt_open.c
    M libdtrace/dt_version.h

  Log Message:
  -----------
  Only include dt_git_version.h where needed

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


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

  Changed paths:
    M libcommon/dof_parser.c

  Log Message:
  -----------
  dof_parser: remove pointless comment

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


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

  Changed paths:
    M dtprobed/dtprobed.c
    M libcommon/dof_parser.c
    M libcommon/dof_parser.h

  Log Message:
  -----------
  dof_parser: restructure the dof_copyin*() code

All logic for reading data from the DOF parser pipe is now consolidated
in dof_copyin().

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


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

  Changed paths:
    M dtprobed/dof_stash.c
    M dtprobed/dof_stash.h
    M dtprobed/dtprobed.c
    M libcommon/Build
    R libcommon/dof_parser.c
    R libcommon/dof_parser.h
    R libcommon/dof_parser_host.c
    A libcommon/usdt_parser.c
    A libcommon/usdt_parser.h
    A libcommon/usdt_parser_dof.c
    A libcommon/usdt_parser_host.c
    M libdtrace/dt_pid.c

  Log Message:
  -----------
  dof_parser: generic parser framework to support multiple parsers

To prepare for non-DOF section based USDT probe definitions, the data
passed from dtprobed to the USDT data parser is more generic.  The
dof_helper_t structure is passed first, followed by a block count, and
that number of data blocks, passed as a size followed by the content.

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


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

  Changed paths:
    M dtprobed/dtprobed.c

  Log Message:
  -----------
  dtprobed: fix probe name debug output

Debug output while reading dof_parsed_t structures was printing the
probe names as provider->provoder.name and probe->probe.name, but
probe.name is a 0-separated concatenation of the probe name elements.
It only printed the module name.  Corrected to print the full probe
name.

Also moved it to the proper place (when a new probe is read rather
than for every tracepoint).

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


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

  Changed paths:
    M libcommon/Build
    A libcommon/dt_htab.c
    A libcommon/dt_htab.h
    M libdtrace/Build
    M libdtrace/dt_consume.c
    R libdtrace/dt_htab.c
    R libdtrace/dt_htab.h
    M libdtrace/dt_kernel_module.c
    M libdtrace/dt_module.c
    M libdtrace/dt_open.c
    M libdtrace/dt_probe.c
    M libdtrace/dt_provider.c
    M libdtrace/dt_symtab.c

  Log Message:
  -----------
  htab: move htab handling to libcommon

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


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

  Changed paths:
    M libcommon/dt_htab.c
    M libcommon/dt_htab.h
    M libdtrace/dt_string.c
    M libdtrace/dt_string.h

  Log Message:
  -----------
  htab: move str2hval() to dt_htab

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


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

  Changed paths:
    M dtprobed/dtprobed.c

  Log Message:
  -----------
  dtprobed: make sure that retry one time means exactly that

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


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

  Changed paths:
    M include/dtrace/ioctl.h

  Log Message:
  -----------
  usdt: add HASUSDT to the helper ioctl interface

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


  Commit: 699ffd67768912326c1a274cd8b33cd1676c0ccb
      https://github.com/oracle/dtrace-utils/commit/699ffd67768912326c1a274cd8b33cd1676c0ccb
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-03 (Tue, 03 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: 8f020a9b6c9c591adbac06c78c6e538f4352f4e6
      https://github.com/oracle/dtrace-utils/commit/8f020a9b6c9c591adbac06c78c6e538f4352f4e6
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-04 (Wed, 04 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: d8a8ed0dcac18e5cb8b93e5db608f0991b7f80a0
      https://github.com/oracle/dtrace-utils/commit/d8a8ed0dcac18e5cb8b93e5db608f0991b7f80a0
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-04 (Wed, 04 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.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: 4130200018dfb73a10fea25d2b0d258202db54f0
      https://github.com/oracle/dtrace-utils/commit/4130200018dfb73a10fea25d2b0d258202db54f0
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-06-04 (Wed, 04 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: 5df9f82752aeec800daf7e066832ce28e08bdff9
      https://github.com/oracle/dtrace-utils/commit/5df9f82752aeec800daf7e066832ce28e08bdff9
  Author: Eugene Loh <eugene.loh at oracle.com>
  Date:   2025-06-04 (Wed, 04 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>


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

  Changed paths:
    M dtprobed/dof_stash.c

  Log Message:
  -----------
  ADD TO dtprobed PATCH

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


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

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