Home
last modified time | relevance | path

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

/linux-6.1.9/tools/perf/util/
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()
/linux-6.1.9/tools/perf/tests/
Dperf-hooks.c49 DEFINE_SUITE("perf hooks", perf_hooks);
Dtests.h133 DECLARE_SUITE(perf_hooks);