STRUCT DATA_LOC_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« struct data_loc_info(9) πŸ’«

okay bestie, welcome to the Kernel API Manual entry for struct data_loc_info(9) β€” the struct that is literally all about data location information. no cap, it’s a whole little bundle of fields and we are gonna go through every single one. 🫢


πŸŽ€ NAME πŸŽ€

struct data_loc_info β€” Data location information. it’s giving β€œdata-location information, but make it a struct,” and honestly? iconic. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

here’s the exact struct, bestie β€” every type and field name matching the source, no edits, no guesses:

struct data_loc_info {
    const struct arch *arch;
    struct thread *thread;
    struct map_symbol *ms;
    u64 ip;
    u64 var_addr;
    u8 cpumode;
    struct annotated_op_loc *op;
    struct debuginfo *di;
    int fbreg;
    bool fb_cfa;
    int type_offset;
 };
lowkey important: that closing }; is part of the struct, not me being dramatic. πŸ’€

πŸ’– Members πŸ’–

okay so the member roster is right here, and every single one is carrying its own info. periodt. 🌸

  • arch β€” the CPU architecture info lives here. πŸ›οΈ
  • thread β€” thread info, obviously. 🧡
  • ms β€” map and symbol info, together. πŸ—ΊοΈ
  • ip β€” instruction address. yes bestie, that ip. ⭐
  • var_addr β€” data address, specifically for global variables. 🌍
  • cpumode β€” CPU execution mode. πŸ”₯
  • op β€” instruction operand location, covering regs and offset. πŸŽ€
  • di β€” debug info. πŸ›
  • fbreg β€” frame base register. πŸ¦‹
  • fb_cfa β€” tells you whether the frame needs to check CFA. πŸ™ˆ
  • type_offset β€” the final offset in the type. πŸ’œ

🌈 SEE ALSO 🌈

the SEE ALSO squad is right here, bestie:

  • Kernel file ./tools/perf/util/annotate-data.h struct annotated_member(9)
  • struct type_hist_entry(9)
  • struct type_hist(9)
  • struct annotated_data_type(9)
  • struct annotated_data_stat(9)

mwah πŸ’‹ cute little sign-off: source/version is ./tools/perf/util, date is October 2026, and the page is struct data_loc_info(9). that’s the whole footer, bestie β€” now go be iconic with your data locations. πŸŽ€βœ¨

πŸ“¦ where this page comes from