cuviper / probe-rs

probe: Static probes for Rust
Apache License 2.0
92 stars 9 forks source link

Split `probe!` and `probe_lazy!` for arg eval #21

Closed cuviper closed 1 year ago

cuviper commented 1 year ago

We now evaluate probe! arguments unconditionally, while probe_lazy! avoids that when there's no observer. For SystemTap SDT, that means only the latter defines and uses a semaphore.

Closes #19.

caizixian commented 1 year ago

Thanks for the PR. It looks good. And lazy is an appropriate name as the arguments are computed on demand.