Commit 4220b95
committed
Resolve debug symbols in containers
For the ELF file itself blazesym does the right thing by reading files like:
```
/proc/2367/map_files/79c8000-20aec000
```
This works great when the ELF files are in a container in a separate mount
namespace. When it comes to looking for split debug info via `debuglink`,
it tries looking in by the path in the root mount namespace, which does not
work, as the files are just not there. With this change we try checking
the process mount namespace first via `/proc/<xxx>/root`.
Signed-off-by: Ivan Babrou <[email protected]>1 parent 0fca873 commit 4220b95
2 files changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| 216 | + | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
537 | 548 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
542 | 552 | | |
543 | 553 | | |
544 | 554 | | |
545 | 555 | | |
546 | | - | |
| 556 | + | |
547 | 557 | | |
548 | 558 | | |
549 | 559 | | |
| |||
0 commit comments