Lines Matching defs:hooks
11 hooks_t hooks;
15 seq_define(hooks_internal_t, hooks)
18 static seq_hooks_t hooks[HOOK_MAX];
23 return malloc_mutex_init(&hooks_mu, "hooks", WITNESS_RANK_HOOK,
31 bool success = seq_try_load_hooks(&hooks_internal, &hooks[i]);
35 hooks_internal.hooks = *to_install;
37 seq_store_hooks(&hooks[i], &hooks_internal);
41 return &hooks[i];
64 /* Should only remove hooks that were added. */
75 char *hooks_begin = (char *)&hooks[0];
76 char *hooks_end = (char *)&hooks[HOOK_MAX];
92 (hooks_internal_ptr), &hooks[for_each_hook_counter]); \
105 * We prevent user reentrancy within hooks. This is basically just a
111 * execution. Allocating during extent hooks is not officially
120 * not using hooks because they're too slow is easy for us to miss.
160 hook_alloc h = hook.hooks.alloc_hook;
162 h(hook.hooks.extra, type, result, result_raw, args_raw);
174 hook_dalloc h = hook.hooks.dalloc_hook;
176 h(hook.hooks.extra, type, address, args_raw);
188 hook_expand h = hook.hooks.expand_hook;
190 h(hook.hooks.extra, type, address, old_usize, new_usize,