Home | History | Annotate | Download | only in daemon

Lines Matching refs:trans

47 static void do_lru(struct transient * trans)
56 if (trans->anon == entry)
57 clear_trans_current(trans);
58 if (trans->last_anon == entry)
59 clear_trans_last(trans);
77 static void clear_anon_maps(struct transient * trans)
79 unsigned long hash = hash_anon(trans->tgid, trans->app_cookie);
80 pid_t tgid = trans->tgid;
81 cookie_t app = trans->app_cookie;
86 clear_trans_current(trans);
91 if (trans->last_anon == entry)
92 clear_trans_last(trans);
109 add_anon_mapping(struct transient * trans, vma_t start, vma_t end, char * name)
111 unsigned long hash = hash_anon(trans->tgid, trans->app_cookie);
113 m->tgid = trans->tgid;
114 m->app_cookie = trans->app_cookie;
121 do_lru(trans);
131 static void get_anon_maps(struct transient * trans)
138 snprintf(buf, PATH_MAX, "/proc/%d/maps", trans->tgid);
157 add_anon_mapping(trans, start, end, name);
165 anon_match(struct transient const * trans, struct anon_mapping const * anon)
169 if (trans->tgid != anon->tgid)
171 if (trans->app_cookie != anon->app_cookie)
173 if (trans->pc < anon->start)
175 return (trans->pc < anon->end);
179 struct anon_mapping * find_anon_mapping(struct transient * trans)
181 unsigned long hash = hash_anon(trans->tgid, trans->app_cookie);
186 if (anon_match(trans, trans->anon))
187 return (trans->anon);
192 if (anon_match(trans, entry))
197 clear_anon_maps(trans);
198 get_anon_maps(trans);
215 trans->pc);