ENUM DSO_BINARY_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum dso_binary_type(9) ✨

okay so this is a page from the Kernel API Manual, and it's all about the enum dso_binary_type β€” like, the glow-up list that tells you what kind of DSO a memory region is rocking. and yes bestie, "memory region" here means a struct map, iykyk πŸ’…


πŸ¦‹ NAME πŸ¦‹

enum dso_binary_type β€” the kind of DSO generally associated with a memory region (that's a struct map, btw 🫢).


🌸 SYNOPSIS 🌸

enum dso_binary_type {
    DSO_BINARY_TYPE__KALLSYMS ,
    DSO_BINARY_TYPE__GUEST_KALLSYMS ,
    DSO_BINARY_TYPE__VMLINUX ,
    DSO_BINARY_TYPE__GUEST_VMLINUX ,
    DSO_BINARY_TYPE__JAVA_JIT ,
    DSO_BINARY_TYPE__DEBUGLINK ,
    DSO_BINARY_TYPE__BUILD_ID_CACHE ,
    DSO_BINARY_TYPE__BUILD_ID_CACHE_DEBUGINFO ,
    DSO_BINARY_TYPE__FEDORA_DEBUGINFO ,
    DSO_BINARY_TYPE__UBUNTU_DEBUGINFO ,
    DSO_BINARY_TYPE__MIXEDUP_UBUNTU_DEBUGINFO ,
    DSO_BINARY_TYPE__BUILDID_DEBUGINFO ,
    DSO_BINARY_TYPE__GNU_DEBUGDATA ,
    DSO_BINARY_TYPE__SYSTEM_PATH_DSO ,
    DSO_BINARY_TYPE__GUEST_KMODULE ,
    DSO_BINARY_TYPE__GUEST_KMODULE_COMP ,
    DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE ,
    DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE_COMP ,
    DSO_BINARY_TYPE__KCORE ,
    DSO_BINARY_TYPE__GUEST_KCORE ,
    DSO_BINARY_TYPE__OPENEMBEDDED_DEBUGINFO ,
    DSO_BINARY_TYPE__BPF_PROG_INFO ,
    DSO_BINARY_TYPE__BPF_IMAGE ,
    DSO_BINARY_TYPE__OOL ,
    DSO_BINARY_TYPE__NOT_FOUND

};

πŸŽ€ Constants πŸŽ€

like, every single member of the squad, one by one, no skips πŸ’–

  • DSO_BINARY_TYPE__KALLSYMS β€” symbols from the /proc/kallsyms file ✨
  • DSO_BINARY_TYPE__GUEST_KALLSYMS β€” the guest /proc/kallsyms file 🧚
  • DSO_BINARY_TYPE__VMLINUX β€” path to the kernel /boot/vmlinux file πŸ‘‘
  • DSO_BINARY_TYPE__GUEST_VMLINUX β€” path to the guest kernel /boot/vmlinux file πŸ¦‹
  • DSO_BINARY_TYPE__JAVA_JIT β€” symbols from the /tmp/perf.map file ⭐
  • DSO_BINARY_TYPE__DEBUGLINK β€” a debug file you can read straight from the file path in the .gnu_debuglink ELF section of the dso πŸ”₯
  • DSO_BINARY_TYPE__BUILD_ID_CACHE β€” a file named after the buildid, chilling in the buildid cache with an elf filename πŸ’…
  • DSO_BINARY_TYPE__BUILD_ID_CACHE_DEBUGINFO β€” a file named after the buildid, chilling in the buildid cache with a debug filename 🌸
  • DSO_BINARY_TYPE__FEDORA_DEBUGINFO β€” debug file in /usr/lib/debug with a .debug suffix πŸ“
  • DSO_BINARY_TYPE__UBUNTU_DEBUGINFO β€” debug file in /usr/lib/debug πŸ’œ
  • DSO_BINARY_TYPE__MIXEDUP_UBUNTU_DEBUGINFO β€” the dso__long_name debuginfo file living in /usr/lib/debug/lib instead of the expected /usr/lib/debug/usr/lib πŸ™ˆ (yes, "mixedup" is literally the name, it's giving chaotic energy)
  • DSO_BINARY_TYPE__BUILDID_DEBUGINFO β€” a file named after the buildid, located in /usr/lib/debug/.build-id/ 🌈
  • DSO_BINARY_TYPE__GNU_DEBUGDATA β€” MiniDebuginfo, where a compressed ELF file gets placed in a .gnu_debugdata section πŸŽ€
  • DSO_BINARY_TYPE__SYSTEM_PATH_DSO β€” a regular executable/shared-object file, no drama πŸ’«
  • DSO_BINARY_TYPE__GUEST_KMODULE β€” guest kernel module .ko file 🧚
  • DSO_BINARY_TYPE__GUEST_KMODULE_COMP β€” guest kernel module .ko.gz file 😭 (compressed era)
  • DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE β€” kernel module .ko file πŸ‘‘
  • DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE_COMP β€” kernel module .ko.gz file πŸ”₯
  • DSO_BINARY_TYPE__KCORE β€” the /proc/kcore file πŸ’€
  • DSO_BINARY_TYPE__GUEST_KCORE β€” the guest /proc/kcore file πŸ¦‹
  • DSO_BINARY_TYPE__OPENEMBEDDED_DEBUGINFO β€” Openembedded/Yocto -dbg package debug info 🌸
  • DSO_BINARY_TYPE__BPF_PROG_INFO β€” jitted BPF code ⭐
  • DSO_BINARY_TYPE__BPF_IMAGE β€” jitted BPF trampoline or dispatcher code ✨
  • DSO_BINARY_TYPE__OOL β€” out of line code, like kprobe-replaced instructions, or optimized kprobes, or ftrace trampolines πŸ”₯
  • DSO_BINARY_TYPE__NOT_FOUND β€” unknown DSO kind, the "idk her" of the enum 😭

🌟 SEE ALSO 🌟

  • Kernel file ./tools/perf/util/dso.h
  • struct dso_id(9)

k that's the whole page bestie, you ate it up πŸ’… and just so you know where it came from β€” it lives in ./tools/perf/util, dated October 2026, and it's signed off as enum dso_binary_type(9) fr fr πŸ«Άβœ¨πŸ’–

πŸ“¦ where this page comes from