[DTrace-devel] [oracle/dtrace-utils] 564efa: test: adjust sdt.tst.args.d for task_rename tracep...

euloh noreply at github.com
Tue Aug 12 18:40:53 UTC 2025


  Branch: refs/heads/dev-queue
  Home:   https://github.com/oracle/dtrace-utils
  Commit: 564efa04c98ae749897cafb5421e1b6fd9c7c109
      https://github.com/oracle/dtrace-utils/commit/564efa04c98ae749897cafb5421e1b6fd9c7c109
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-08-12 (Tue, 12 Aug 2025)

  Changed paths:
    A test/unittest/sdt/tst.args-3.d
    A test/unittest/sdt/tst.args-3.r
    A test/unittest/sdt/tst.args-3.x
    A test/unittest/sdt/tst.args-4.d
    A test/unittest/sdt/tst.args-4.r
    A test/unittest/sdt/tst.args-4.x
    R test/unittest/sdt/tst.args.d
    R test/unittest/sdt/tst.args.r

  Log Message:
  -----------
  test: adjust sdt.tst.args.d for task_rename tracepoint differences

As of kernel 6.14, the task_rename tracepoint provides only 3 arguments
rather than 4 (the pid got dropped).

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


  Commit: 84cc72b83cf668cac50e27ea2d2819cebab00991
      https://github.com/oracle/dtrace-utils/commit/84cc72b83cf668cac50e27ea2d2819cebab00991
  Author: Eugene Loh <eugene.loh at oracle.com>
  Date:   2025-08-12 (Tue, 12 Aug 2025)

  Changed paths:
    M libdtrace/dt_cg.c
    A test/unittest/error/tst.trace_string.d

  Log Message:
  -----------
  Pad strings in the output buffer with NUL bytes after terminating byte

The consumer checks if there are non-NUL bytes after the terminating
NUL byte to decide whether to print the contents of the output buffer
as a string or as raw bytes.  So, for strings, make sure that the
string is padded with NUL bytes.

A robust test that shows the problem can be hard to devise.  Some tests
encounter the problem.  This patch adds another test that might show
the problem.

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Nick Alcock <nick.alcock at oracle.com>


Compare: https://github.com/oracle/dtrace-utils/compare/4e8c23df7a3b...84cc72b83cf6

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