• Home
  • Raw
  • Download

Lines Matching refs:trans

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