Re: [PATCH v10 3/5] bpf: add a bpf_override_function helper

From
Alexei Starovoitov <hidden>
Date
2017-12-15 20:34:51
Also in
lkml
Reply to
Josef Bacik, 2017-12-15
On 12/15/17 11:12 AM, Josef Bacik wrote:
quoted hunk ↗ jump to hunk
+#ifdef CONFIG_BPF_KPROBE_OVERRIDE
+BPF_CALL_2(bpf_override_return, struct pt_regs *, regs, unsigned long, rc)
+{
+	__this_cpu_write(bpf_kprobe_override, 1);
+	regs_set_return_value(regs, rc);
+	arch_ftrace_kprobe_override_function(regs);
+	return 0;
+}
since you're doing a respin can you adopt the change I did to make
this helper fail at load time if that #config is not set
instead of runtime?

Also how big is the v9-v10 change ?
May be do it as separate patch, since previous set already sitting
in bpf-next and there are patches on top?
Thread (19 messages) 19 messages, 4 authors, last reply 2017-12-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help