4

I noticed there is ~/.debug/ contain probes and elf files for many libraries. What program actually create this? structure like this:

.debug/
├── .build-id
├── home
├── [kernel.kallsyms]
├── usr
Wang
  • 1,296

1 Answers1

5

This directory is created by perf command.

perf.wiki.kernel.org: The build-id cache

Given that build-id are immutable, they uniquely identify a binary. If a binary is recompiled, a new build-id is generated and a new copy of the ELF images is saved in the cache. The cache is saved on disk in a directory which is by default $HOME/.debug.

GAD3R
  • 66,769