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

Kris Van Hees noreply at github.com
Tue Jul 15 17:19:12 UTC 2025


  Branch: refs/heads/devel
  Home:   https://github.com/oracle/dtrace-utils
  Commit: 35989b4325a20a4441a57859086c376d632c8aca
      https://github.com/oracle/dtrace-utils/commit/35989b4325a20a4441a57859086c376d632c8aca
  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: fc085708eae024dcf47b22cd5dd4ed947ea600c0
      https://github.com/oracle/dtrace-utils/commit/fc085708eae024dcf47b22cd5dd4ed947ea600c0
  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: a1c8df420d846a10a8ed46274a31cff105fca244
      https://github.com/oracle/dtrace-utils/commit/a1c8df420d846a10a8ed46274a31cff105fca244
  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_clasue() 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: 626b1d9eb6c227c7401e57f1a15a2c2bd951a61a
      https://github.com/oracle/dtrace-utils/commit/626b1d9eb6c227c7401e57f1a15a2c2bd951a61a
  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: 6e24ded9b96cec3b0fd28adf8933bd801909f4dc
      https://github.com/oracle/dtrace-utils/commit/6e24ded9b96cec3b0fd28adf8933bd801909f4dc
  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 function 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/354b21092372...6e24ded9b96c

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