3

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,212
  • 2
  • 15
  • 26

1 Answers1

4

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
  • 63,407
  • 31
  • 131
  • 192