[DTrace-devel] [oracle/dtrace-utils] 7d9016: spec: ensure the include/dtrace hierarchy is inclu...

Kris Van Hees noreply at github.com
Tue Jul 15 19:48:18 UTC 2025


  Branch: refs/heads/devel
  Home:   https://github.com/oracle/dtrace-utils
  Commit: 7d9016b5fd56566bfd2c9beef218112fcde21374
      https://github.com/oracle/dtrace-utils/commit/7d9016b5fd56566bfd2c9beef218112fcde21374
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M dtrace.spec

  Log Message:
  -----------
  spec: ensure the include/dtrace hierarchy is included in dtrace-devel

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


  Commit: 44684406a1f31027ec97e7ad270a9391fc985a36
      https://github.com/oracle/dtrace-utils/commit/44684406a1f31027ec97e7ad270a9391fc985a36
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M include/dtrace/actions_defines.h
    M libdtrace/dt_cg.c
    M libdtrace/dt_grammar.y
    M libdtrace/dt_impl.h
    M libdtrace/dt_lex.l
    M libdtrace/dt_open.c
    M test/modules
    A test/unittest/actions/return/err.D_PROTO_ARG.str.d
    A test/unittest/actions/return/err.D_PROTO_ARG.str.r
    A test/unittest/actions/return/err.D_PROTO_ARG.void.d
    A test/unittest/actions/return/err.D_PROTO_ARG.void.r
    A test/unittest/actions/return/err.D_PROTO_LEN.missing_arg.d
    A test/unittest/actions/return/err.D_PROTO_LEN.missing_arg.r
    A test/unittest/actions/return/err.D_PROTO_LEN.too_many_args.d
    A test/unittest/actions/return/err.D_PROTO_LEN.too_many_args.r
    A test/unittest/actions/return/err.destructive.d
    A test/unittest/actions/return/err.destructive.r
    A test/unittest/actions/return/err.wrong-1.d
    A test/unittest/actions/return/err.wrong-1.r
    A test/unittest/actions/return/err.wrong-2.d
    A test/unittest/actions/return/err.wrong-2.r
    A test/unittest/actions/return/tst.destructive.d
    A test/unittest/actions/return/tst.destructive.r

  Log Message:
  -----------
  parser, cg: Implement the return() action

The return(n) action can be used for error injection by forcing a
given return value for a kernel function.

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


  Commit: d7b6bee7ab3ba8c16deae997aecc6d49bd3e3da0
      https://github.com/oracle/dtrace-utils/commit/d7b6bee7ab3ba8c16deae997aecc6d49bd3e3da0
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

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

  Log Message:
  -----------
  provider, cg: add reject_clause() callback

Future providers will require functionality to determine whether a
clause for one of its probes needs to be rejected for some reason.

Since the callback is invoked during trampoline creation, rejection
must result in a compilation error.  The callback is responsible for
this.  If it returns, the clause is accepted.

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


  Commit: 017605bfd980a631e5c72dd8d51b49f08fd2cc47
      https://github.com/oracle/dtrace-utils/commit/017605bfd980a631e5c72dd8d51b49f08fd2cc47
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M libdtrace/dt_cg.c
    M libdtrace/dt_errtags.h
    M libdtrace/dtrace.h

  Log Message:
  -----------
  cg: reject clauses using return() by default

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


  Commit: 39fc2cd9314fe0c4a78c6bb6f8e99f6b5ad3eef6
      https://github.com/oracle/dtrace-utils/commit/39fc2cd9314fe0c4a78c6bb6f8e99f6b5ad3eef6
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M libdtrace/dt_prov_fbt.c
    A test/unittest/actions/return/err.not_allowed-1.d
    A test/unittest/actions/return/err.not_allowed-1.r
    A test/unittest/actions/return/err.not_allowed-2.d
    A test/unittest/actions/return/err.not_allowed-2.r
    A test/unittest/actions/return/err.not_allowed-3.d
    A test/unittest/actions/return/err.not_allowed-3.r

  Log Message:
  -----------
  rawfbt: selectively allow return() in clauses

The return() action is only allowed in clauses associated with a rawfbt
probe on a function listed in /sys/kernel/debug/error_injexction/list.
Use a reject_clause() callback in the rawfbt provider to enforce this.

The list of allowed functions is only initialized the first time it is
needed, and its content will be stored in a hashtable for faster
lookup beyond the first.

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


Compare: https://github.com/oracle/dtrace-utils/compare/6e24ded9b96c...39fc2cd9314f

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