[DTrace-devel] [oracle/dtrace-utils] b46b8b: cg: move get_member() to dt_cg.c
Alan Maguire
noreply at github.com
Tue Jul 22 13:19:32 UTC 2025
Branch: refs/heads/devel
Home: https://github.com/oracle/dtrace-utils
Commit: b46b8bd1c169f7eb880e0a32c1297565ceb6fa89
https://github.com/oracle/dtrace-utils/commit/b46b8bd1c169f7eb880e0a32c1297565ceb6fa89
Author: Alan Maguire <alan.maguire at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M libdtrace/dt_cg.c
M libdtrace/dt_cg.h
M libdtrace/dt_prov_io.c
M libdtrace/dt_prov_ip.c
M libdtrace/dt_prov_proc.c
M libdtrace/dt_prov_sched.c
M libdtrace/dt_prov_uprobe.c
Log Message:
-----------
cg: move get_member() to dt_cg.c
It will be used by both dt_prov_ip.c and dt_prov_tcp.c. Updated the
dt_cg_ctf_offsetof() function to provide the load/store operand size
if needed sp that the new dt_cg_tramp_get_member() can use that rather
doing its own type lookup, etc.
Updated all uses of dt_cg_ctf_offsetof() and dt_cg_tramp_get_member().
Signed-off-by: Alan Maguire <alan.maguire at oracle.com>
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
Commit: 963aee42b9a80128e0fa1d4c233ffaee6fe84282
https://github.com/oracle/dtrace-utils/commit/963aee42b9a80128e0fa1d4c233ffaee6fe84282
Author: Kris Van Hees <kris.van.hees at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M libdtrace/dt_cg.c
M libdtrace/dt_parser.c
M libdtrace/dt_parser.h
Log Message:
-----------
parser: add dt_node_is_tstring()
Returns 1 if the given node has a tstring associated with it. Internal
change to make implementing optimized tstring-handling easier.
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
Commit: 98f9c6c1b0baca06106aa5e94da2e4821eb172b5
https://github.com/oracle/dtrace-utils/commit/98f9c6c1b0baca06106aa5e94da2e4821eb172b5
Author: Kris Van Hees <kris.van.hees at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M libdtrace/dt_cg.c
Log Message:
-----------
cg: validate tstring alloc/free
Rather than indiscriminately resetting tstring allocations at the
beginning of a compilation, actually verify that alloc/free of
tstrings is done correctly, i.e. that none are left allocated after
compilation is done.
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
Commit: 5b20226bc930becbcbcf171ded3a195411bd6b5e
https://github.com/oracle/dtrace-utils/commit/5b20226bc930becbcbcf171ded3a195411bd6b5e
Author: Kris Van Hees <kris.van.hees at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M libdtrace/dt_cg.c
M libdtrace/dt_impl.h
A test/unittest/codegen/tst.tstring_ternary_mix.d
A test/unittest/codegen/tst.tstring_ternary_mix.r
A test/unittest/codegen/tst.tstring_ternary_nested.d
A test/unittest/codegen/tst.tstring_ternary_nested.r
Log Message:
-----------
cg: optimize ternary expressions for strings
If either side of a ternary expression has a tstring value, it can be
re-used to store the value of the ternary expression, reducing the
need for tstring allocation, especially in nested ternaries.
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
Commit: 59ed0bd094d39b266a13888c8ea98d9bfcb6f989
https://github.com/oracle/dtrace-utils/commit/59ed0bd094d39b266a13888c8ea98d9bfcb6f989
Author: Kris Van Hees <kris.van.hees at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M libdtrace/dt_cg.c
M libdtrace/dt_parser.c
M libdtrace/dt_parser.h
Log Message:
-----------
tstring: fix leaks
Temporary strings were not being freed in various places.
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
Commit: 52a37e910c4bfb3a006c04f9c7a85c26f1f37dee
https://github.com/oracle/dtrace-utils/commit/52a37e910c4bfb3a006c04f9c7a85c26f1f37dee
Author: Alan Maguire <alan.maguire at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M test/unittest/operators/tst.ternary.d
M test/unittest/operators/tst.ternary.r
Log Message:
-----------
test/operators: extend ternary tests to cover inet_ntoa*()s
inet_ntoa*() require temporary strings and ternary operators
need temporaries for left and right; ensure ternary ops succeed
with inet_ntoa*()s.
Suggested-by: Eugene Loh <eugene.loh at oracle.com>
Signed-off-by: Alan Maguire <alan.maguire at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
Commit: 068e4aa24b07cb312889edcf5d25f8229298c474
https://github.com/oracle/dtrace-utils/commit/068e4aa24b07cb312889edcf5d25f8229298c474
Author: Alan Maguire <alan.maguire at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M libdtrace/ip.d
M libdtrace/net.d
Log Message:
-----------
providers: move network-generic definitions to net.d
tcp.d and ip.d both need some of these generic definitions so move them
to the net.d library they both depend on.
Signed-off-by: Alan Maguire <alan.maguire at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
Commit: 0fa93b3ac071586ca422205c69df9cd9a30eba9f
https://github.com/oracle/dtrace-utils/commit/0fa93b3ac071586ca422205c69df9cd9a30eba9f
Author: Alan Maguire <alan.maguire at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M libdtrace/Build
A libdtrace/dt_prov_tcp.c
M libdtrace/dt_provider.c
M libdtrace/dt_provider.h
M libdtrace/net.d
M libdtrace/tcp.d
Log Message:
-----------
tcp: new provider
Based upon various fbt probe points support TCP send, receive,
state-change, accept-established, accept-refused, connect-request,
connect-established and connect-refused probes.
A few tweaks were needed to tcp.d to support the probes fully.
Signed-off-by: Alan Maguire <alan.maguire at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
Commit: 2af32c404565bae248de9a1e40458e22589ed4c1
https://github.com/oracle/dtrace-utils/commit/2af32c404565bae248de9a1e40458e22589ed4c1
Author: Alan Maguire <alan.maguire at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M dlibs/aarch64/5.11/ip.d
M dlibs/aarch64/5.11/net.d
M dlibs/aarch64/5.11/tcp.d
M dlibs/aarch64/5.12/ip.d
M dlibs/aarch64/5.12/net.d
M dlibs/aarch64/5.12/tcp.d
M dlibs/aarch64/5.14/ip.d
M dlibs/aarch64/5.14/net.d
M dlibs/aarch64/5.14/tcp.d
M dlibs/aarch64/5.16/ip.d
M dlibs/aarch64/5.16/net.d
M dlibs/aarch64/5.16/tcp.d
M dlibs/aarch64/5.2/ip.d
M dlibs/aarch64/5.2/net.d
M dlibs/aarch64/5.2/tcp.d
M dlibs/aarch64/5.6/ip.d
M dlibs/aarch64/5.6/net.d
M dlibs/aarch64/5.6/tcp.d
M dlibs/aarch64/6.1/ip.d
M dlibs/aarch64/6.1/net.d
M dlibs/aarch64/6.1/tcp.d
M dlibs/aarch64/6.10/ip.d
M dlibs/aarch64/6.10/net.d
M dlibs/aarch64/6.10/tcp.d
M dlibs/x86_64/5.11/ip.d
M dlibs/x86_64/5.11/net.d
M dlibs/x86_64/5.11/tcp.d
M dlibs/x86_64/5.12/ip.d
M dlibs/x86_64/5.12/net.d
M dlibs/x86_64/5.12/tcp.d
M dlibs/x86_64/5.14/ip.d
M dlibs/x86_64/5.14/net.d
M dlibs/x86_64/5.14/tcp.d
M dlibs/x86_64/5.16/ip.d
M dlibs/x86_64/5.16/net.d
M dlibs/x86_64/5.16/tcp.d
M dlibs/x86_64/5.2/ip.d
M dlibs/x86_64/5.2/net.d
M dlibs/x86_64/5.2/tcp.d
M dlibs/x86_64/5.6/ip.d
M dlibs/x86_64/5.6/net.d
M dlibs/x86_64/5.6/tcp.d
M dlibs/x86_64/6.1/ip.d
M dlibs/x86_64/6.1/net.d
M dlibs/x86_64/6.1/tcp.d
M dlibs/x86_64/6.10/ip.d
M dlibs/x86_64/6.10/net.d
M dlibs/x86_64/6.10/tcp.d
Log Message:
-----------
dlibs: sync ip.d, net.d and tcp.d
Sync dlibs with libdtrace versions.
Signed-off-by: Alan Maguire <alan.maguire at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
Commit: b8cc16369ebfbeb5370344fccfa6ed39878efbaa
https://github.com/oracle/dtrace-utils/commit/b8cc16369ebfbeb5370344fccfa6ed39878efbaa
Author: Alan Maguire <alan.maguire at oracle.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M test/unittest/tcp/test.x
Log Message:
-----------
unittest/tcp: update test.x
Now that the tcp provider is supported, update test.x.
Signed-off-by: Alan Maguire <alan.maguire at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
Compare: https://github.com/oracle/dtrace-utils/compare/ee8c066e8a52...b8cc16369ebf
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