ENUM PROBE_ATTACH_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

enum probe_attach_mode β€” bestie, this is the mode for attaching kprobe/uprobe. That’s the whole vibe for enum probe_attach_mode(9) in the Kernel API Manual. πŸŽ€


✨ SYNOPSIS ✨

enum probe_attach_mode {
    PROBE_ATTACH_MODE_DEFAULT ,
    PROBE_ATTACH_MODE_LEGACY ,
    PROBE_ATTACH_MODE_PERF ,
    PROBE_ATTACH_MODE_LINK

};

🌸 Constants 🌸

Okay so these constants are listed, but the page literally gives us -- undescribed -- for every single one. No lore, no tea, no extra details. Respecting the source material, periodt. πŸ’…

  • PROBE_ATTACH_MODE_DEFAULT β€” -- undescribed --
  • PROBE_ATTACH_MODE_LEGACY β€” -- undescribed --
  • PROBE_ATTACH_MODE_PERF β€” -- undescribed --
  • PROBE_ATTACH_MODE_LINK β€” -- undescribed --

πŸ¦‹ Description πŸ¦‹

This one forces libbpf to attach kprobe/uprobe in a specific mode. If the kernel doesn’t support that mode, then -ENOTSUP will be returned. That’s the entire description, bestie β€” short and iconic. 😭✨


πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./tools/lib/bpf/libbpf.h

That’s the page, bestie. It comes from ./tools/lib/bpf and is dated October 2026. Slay, bye! πŸ’–πŸ«Ά

πŸ“¦ where this page comes from