map__objdump_2mem(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms