51 #include <sys/types.h> 64 #define NULL_OR_NAME(v) ((v) ? (v)->name : "(NULL)") 72 TMSG(NORM_IP,
"normalizing %p, w load_module %s", unnormalized_ip,
NULL_OR_NAME(lm));
84 TMSG(NORM_IP,
"%p not normalizable", unnormalized_ip);
86 EMSG(
"/proc/maps below");
88 snprintf(tmp,
sizeof(tmp),
"/proc/%u/maps", getpid());
89 FILE* loadmap = fopen(tmp,
"r");
90 char linebuf[1024 + 1];
92 char* l = fgets(linebuf,
sizeof(linebuf), loadmap);
102 .lm_ip = (uintptr_t) unnormalized_ip};
ip_normalized_t hpcrun_normalize_ip(void *unnormalized_ip, load_module_t *lm)
#define ip_normalized_NULL
struct ip_normalized_t ip_normalized_t
uintptr_t start_to_ref_dist
#define HPCRUN_FMT_LMId_NULL
load_module_t * hpcrun_loadmap_findByAddr(void *begin, void *end)
const ip_normalized_t ip_normalized_NULL_lval