Re: [PATCH 0/3] Fix DTrace on modern kernels and in containers
Jacob Carlborg <[email protected]> Tue, 21 Jul 2026 08:27:53 +0200
| Newsgroups | dev.linux.lists.dtrace |
|---|---|
| Message-ID | <[email protected]> |
Another thing that is not working due to containers/namespaces is this = common filter pattern: =E2=80=9C/pid =3D=3D $target/=E2=80=9C. It has = the same problem that `pid` and `$target` are evaluated in different PID = namespaces. But I thought that was better to leave for a separate = thread. -- /Jacob Carlborg > On 20 Jul 2026, at 18:33, Kris Van Hees <[email protected]> = wrote: >=20 > Thanks for reporting these issues and sending patches. It ceetainly = highlights > an area where our testing is lacking, i.e. containers and related = namespace > issues. That will need some attention as well. >=20 >=20 > On Mon, Jul 20, 2026 at 03:30:57PM +0200, Jacob Carlborg wrote: >> 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 >>=20 >> 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. >>=20 >> The OrbStack environment is running version 7.0.11 of the Linux = kernel. The >> Kubernetes cluster is running 6.12.85. >>=20 >> I'll be honest, the analysis of the issues and the patches are all = done by an >> AI. I've verified everything manually myself. >>=20 >> Jacob Carlborg (3): >> libdtrace: resolve BTF type tags when importing BTF into CTF >> libdtrace: derive io provider dev_name from the device model >> libdtrace: match BEGIN/END PID in the tracer's own PID namespace >>=20 >> libdtrace/dt_btf.c | 20 ++++++++++++- >> libdtrace/dt_prov_dtrace.c | 58 = ++++++++++++++++++++++++++++++++++---- >> libdtrace/io.d.in | 17 +++++++++-- >> 3 files changed, 86 insertions(+), 9 deletions(-) >>=20 >> -- >> 2.50.1 (Apple Git-155) >>=20 >>=20 >>=20