Lines Matching refs:func_hash

69 	.func_hash		= &opsname.local_hash,			\
72 .func_hash = val, \
159 ops->func_hash = &ops->local_hash; in ftrace_ops_init()
1342 free_ftrace_hash(ops->func_hash->filter_hash); in ftrace_free_filter()
1343 free_ftrace_hash(ops->func_hash->notrace_hash); in ftrace_free_filter()
1527 hash.filter_hash = rcu_dereference_raw_notrace(ops->func_hash->filter_hash); in ftrace_ops_test()
1528 hash.notrace_hash = rcu_dereference_raw_notrace(ops->func_hash->notrace_hash); in ftrace_ops_test()
1669 hash = ops->func_hash->filter_hash; in __ftrace_hash_rec_update()
1670 other_hash = ops->func_hash->notrace_hash; in __ftrace_hash_rec_update()
1675 hash = ops->func_hash->notrace_hash; in __ftrace_hash_rec_update()
1676 other_hash = ops->func_hash->filter_hash; in __ftrace_hash_rec_update()
1807 if (ops->func_hash != &global_ops.local_hash) in ftrace_hash_rec_update_modify()
1818 if (op->func_hash == &global_ops.local_hash) in ftrace_hash_rec_update_modify()
1910 struct ftrace_hash *hash = ops->func_hash->filter_hash; in ftrace_hash_ipmodify_enable()
1921 struct ftrace_hash *hash = ops->func_hash->filter_hash; in ftrace_hash_ipmodify_disable()
1932 struct ftrace_hash *old_hash = ops->func_hash->filter_hash; in ftrace_hash_ipmodify_update()
2140 if (hash_contains_ip(ip, op->func_hash)) in ftrace_find_tramp_ops_any()
2209 hash_contains_ip(ip, op->func_hash)) in ftrace_find_tramp_ops_curr()
2225 if (hash_contains_ip(ip, op->func_hash)) in ftrace_find_tramp_ops_new()
2688 ops->old_hash.filter_hash = ops->func_hash->filter_hash; in ftrace_shutdown()
2689 ops->old_hash.notrace_hash = ops->func_hash->notrace_hash; in ftrace_shutdown()
2783 return ftrace_hash_empty(ops->func_hash->filter_hash) && in ops_traces_mod()
2784 ftrace_hash_empty(ops->func_hash->notrace_hash); in ops_traces_mod()
2806 if (!ftrace_hash_empty(ops->func_hash->filter_hash) && in ops_references_rec()
2807 !ftrace_lookup_ip(ops->func_hash->filter_hash, rec->ip)) in ops_references_rec()
2811 if (ftrace_lookup_ip(ops->func_hash->notrace_hash, rec->ip)) in ops_references_rec()
3132 !(ftrace_lookup_ip(ops->func_hash->filter_hash, rec->ip))) || in t_next()
3135 !ftrace_lookup_ip(ops->func_hash->notrace_hash, rec->ip)) || in t_next()
3184 ftrace_hash_empty(ops->func_hash->filter_hash)) || in t_start()
3186 ftrace_hash_empty(ops->func_hash->notrace_hash))) { in t_start()
3364 mutex_lock(&ops->func_hash->regex_lock); in ftrace_regex_open()
3367 hash = ops->func_hash->notrace_hash; in ftrace_regex_open()
3369 hash = ops->func_hash->filter_hash; in ftrace_regex_open()
3404 mutex_unlock(&ops->func_hash->regex_lock); in ftrace_regex_open()
3714 struct ftrace_hash **orig_hash = &trace_probe_ops.func_hash->filter_hash; in register_ftrace_function_probe()
3732 mutex_lock(&trace_probe_ops.func_hash->regex_lock); in register_ftrace_function_probe()
3808 mutex_unlock(&trace_probe_ops.func_hash->regex_lock); in register_ftrace_function_probe()
3827 struct ftrace_hash **orig_hash = &trace_probe_ops.func_hash->filter_hash; in __unregister_ftrace_function_probe()
3850 mutex_lock(&trace_probe_ops.func_hash->regex_lock); in __unregister_ftrace_function_probe()
3906 mutex_unlock(&trace_probe_ops.func_hash->regex_lock); in __unregister_ftrace_function_probe()
4103 if (ops->func_hash != &global_ops.local_hash) in ftrace_ops_update_code()
4107 if (op->func_hash == &global_ops.local_hash && in ftrace_ops_update_code()
4129 mutex_lock(&ops->func_hash->regex_lock); in ftrace_set_hash()
4132 orig_hash = &ops->func_hash->filter_hash; in ftrace_set_hash()
4134 orig_hash = &ops->func_hash->notrace_hash; in ftrace_set_hash()
4158 old_hash_ops.filter_hash = ops->func_hash->filter_hash; in ftrace_set_hash()
4159 old_hash_ops.notrace_hash = ops->func_hash->notrace_hash; in ftrace_set_hash()
4168 mutex_unlock(&ops->func_hash->regex_lock); in ftrace_set_hash()
4396 mutex_lock(&iter->ops->func_hash->regex_lock); in ftrace_regex_release()
4402 orig_hash = &iter->ops->func_hash->filter_hash; in ftrace_regex_release()
4404 orig_hash = &iter->ops->func_hash->notrace_hash; in ftrace_regex_release()
4408 old_hash_ops.filter_hash = iter->ops->func_hash->filter_hash; in ftrace_regex_release()
4409 old_hash_ops.notrace_hash = iter->ops->func_hash->notrace_hash; in ftrace_regex_release()
4419 mutex_unlock(&iter->ops->func_hash->regex_lock); in ftrace_regex_release()