Skip to content

Fix DTrace on modern kernels and in containers

Jacob Carlborg dtrace 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Patch 1: also treat BTF_KIND_TYPE_TAG as a transparent modifier in dt_btf_real_type_by_id() (per review feedback).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libdtrace: resolve BTF type tags transparentlylibdtrace/dt_btf.c+20 -10 replies
2/3libdtrace: derive io provider dev_name from the device modellibdtrace/io.d.in+14 -30 replies
3/3libdtrace: match BEGIN/END PID in the tracer's own PID namespacelibdtrace/dt_prov_dtrace.c+53 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Fix DTrace on modern kernels and in containers

Hi, I've created three patches for the issues I've encountered when trying to get DTrace to work in my environments. One environment is on my local computer running macOS ARM64 using Docker through OrbStack. The other is our Kubernetes cluster in the cloud. The first two issues are differences in the Linux kernel compared to what DTrace expects. The third issue is container related.

The OrbStack environment is running version 7.0.11 of the Linux kernel. The Kubernetes cluster is running 6.12.85.

I'll be honest, the analysis of the issues and the patches are all done by an AI. I've verified everything manually myself.

Changes since v1:
- Patch 1: also treat BTF_KIND_TYPE_TAG as a transparent modifier in dt_btf_real_type_by_id() (per review feedback).

Jacob Carlborg (3):
libdtrace: resolve BTF type tags transparently
libdtrace: derive io provider dev_name from the device model
libdtrace: match BEGIN/END PID in the tracer's own PID namespace

 libdtrace/dt_btf.c         | 21 +++++++++++++-
 libdtrace/dt_prov_dtrace.c | 58 ++++++++++++++++++++++++++++++++++----
 libdtrace/io.d.in          | 17 +++++++++--
 3 files changed, 87 insertions(+), 9 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)