Home | History | Annotate | Download | only in unit

Lines Matching refs:hook

22 	expect_u_gt(*len, 0, "Default backtrace hook returned empty backtrace");
24 "Default backtrace hook returned too large backtrace");
47 "Incorrect file name passed to the dump hook");
59 expect_false(mock_bt_hook_called, "Called mock hook before it's set");
64 EINVAL, "Incorrectly allowed NULL backtrace hook");
67 prof_backtrace_hook_t hook = &mock_bt_hook;
69 (void *)&default_hook, &default_hook_sz, (void *)&hook,
70 sizeof(hook)), 0, "Unexpected mallctl failure setting hook");
75 expect_true(mock_bt_hook_called, "Didn't call mock hook");
82 "Unexpected mallctl failure resetting hook to default");
84 expect_ptr_eq(current_hook, hook,
85 "Hook returned by mallctl is not equal to mock hook");
101 expect_false(mock_bt_hook_called, "Called mock hook before it's set");
104 prof_backtrace_hook_t hook = &mock_bt_augmenting_hook;
106 (void *)&default_hook, &default_hook_sz, (void *)&hook,
107 sizeof(hook)), 0, "Unexpected mallctl failure setting hook");
112 expect_true(mock_bt_hook_called, "Didn't call mock hook");
119 "Unexpected mallctl failure resetting hook to default");
121 expect_ptr_eq(current_hook, hook,
122 "Hook returned by mallctl is not equal to mock hook");
138 expect_false(mock_dump_hook_called, "Called dump hook before it's set");
141 prof_dump_hook_t hook = &mock_dump_hook;
143 (void *)&default_hook, &default_hook_sz, (void *)&hook,
144 sizeof(hook)), 0, "Unexpected mallctl failure setting hook");
149 expect_true(mock_dump_hook_called, "Didn't call mock hook");
156 "Unexpected mallctl failure resetting hook to default");
158 expect_ptr_eq(current_hook, hook,
159 "Hook returned by mallctl is not equal to mock hook");