• Home
  • Raw
  • Download

Lines Matching refs:entry

964 	struct dentry *entry;  in ftrace_profile_tracefs()  local
995 entry = tracefs_create_file("function_profile_enabled", 0644, in ftrace_profile_tracefs()
997 if (!entry) in ftrace_profile_tracefs()
1129 struct ftrace_func_entry *entry; in __ftrace_lookup_ip() local
1135 hlist_for_each_entry_rcu_notrace(entry, hhd, hlist) { in __ftrace_lookup_ip()
1136 if (entry->ip == ip) in __ftrace_lookup_ip()
1137 return entry; in __ftrace_lookup_ip()
1162 struct ftrace_func_entry *entry) in __add_hash_entry() argument
1167 key = ftrace_hash_key(hash, entry->ip); in __add_hash_entry()
1169 hlist_add_head(&entry->hlist, hhd); in __add_hash_entry()
1175 struct ftrace_func_entry *entry; in add_hash_entry() local
1177 entry = kmalloc(sizeof(*entry), GFP_KERNEL); in add_hash_entry()
1178 if (!entry) in add_hash_entry()
1181 entry->ip = ip; in add_hash_entry()
1182 __add_hash_entry(hash, entry); in add_hash_entry()
1189 struct ftrace_func_entry *entry) in free_hash_entry() argument
1191 hlist_del(&entry->hlist); in free_hash_entry()
1192 kfree(entry); in free_hash_entry()
1198 struct ftrace_func_entry *entry) in remove_hash_entry() argument
1200 hlist_del_rcu(&entry->hlist); in remove_hash_entry()
1208 struct ftrace_func_entry *entry; in ftrace_hash_clear() local
1217 hlist_for_each_entry_safe(entry, tn, hhd, hlist) in ftrace_hash_clear()
1218 free_hash_entry(hash, entry); in ftrace_hash_clear()
1331 struct ftrace_func_entry *entry; in alloc_and_copy_ftrace_hash() local
1350 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in alloc_and_copy_ftrace_hash()
1351 ret = add_hash_entry(new_hash, entry->ip); in alloc_and_copy_ftrace_hash()
1377 struct ftrace_func_entry *entry; in __ftrace_hash_move() local
1410 hlist_for_each_entry_safe(entry, tn, hhd, hlist) { in __ftrace_hash_move()
1411 remove_hash_entry(src, entry); in __ftrace_hash_move()
1412 __add_hash_entry(new_hash, entry); in __ftrace_hash_move()
3765 struct ftrace_func_entry *entry; in enter_record() local
3768 entry = ftrace_lookup_ip(hash, rec->ip); in enter_record()
3771 if (!entry) in enter_record()
3774 free_hash_entry(hash, entry); in enter_record()
3777 if (entry) in enter_record()
4183 struct ftrace_func_entry entry; member
4223 struct ftrace_func_entry *entry; in ftrace_func_mapper_find_ip() local
4226 entry = ftrace_lookup_ip(&mapper->hash, ip); in ftrace_func_mapper_find_ip()
4227 if (!entry) in ftrace_func_mapper_find_ip()
4230 map = (struct ftrace_func_map *)entry; in ftrace_func_mapper_find_ip()
4245 struct ftrace_func_entry *entry; in ftrace_func_mapper_add_ip() local
4248 entry = ftrace_lookup_ip(&mapper->hash, ip); in ftrace_func_mapper_add_ip()
4249 if (entry) in ftrace_func_mapper_add_ip()
4256 map->entry.ip = ip; in ftrace_func_mapper_add_ip()
4259 __add_hash_entry(&mapper->hash, &map->entry); in ftrace_func_mapper_add_ip()
4277 struct ftrace_func_entry *entry; in ftrace_func_mapper_remove_ip() local
4281 entry = ftrace_lookup_ip(&mapper->hash, ip); in ftrace_func_mapper_remove_ip()
4282 if (!entry) in ftrace_func_mapper_remove_ip()
4285 map = (struct ftrace_func_map *)entry; in ftrace_func_mapper_remove_ip()
4288 remove_hash_entry(&mapper->hash, entry); in ftrace_func_mapper_remove_ip()
4289 kfree(entry); in ftrace_func_mapper_remove_ip()
4305 struct ftrace_func_entry *entry; in free_ftrace_func_mapper() local
4317 hlist_for_each_entry(entry, hhd, hlist) { in free_ftrace_func_mapper()
4318 map = (struct ftrace_func_map *)entry; in free_ftrace_func_mapper()
4365 struct ftrace_func_entry *entry; in register_ftrace_function_probe() local
4432 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in register_ftrace_function_probe()
4433 if (ftrace_lookup_ip(old_hash, entry->ip)) in register_ftrace_function_probe()
4442 entry->ip, data, in register_ftrace_function_probe()
4494 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in register_ftrace_function_probe()
4495 if (ftrace_lookup_ip(old_hash, entry->ip)) in register_ftrace_function_probe()
4497 probe_ops->free(probe_ops, tr, entry->ip, probe->data); in register_ftrace_function_probe()
4508 struct ftrace_func_entry *entry; in unregister_ftrace_function_probe_func() local
4573 hlist_for_each_entry_safe(entry, tmp, &hash->buckets[i], hlist) { in unregister_ftrace_function_probe_func()
4576 kallsyms_lookup(entry->ip, NULL, NULL, in unregister_ftrace_function_probe_func()
4582 remove_hash_entry(hash, entry); in unregister_ftrace_function_probe_func()
4583 hlist_add_head(&entry->hlist, &hhd); in unregister_ftrace_function_probe_func()
4611 hlist_for_each_entry_safe(entry, tmp, &hhd, hlist) { in unregister_ftrace_function_probe_func()
4612 hlist_del(&entry->hlist); in unregister_ftrace_function_probe_func()
4614 probe_ops->free(probe_ops, tr, entry->ip, probe->data); in unregister_ftrace_function_probe_func()
4615 kfree(entry); in unregister_ftrace_function_probe_func()
4782 struct ftrace_func_entry *entry; in ftrace_match_addr() local
4788 entry = ftrace_lookup_ip(hash, ip); in ftrace_match_addr()
4789 if (!entry) in ftrace_match_addr()
4791 free_hash_entry(hash, entry); in ftrace_match_addr()
5175 struct ftrace_func_entry *entry; member
5187 struct ftrace_func_entry *entry = fgd->entry; in __g_next() local
5194 if (entry) { in __g_next()
5195 hlist_for_each_entry_continue(entry, hlist) { in __g_next()
5196 fgd->entry = entry; in __g_next()
5197 return entry; in __g_next()
5205 hlist_for_each_entry(entry, head, hlist) { in __g_next()
5206 fgd->entry = entry; in __g_next()
5208 return entry; in __g_next()
5239 fgd->entry = NULL; in g_start()
5250 struct ftrace_func_entry *entry = v; in g_show() local
5252 if (!entry) in g_show()
5255 if (entry == FTRACE_GRAPH_EMPTY) { in g_show()
5265 seq_printf(m, "%ps\n", (void *)entry->ip); in g_show()
5465 struct ftrace_func_entry *entry; in ftrace_graph_set_hash() local
5488 entry = ftrace_lookup_ip(hash, rec->ip); in ftrace_graph_set_hash()
5493 if (entry) in ftrace_graph_set_hash()
5498 if (entry) { in ftrace_graph_set_hash()
5499 free_hash_entry(hash, entry); in ftrace_graph_set_hash()
5786 struct ftrace_func_entry *entry; in clear_mod_from_hash() local
5795 entry = __ftrace_lookup_ip(hash, rec->ip); in clear_mod_from_hash()
5801 if (entry) in clear_mod_from_hash()
5802 entry->ip = 0; in clear_mod_from_hash()
6150 struct ftrace_func_entry *entry; in clear_func_from_hash() local
6152 entry = ftrace_lookup_ip(hash, func->ip); in clear_func_from_hash()
6158 if (entry) in clear_func_from_hash()
6159 entry->ip = 0; in clear_func_from_hash()