Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752607Ab3FQPfJ (ORCPT ); Mon, 17 Jun 2013 11:35:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28832 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751290Ab3FQPfI (ORCPT ); Mon, 17 Jun 2013 11:35:08 -0400 Date: Mon, 17 Jun 2013 17:30:42 +0200 From: Oleg Nesterov To: Masami Hiramatsu Cc: Steven Rostedt , Frederic Weisbecker , Ingo Molnar , Srikar Dronamraju , "zhangwei(Jovi)" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] tracing/kprobes: Turn trace_probe->files into list_head Message-ID: <20130617153042.GA1102@redhat.com> References: <20130616172152.GA8543@redhat.com> <51BEAAA1.20806@hitachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51BEAAA1.20806@hitachi.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1242 Lines: 42 On 06/17, Masami Hiramatsu wrote: > > (2013/06/17 2:21), Oleg Nesterov wrote: > > > > This needs the extra sizeof(list_head) memory for every attached > > ftrace_event_file, hopefully not a problem in this case. > > I think it's no problem, because the number depends on the instances > and it could not be so much. :) Yes, agreed. > Acked-by: Masami Hiramatsu Thanks! Given that 2/3 should update the comments (or should be dropped if you do not like it), this ones should be rediffed. And, I just noticed typo in this patch, > > @@ -209,29 +199,18 @@ enable_trace_probe(struct trace_probe *tp, struct ftrace_event_file *file) > > ... > > + link->file = file; > > + list_add_rcu(&link->list, &tp->files); I meant list_add_tail_rcu(). I guess this doesn't matter at all, still I'd like to avoid any visible changes in behaviour. Otherwise we could use hlist or even single list, although this doesn't really matter too. I'll preserve your ack. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/