Lines Matching defs:tgid
5 * Our caching of maps has some problems: if we get tgid reuse,
36 * anon cache, we'll tear down all the mappings for that tgid. Thus, LRU
71 static unsigned long hash_anon(pid_t tgid, cookie_t app)
73 return ((app >> DCOOKIE_SHIFT) ^ (tgid >> 2)) & (HASH_SIZE - 1);
79 unsigned long hash = hash_anon(trans->tgid, trans->app_cookie);
80 pid_t tgid = trans->tgid;
90 if (entry->tgid == tgid && entry->app_cookie == app) {
103 printf("Cleared anon maps for tgid %u (%s).\n", tgid, name);
111 unsigned long hash = hash_anon(trans->tgid, trans->app_cookie);
113 m->tgid = trans->tgid;
124 printf("Added anon map 0x%llx-0x%llx for tgid %u (%s).\n",
125 start, end, m->tgid, name);
138 snprintf(buf, PATH_MAX, "/proc/%d/maps", trans->tgid);
169 if (trans->tgid != anon->tgid)
181 unsigned long hash = hash_anon(trans->tgid, trans->app_cookie);
213 verbprintf(vmisc, "Found range 0x%llx-0x%llx for tgid %u, pc %llx.\n",
214 entry->start, entry->end, (unsigned int)entry->tgid,