Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757199Ab3GQToO (ORCPT ); Wed, 17 Jul 2013 15:44:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34552 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757109Ab3GQToM (ORCPT ); Wed, 17 Jul 2013 15:44:12 -0400 Date: Wed, 17 Jul 2013 21:39:00 +0200 From: Oleg Nesterov To: Steven Rostedt Cc: Masami Hiramatsu , "zhangwei(Jovi)" , Jiri Olsa , Peter Zijlstra , Arnaldo Carvalho de Melo , Srikar Dronamraju , Frederic Weisbecker , Ingo Molnar , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/4] tracing: Turn "id"->i_private into call->event.type Message-ID: <20130717193900.GA15667@redhat.com> References: <20130716185723.GA21193@redhat.com> <1374004146.6458.57.camel@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1374004146.6458.57.camel@gandalf.local.home> 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: 867 Lines: 25 On 07/16, Steven Rostedt wrote: > > On Tue, 2013-07-16 at 20:57 +0200, Oleg Nesterov wrote: > > ftrace_event_id_fops and event_id_read() is overcomplicated. > > > > 1. Change event_create_dir() to pass "data = call->event.type" > > to debugfs_create_file(). > > > > This means that ftrace_event_id_fops doesn't need .open() > > and event_id_read() can simply print (int)i_private > > > > 2. event_id_read() has no reason to kmalloc "struct trace_seq" > > (more than PAGE_SIZE!), it can use a small buffer. > > Make #2 a separate patch. You can add it before this one. OK. I'll extract #2 and re-send. 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/