map__objdump_2mem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ map__objdump_2mem(9) ✨

okay bestie, this one lives in the Kernel API Manual and honestly? it's a little translator fairy 🧚 that speaks both objdump and memory. let's get into it πŸ’…


🌸 NAME 🌸

map__objdump_2mem β€” the glow-up that turns an objdump address into a memory address, no cap πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

u64 map__objdump_2mem (const struct map *map , u64 ip );

πŸŽ€ ARGUMENTS πŸŽ€

  • map β€” the memory map, aka the vibe check context you're working inside πŸ—ΊοΈ
  • ip β€” the objdump address you wanna convert, the main character of this whole function ⭐

πŸ’œ DESCRIPTION πŸ’œ

so this function is closely related to map__rip_2objdump β€” like, siblings, same energy, opposite directions πŸ”. what it does is take an address that came out of objdump and convert it into a memory address. translation service, but make it kernel 🫢

⚠️ heads up bestie: this assumes that map actually contains the address. it's not out here verifying anything for you, it's just doing the math. so if you're not sure the map really covers it, don't just trust it blindly πŸ™ˆ

and if you wanna be sure the result is valid? you check it forwards, like this:

map__rip_2objdump(map__map_ip(map, map__objdump_2mem(map, ip))) == ip

if that round-trips back to ip, you're golden ✨ slay.


πŸ”₯ RETURN πŸ”₯

the memory address πŸ’« that's it, that's the whole return value, no surprises, we love a straightforward queen πŸ‘‘


🌈 SEE ALSO 🌈

  • kernel file ./tools/perf/util/map.c πŸ“
  • map__rip_2objdump(9) β€” the other half of this duo, go read it too, iykyk πŸ’…

later bestie!! this little page came from ./tools/perf/util, dated October 2026, and it's literally titled map__objdump_2mem(9) β€” mwah, go convert some addresses πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from