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

cli: Add --map-files option to normalize user sub-command #866

Closed d-e-s-o closed 3 weeks ago

d-e-s-o commented 3 weeks ago

Introduce the --map-files option to the 'normalize user' sub-command. This option can be used to switch over to reporting '/proc//map_files/' paths as part of the address normalization process.

  $ cargo run -p blazecli -- normalize user --pid 13466 0x7fdf2b957000
  > 0x007fdf2b957000: file offset 0x357000 in /usr/lib64/libcrypto.so.3

  $ cargo run -p blazecli -- normalize user --pid 13466 0x7fdf2b957000 --map-files
  > 0x007fdf2b957000: file offset 0x357000 in /proc/13466/map_files/7fdf2b957000-7fdf2ba3c000
codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.39%. Comparing base (d7878ac) to head (0b2295f). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #866 +/- ## ======================================= Coverage 95.39% 95.39% ======================================= Files 55 55 Lines 10522 10522 ======================================= Hits 10037 10037 Misses 485 485 ```

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