Lines Matching refs:entry
960 struct dentry *entry; in ftrace_profile_tracefs() local
991 entry = tracefs_create_file("function_profile_enabled", 0644, in ftrace_profile_tracefs()
993 if (!entry) in ftrace_profile_tracefs()
1117 struct ftrace_func_entry *entry; in __ftrace_lookup_ip() local
1123 hlist_for_each_entry_rcu_notrace(entry, hhd, hlist) { in __ftrace_lookup_ip()
1124 if (entry->ip == ip) in __ftrace_lookup_ip()
1125 return entry; in __ftrace_lookup_ip()
1150 struct ftrace_func_entry *entry) in __add_hash_entry() argument
1155 key = ftrace_hash_key(hash, entry->ip); in __add_hash_entry()
1157 hlist_add_head(&entry->hlist, hhd); in __add_hash_entry()
1163 struct ftrace_func_entry *entry; in add_hash_entry() local
1165 entry = kmalloc(sizeof(*entry), GFP_KERNEL); in add_hash_entry()
1166 if (!entry) in add_hash_entry()
1169 entry->ip = ip; in add_hash_entry()
1170 __add_hash_entry(hash, entry); in add_hash_entry()
1177 struct ftrace_func_entry *entry) in free_hash_entry() argument
1179 hlist_del(&entry->hlist); in free_hash_entry()
1180 kfree(entry); in free_hash_entry()
1186 struct ftrace_func_entry *entry) in remove_hash_entry() argument
1188 hlist_del_rcu(&entry->hlist); in remove_hash_entry()
1196 struct ftrace_func_entry *entry; in ftrace_hash_clear() local
1205 hlist_for_each_entry_safe(entry, tn, hhd, hlist) in ftrace_hash_clear()
1206 free_hash_entry(hash, entry); in ftrace_hash_clear()
1319 struct ftrace_func_entry *entry; in alloc_and_copy_ftrace_hash() local
1338 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in alloc_and_copy_ftrace_hash()
1339 ret = add_hash_entry(new_hash, entry->ip); in alloc_and_copy_ftrace_hash()
1364 struct ftrace_func_entry *entry; in dup_hash() local
1390 hlist_for_each_entry_safe(entry, tn, hhd, hlist) { in dup_hash()
1391 remove_hash_entry(src, entry); in dup_hash()
1392 __add_hash_entry(new_hash, entry); in dup_hash()
2390 struct ftrace_func_entry *entry; in ftrace_find_rec_direct() local
2392 entry = __ftrace_lookup_ip(direct_functions, ip); in ftrace_find_rec_direct()
2393 if (!entry) in ftrace_find_rec_direct()
2396 return entry->direct; in ftrace_find_rec_direct()
3932 struct ftrace_func_entry *entry; in enter_record() local
3935 entry = ftrace_lookup_ip(hash, rec->ip); in enter_record()
3938 if (!entry) in enter_record()
3941 free_hash_entry(hash, entry); in enter_record()
3944 if (entry) in enter_record()
4350 struct ftrace_func_entry entry; member
4390 struct ftrace_func_entry *entry; in ftrace_func_mapper_find_ip() local
4393 entry = ftrace_lookup_ip(&mapper->hash, ip); in ftrace_func_mapper_find_ip()
4394 if (!entry) in ftrace_func_mapper_find_ip()
4397 map = (struct ftrace_func_map *)entry; in ftrace_func_mapper_find_ip()
4412 struct ftrace_func_entry *entry; in ftrace_func_mapper_add_ip() local
4415 entry = ftrace_lookup_ip(&mapper->hash, ip); in ftrace_func_mapper_add_ip()
4416 if (entry) in ftrace_func_mapper_add_ip()
4423 map->entry.ip = ip; in ftrace_func_mapper_add_ip()
4426 __add_hash_entry(&mapper->hash, &map->entry); in ftrace_func_mapper_add_ip()
4444 struct ftrace_func_entry *entry; in ftrace_func_mapper_remove_ip() local
4448 entry = ftrace_lookup_ip(&mapper->hash, ip); in ftrace_func_mapper_remove_ip()
4449 if (!entry) in ftrace_func_mapper_remove_ip()
4452 map = (struct ftrace_func_map *)entry; in ftrace_func_mapper_remove_ip()
4455 remove_hash_entry(&mapper->hash, entry); in ftrace_func_mapper_remove_ip()
4456 kfree(entry); in ftrace_func_mapper_remove_ip()
4472 struct ftrace_func_entry *entry; in free_ftrace_func_mapper() local
4484 hlist_for_each_entry(entry, hhd, hlist) { in free_ftrace_func_mapper()
4485 map = (struct ftrace_func_map *)entry; in free_ftrace_func_mapper()
4532 struct ftrace_func_entry *entry; in register_ftrace_function_probe() local
4599 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in register_ftrace_function_probe()
4600 if (ftrace_lookup_ip(old_hash, entry->ip)) in register_ftrace_function_probe()
4609 entry->ip, data, in register_ftrace_function_probe()
4661 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in register_ftrace_function_probe()
4662 if (ftrace_lookup_ip(old_hash, entry->ip)) in register_ftrace_function_probe()
4664 probe_ops->free(probe_ops, tr, entry->ip, probe->data); in register_ftrace_function_probe()
4675 struct ftrace_func_entry *entry; in unregister_ftrace_function_probe_func() local
4740 hlist_for_each_entry_safe(entry, tmp, &hash->buckets[i], hlist) { in unregister_ftrace_function_probe_func()
4743 kallsyms_lookup(entry->ip, NULL, NULL, in unregister_ftrace_function_probe_func()
4749 remove_hash_entry(hash, entry); in unregister_ftrace_function_probe_func()
4750 hlist_add_head(&entry->hlist, &hhd); in unregister_ftrace_function_probe_func()
4778 hlist_for_each_entry_safe(entry, tmp, &hhd, hlist) { in unregister_ftrace_function_probe_func()
4779 hlist_del(&entry->hlist); in unregister_ftrace_function_probe_func()
4781 probe_ops->free(probe_ops, tr, entry->ip, probe->data); in unregister_ftrace_function_probe_func()
4782 kfree(entry); in unregister_ftrace_function_probe_func()
4949 struct ftrace_func_entry *entry; in ftrace_match_addr() local
4955 entry = ftrace_lookup_ip(hash, ip); in ftrace_match_addr()
4956 if (!entry) in ftrace_match_addr()
4958 free_hash_entry(hash, entry); in ftrace_match_addr()
5046 struct ftrace_direct_func *entry; in ftrace_find_direct_func() local
5050 list_for_each_entry_rcu(entry, &ftrace_direct_funcs, next) { in ftrace_find_direct_func()
5051 if (entry->addr == addr) { in ftrace_find_direct_func()
5057 return entry; in ftrace_find_direct_func()
5096 struct ftrace_func_entry *entry; in register_ftrace_direct() local
5145 entry = kmalloc(sizeof(*entry), GFP_KERNEL); in register_ftrace_direct()
5146 if (!entry) in register_ftrace_direct()
5153 kfree(entry); in register_ftrace_direct()
5158 entry->ip = ip; in register_ftrace_direct()
5159 entry->direct = addr; in register_ftrace_direct()
5160 __add_hash_entry(direct_functions, entry); in register_ftrace_direct()
5171 remove_hash_entry(direct_functions, entry); in register_ftrace_direct()
5172 kfree(entry); in register_ftrace_direct()
5200 struct ftrace_func_entry *entry; in find_direct_entry() local
5207 entry = __ftrace_lookup_ip(direct_functions, rec->ip); in find_direct_entry()
5208 if (!entry) { in find_direct_entry()
5221 return entry; in find_direct_entry()
5227 struct ftrace_func_entry *entry; in unregister_ftrace_direct() local
5232 entry = find_direct_entry(&ip, NULL); in unregister_ftrace_direct()
5233 if (!entry) in unregister_ftrace_direct()
5243 remove_hash_entry(direct_functions, entry); in unregister_ftrace_direct()
5254 kfree(entry); in unregister_ftrace_direct()
5287 int __weak ftrace_modify_direct_caller(struct ftrace_func_entry *entry, in ftrace_modify_direct_caller() argument
5323 entry->direct = new_addr; in ftrace_modify_direct_caller()
5356 struct ftrace_func_entry *entry; in modify_ftrace_direct() local
5363 entry = find_direct_entry(&ip, &rec); in modify_ftrace_direct()
5364 if (!entry) in modify_ftrace_direct()
5368 if (entry->direct != old_addr) in modify_ftrace_direct()
5392 ret = ftrace_modify_direct_caller(entry, rec, old_addr, new_addr); in modify_ftrace_direct()
5394 entry->direct = new_addr; in modify_ftrace_direct()
5738 struct ftrace_func_entry *entry; member
5750 struct ftrace_func_entry *entry = fgd->entry; in __g_next() local
5757 if (entry) { in __g_next()
5758 hlist_for_each_entry_continue(entry, hlist) { in __g_next()
5759 fgd->entry = entry; in __g_next()
5760 return entry; in __g_next()
5768 hlist_for_each_entry(entry, head, hlist) { in __g_next()
5769 fgd->entry = entry; in __g_next()
5771 return entry; in __g_next()
5802 fgd->entry = NULL; in g_start()
5813 struct ftrace_func_entry *entry = v; in g_show() local
5815 if (!entry) in g_show()
5818 if (entry == FTRACE_GRAPH_EMPTY) { in g_show()
5828 seq_printf(m, "%ps\n", (void *)entry->ip); in g_show()
6028 struct ftrace_func_entry *entry; in ftrace_graph_set_hash() local
6051 entry = ftrace_lookup_ip(hash, rec->ip); in ftrace_graph_set_hash()
6056 if (entry) in ftrace_graph_set_hash()
6061 if (entry) { in ftrace_graph_set_hash()
6062 free_hash_entry(hash, entry); in ftrace_graph_set_hash()
6378 struct ftrace_func_entry *entry; in clear_mod_from_hash() local
6387 entry = __ftrace_lookup_ip(hash, rec->ip); in clear_mod_from_hash()
6393 if (entry) in clear_mod_from_hash()
6394 entry->ip = 0; in clear_mod_from_hash()
6757 struct ftrace_func_entry *entry; in clear_func_from_hash() local
6759 entry = ftrace_lookup_ip(hash, func->ip); in clear_func_from_hash()
6765 if (entry) in clear_func_from_hash()
6766 entry->ip = 0; in clear_func_from_hash()