// Loadlib_aix.cpp contains support code for analysing the memory // layout of loaded binaries in ones own process space. // // It is needed, among other things, to provide dladdr(3), which is // missing on AIX.
// Struct holds information about a single loaded library module. // Note that on AIX, a single library can be spread over multiple // uintptr_t ranges on a module base, eg. // libC.a(shr3_64.o) or libC.a(shrcore_64.o).
// Note: all pointers to strings (path, member) point to strings which are immortal. struct loaded_module_t {
// Points to the full path of the lodaed module, e.g. // "/usr/lib/libC.a". constchar* path;
// Host library name without path constchar* shortname;
// Points to the object file (AIX specific stuff) // e.g "shrcore_64.o". constchar* member;
// Text area from, to constvoid* text;
size_t text_len;
// Data area from, to constvoid* data;
size_t data_len;
// True if this module is part of the vm. bool is_in_vm;
// Next item in the list, or NULL if no such item exits
loaded_module_t* next;
};
// This class is a singleton holding a map of all loaded binaries // in the AIX process space. class LoadedLibraries // : AllStatic (including allocation.hpp just for AllStatic is overkill.)
{
public:
// Rebuild the internal module table. If an error occurs, internal module // table remains untouched. staticbool reload();
// Check whether the given address points into the text segment of a // loaded module. Return true if this is the case. // Optionally, information about the module is returned (info) staticbool find_for_text_address ( constvoid* p,
loaded_module_t* info // Optional, leave NULL if not needed.
);
// Check whether the given address points into the data segment of a // loaded module. Return true if this is the case. // Optionally, information about the module is returned (info) staticbool find_for_data_address ( constvoid* p,
loaded_module_t* info // Optional, leave NULL if not needed.
);
// Output debug info staticvoid print(outputStream* os);
// Apply the callback to each loaded_module_t in the list // Return false if module table is empty and cannot be loaded. staticbool for_each(os::LoadedModulesCallbackFunc cb, void* param);
};
#endif// OS_AIX_LOADLIB_AIX_HPP
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet am 2026-09-09)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.