6 #include <linux/kernel.h>
8 #include <linux/signal.h>
10 #include <linux/slab.h>
12 #include <linux/errno.h>
21 static int runtime_instr_avail(
void)
23 return test_facility(64);
26 static void disable_runtime_instr(
void)
60 disable_runtime_instr();
62 task->
thread.ri_signum = 0;
67 unsigned int param32,
unsigned long param64)
101 if (!runtime_instr_avail())
112 (signum < SIGRTMIN || signum >
SIGRTMAX))
121 memset(cb, 0,
sizeof(*cb));
124 init_runtime_instr_cb(cb);
125 current->thread.ri_signum = signum;
130 load_runtime_instr_cb(cb);
135 static int __init runtime_instr_init(
void)
139 if (!runtime_instr_avail())
147 pr_info(
"Runtime instrumentation facility initialized\n");