From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: Re: [PATCH v6 bpf-next 07/11] tracepoint: introduce kernel_tracepoint_find_by_name Date: Tue, 27 Mar 2018 08:53:21 -0700 Message-ID: <8600dbae-389d-dd01-f003-44f1af7dcf0a@fb.com> References: <20180327024706.2064725-1-ast@fb.com> <20180327024706.2064725-8-ast@fb.com> <20180327100711.0ec7aafb@gandalf.local.home> <1566743692.1117.1522160304471.JavaMail.zimbra@efficios.com> <20180327104242.3594bcac@gandalf.local.home> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Daniel Borkmann , Linus Torvalds , Peter Zijlstra , netdev , kernel-team , linux-api To: Steven Rostedt , Mathieu Desnoyers Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:38244 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752043AbeC0Py3 (ORCPT ); Tue, 27 Mar 2018 11:54:29 -0400 In-Reply-To: <20180327104242.3594bcac@gandalf.local.home> Sender: netdev-owner@vger.kernel.org List-ID: On 3/27/18 7:42 AM, Steven Rostedt wrote: > On Tue, 27 Mar 2018 10:18:24 -0400 (EDT) > Mathieu Desnoyers wrote: > >> ----- On Mar 27, 2018, at 10:07 AM, rostedt rostedt@goodmis.org wrote: >> >>> On Mon, 26 Mar 2018 19:47:02 -0700 >>> Alexei Starovoitov wrote: >>> >>>> From: Alexei Starovoitov >>>> >>>> introduce kernel_tracepoint_find_by_name() helper to let bpf core >>>> find tracepoint by name and later attach bpf probe to a tracepoint >>>> >>>> Signed-off-by: Alexei Starovoitov >>> >>> Reviewed-by: Steven Rostedt (VMware) >> >> Steven showed preference for tracepoint_kernel_find_by_name() at some >> point (starting with a tracepoint_ prefix). I'm find with either of >> the names. > > Yeah, I do prefer tracepoint_kernel_find_by_name() to stay consistent > with the other tracepoint functions. But we have > "for_each_kernel_tracepoint()" and not "for_each_tracepoint_kernel()", > thus we need to pick being consistent with one or the other. One answer > is to use tracpoint_kernel_find_by_name() and rename the for_each to > for_each_tracpoint_kernel(). yep. that's exactly the reason I picked kernel_tracepoint_find_by_name() to match for_each_kernel_tracepoint() naming. I can certainly send a follow up patch to rename both to *tracepoint_kernel* and then you can nack it because it breaks lttng :) but let's do it in a separate thread. Daniel, do you mind adding { } as Steven requested while applying or you want me to resubmit the whole thing? Thanks!