Support dtrace on macOS for USDT probes #757

Open
opened 2025-03-24 01:46:09 +00:00 by jade · 1 comment
Owner

We implemented USDT probes on Linux in cl/2884. We can support dtrace on macOS, in theory.

It appears that there's not an Apple (tm) dtrace package in nixpkgs yet, so that needs fixing as a preliminary action. It looks to be in the Apple SDK lock file in nixpkgs, so it exists, but AFAICT there is no packaging.

That tool is just required to generate the .o and .h files to do the probes. I am about to file a nixpkgs packaging request and shove it in the external issue tracker please hold.

Update: no it DOES exist, see darwin.dtrace in nixpkgs. So then we just have to do some minimal packaging in Lix.

We implemented USDT probes on Linux in cl/2884. We can support dtrace on macOS, in theory. ~~It appears that there's not an Apple (tm) dtrace package in nixpkgs yet, so that needs fixing as a preliminary action. It looks to be in the Apple SDK lock file in nixpkgs, so it *exists*, but AFAICT there is no packaging.~~ That tool is just required to generate the .o and .h files to do the probes. ~~I am about to file a nixpkgs packaging request and shove it in the external issue tracker please hold.~~ Update: no it DOES exist, see `darwin.dtrace` in nixpkgs. So then we just have to do some minimal packaging in Lix.
jade changed title from Support dtrace on macOS to Support dtrace on macOS for USDT probes 2025-03-24 01:46:29 +00:00
jade self-assigned this 2025-03-24 19:52:26 +00:00
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/2888 ("WIP: support dtrace in the Lix macOS package")
  • commit message in cl/2887 ("dtrace: fix on macOS (except in the package)")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2888", "number": 2888, "kind": "commit message"}, {"backlink": "https://gerrit.lix.systems/c/lix/+/2887", "number": 2887, "kind": "commit message"}], "cl_meta": {"2888": {"change_title": "WIP: support dtrace in the Lix macOS package"}, "2887": {"change_title": "dtrace: fix on macOS (except in the package)"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/2888](https://gerrit.lix.systems/c/lix/+/2888) ("WIP: support dtrace in the Lix macOS package") * commit message in [cl/2887](https://gerrit.lix.systems/c/lix/+/2887) ("dtrace: fix on macOS (except in the package)")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#757
No description provided.