Debian Codegraph @

runtime/linux/task_finder.c

raw
1 #ifndef TASK_FINDER_C
2 #define TASK_FINDER_C
3
4 /*
5 * Which utrace shall we use?
6 * (1) Built-in kernel utrace (preferred)
7 * (2) Internal utrace. Requires STAPCONF_UTRACE_VIA_TRACEPOINTS.
8 * (3) If we don't have either (old kernels or new kernels without all
9 * the pre-requisites), error.
10 */
11
12 #ifndef HAVE_TASK_FINDER
13 #error "Process probes not available without kernel CONFIG_TRACEPOINTS/CONFIG_ARCH_SUPPORTS_UPROBES/CONFIG_UPROBES. The latter method also requires specific tracepoints and task_work_add()."
14 #else /* HAVE_TASK_FINDER */
15 #include "task_finder2.c"
16 #endif /* HAVE_TASK_FINDER */
17 #endif /* TASK_FINDER_C */