libbpf / blazesym

blazesym is a library for address symbolization and related tasks
BSD 3-Clause "New" or "Revised" License
119 stars 25 forks source link

capi: Add support for tapping into traces #901

Closed danielocfb closed 1 week ago

danielocfb commented 1 week ago

The main Rust crate allows for configuration of the generic tracing infrastructure to glean some insights into what is going on. So far the C library didn't have any mechanism for tapping into that. This change adds such infrastructure with the new blaze_trace() function, which allows for registration of a callback function that is invoked for each emitted trace line. It is intended to be used to better understand what is going on.

Closes: #587

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 84.78261% with 14 lines in your changes missing coverage. Please review.

Project coverage is 94.41%. Comparing base (58307de) to head (3e15d9e).

Files with missing lines Patch % Lines
capi/src/trace.rs 84.78% 14 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #901 +/- ## ========================================== - Coverage 94.50% 94.41% -0.09% ========================================== Files 56 57 +1 Lines 10140 10232 +92 ========================================== + Hits 9583 9661 +78 - Misses 557 571 +14 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.