On Tue, 27 Mar 2018 13:02:11 -0400 Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > Honestly, I think this is too much of a short cut and a hack. I know > you want to keep it "simple" and save space, but you really should do > it the same way ftrace and perf do it. That is, create a section and > have all tracepoints create a structure that holds a pointer to the > tracepoint and to the bpf probe function. Then you don't even need the > kernel_tracepoint_find_by_name(), you just iterate over your table and > you get the tracepoint and the bpf function associated to it. Also, if you do it the perf/ftrace way, you get support for module tracepoints pretty much for free. Which would include tracepoints in networking code that is loaded by a module. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html