On 6/26/15 11:44 PM, He Kuang wrote:
@@ -1141,13 +1141,13 @@ kprobe_perf_func(struct trace_kprobe *tk, struct pt_regs *regs) int size, __size, dsize; int rctx;- if (prog && !trace_call_bpf(prog, regs)) - return; - head = this_cpu_ptr(call->perf_events); if (hlist_empty(head)) return; + if (prog && !trace_call_bpf(prog, regs)) + return;
I considered doing that before placing it where it is now. There were some issues with this approach. Trying to remember. I'm traveling at the moment. Will elaborate next week. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

