Home
last modified time | relevance | path

Searched refs:perf_hooks (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/tools/perf/util/
H A Dperf-hooks.c55 static struct perf_hook_desc *perf_hooks[] = { variable
66 for (i = 0; i < ARRAY_SIZE(perf_hooks); i++) { in perf_hooks__set_hook()
67 if (strcmp(hook_name, perf_hooks[i]->hook_name) != 0) in perf_hooks__set_hook()
70 if (*(perf_hooks[i]->p_hook_func)) in perf_hooks__set_hook()
72 *(perf_hooks[i]->p_hook_func) = hook_func; in perf_hooks__set_hook()
73 perf_hooks[i]->hook_ctx = hook_ctx; in perf_hooks__set_hook()
83 for (i = 0; i < ARRAY_SIZE(perf_hooks); i++) { in perf_hooks__get_hook()
84 if (strcmp(hook_name, perf_hooks[i]->hook_name) != 0) in perf_hooks__get_hook()
87 return *(perf_hooks[i]->p_hook_func); in perf_hooks__get_hook()
/openbmc/linux/tools/perf/tests/
H A Dperf-hooks.c49 DEFINE_SUITE("perf hooks", perf_hooks);
H A Dtests.h130 DECLARE_SUITE(perf_hooks);