Lines Matching refs:new_hash
1319 struct ftrace_hash *new_hash; in alloc_and_copy_ftrace_hash() local
1324 new_hash = alloc_ftrace_hash(size_bits); in alloc_and_copy_ftrace_hash()
1325 if (!new_hash) in alloc_and_copy_ftrace_hash()
1329 new_hash->flags = hash->flags; in alloc_and_copy_ftrace_hash()
1333 return new_hash; in alloc_and_copy_ftrace_hash()
1338 ret = add_hash_entry(new_hash, entry->ip); in alloc_and_copy_ftrace_hash()
1344 FTRACE_WARN_ON(new_hash->count != hash->count); in alloc_and_copy_ftrace_hash()
1346 return new_hash; in alloc_and_copy_ftrace_hash()
1349 free_ftrace_hash(new_hash); in alloc_and_copy_ftrace_hash()
1359 struct ftrace_hash *new_hash);
1364 struct ftrace_hash *new_hash; in dup_hash() local
1380 new_hash = alloc_ftrace_hash(bits); in dup_hash()
1381 if (!new_hash) in dup_hash()
1384 new_hash->flags = src->flags; in dup_hash()
1391 __add_hash_entry(new_hash, entry); in dup_hash()
1394 return new_hash; in dup_hash()
1415 struct ftrace_hash *new_hash; in ftrace_hash_move() local
1422 new_hash = __ftrace_hash_move(src); in ftrace_hash_move()
1423 if (!new_hash) in ftrace_hash_move()
1429 ret = ftrace_hash_ipmodify_update(ops, new_hash); in ftrace_hash_move()
1431 free_ftrace_hash(new_hash); in ftrace_hash_move()
1442 rcu_assign_pointer(*dst, new_hash); in ftrace_hash_move()
1901 struct ftrace_hash *new_hash) in __ftrace_hash_update_ipmodify() argument
1927 if (!new_hash || !old_hash) in __ftrace_hash_update_ipmodify()
1938 in_new = !!ftrace_lookup_ip(new_hash, rec->ip); in __ftrace_hash_update_ipmodify()
1986 in_new = !!ftrace_lookup_ip(new_hash, rec->ip); in __ftrace_hash_update_ipmodify()
2022 struct ftrace_hash *new_hash) in ftrace_hash_ipmodify_update() argument
2029 if (ftrace_hash_empty(new_hash)) in ftrace_hash_ipmodify_update()
2030 new_hash = NULL; in ftrace_hash_ipmodify_update()
2032 return __ftrace_hash_update_ipmodify(ops, old_hash, new_hash); in ftrace_hash_ipmodify_update()
2469 struct ftrace_hash *new_hash; in ftrace_add_rec_direct() local
2476 new_hash = dup_hash(direct_functions, size); in ftrace_add_rec_direct()
2477 if (!new_hash) in ftrace_add_rec_direct()
2481 direct_functions = new_hash; in ftrace_add_rec_direct()
4342 struct ftrace_hash **orig_hash, *new_hash; in process_mod_list() local
4353 new_hash = alloc_and_copy_ftrace_hash(FTRACE_HASH_DEFAULT_BITS, in process_mod_list()
4355 if (!new_hash) in process_mod_list()
4387 match_records(new_hash, func, strlen(func), mod); in process_mod_list()
4392 new_hash->flags &= ~FTRACE_HASH_FL_MOD; in process_mod_list()
4397 new_hash, enable); in process_mod_list()
4403 free_ftrace_hash(new_hash); in process_mod_list()
6195 struct ftrace_hash *new_hash; member
6299 struct ftrace_hash *new_hash = NULL; in __ftrace_graph_open() local
6312 new_hash = alloc_ftrace_hash(size_bits); in __ftrace_graph_open()
6314 new_hash = alloc_and_copy_ftrace_hash(size_bits, in __ftrace_graph_open()
6316 if (!new_hash) { in __ftrace_graph_open()
6329 free_ftrace_hash(new_hash); in __ftrace_graph_open()
6330 new_hash = NULL; in __ftrace_graph_open()
6339 fgd->new_hash = new_hash; in __ftrace_graph_open()
6411 struct ftrace_hash *old_hash, *new_hash; in ftrace_graph_release() local
6430 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_release()
6436 new_hash = __ftrace_hash_move(fgd->new_hash); in ftrace_graph_release()
6437 if (!new_hash) { in ftrace_graph_release()
6447 rcu_assign_pointer(ftrace_graph_hash, new_hash); in ftrace_graph_release()
6451 rcu_assign_pointer(ftrace_graph_notrace_hash, new_hash); in ftrace_graph_release()
6471 free_ftrace_hash(fgd->new_hash); in ftrace_graph_release()
6556 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_write()