From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 1/3] ftrace: graph of a single function Date: Wed, 3 Dec 2008 13:32:42 -0800 Message-ID: <20081203133242.4e80bbe6.akpm@linux-foundation.org> References: <20081203203656.776893226@goodmis.org> <20081203203828.920111079@goodmis.org> <20081203130741.473c1262.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, mingo@elte.hu, fweisbec@gmail.com, peterz@infradead.org, arjan@infradead.org, dave@linux.vnet.ibm.com, containers@lists.osdl.org, ebiederm@xmission.com, sukadev@linux.vnet.ibm.com, serue@us.ibm.com, srostedt@redhat.com List-Id: containers.vger.kernel.org On Wed, 3 Dec 2008 16:10:38 -0500 (EST) Steven Rostedt wrote: > > > On Wed, 3 Dec 2008, Andrew Morton wrote: > > > On Wed, 03 Dec 2008 15:36:57 -0500 > > Steven Rostedt wrote: > > > > > +static int g_show(struct seq_file *m, void *v) > > > +{ > > > + unsigned long *ptr = v; > > > + char str[KSYM_SYMBOL_LEN]; > > > + > > > + if (!ptr) > > > + return 0; > > > + > > > + kallsyms_lookup(*ptr, NULL, NULL, NULL, str); > > > + > > > + seq_printf(m, "%s\n", str); > > > > Can we use %pF here? > > If there's a way to not print the "+offset". Could be added, I guess. I wonder if it would be reused elsewhere. > blk_unplug looks much nicer than blk_unplug+0x78/0x278