Re: [PATCH 1/2] tracing: add support for userspace stacktraces in tracing/iter_ctrl

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Sunday, November 23, 2008 - 1:37 am

* Török Edwin <edwintorok@gmail.com> wrote:


Small detail: please s/return_address/ret_addr - its expressive power 
is the same but as a bonus it will cause less col-80 related 
linebreaks in usage sites.


Style: put a newline after variable definitions please.


Style: please use curly braces around multi-line conditional 
statements.


Detail: please move the whole "if (current->mm)" into a 
__save_stack_trace_user() helper function - that way it reads cleaner.


Bug: this should not be CONFIG_X86. Please introduce (in a separate 
patch from other cleanups) a CONFIG_USER_STACKTRACE_SUPPORT in 
arch/x86/Kconfig and use that instead.


Style: these should be tabs, not spaces ^^^^^^^^^^^^


Detail: please use the customary ftrace variable definitions style:


note how it's ordered by line length.


Detail: please use "unsigned int" so that we have less type patterns 
to look for.


Detail: do we need that commented-out condition?

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] tracing: userspace stacktraces, Török Edwin, (Sat Nov 22, 4:28 am)
Re: [PATCH 0/2] tracing: userspace stacktraces, Ingo Molnar, (Sun Nov 23, 1:26 am)
Re: [PATCH 1/2] tracing: add support for userspace stacktr ..., Ingo Molnar, (Sun Nov 23, 1:37 am)
[PATCH] vfs, seqfile: make mangle_path() global, Ingo Molnar, (Sun Nov 23, 1:47 am)
Re: [PATCH 0/2] tracing: userspace stacktraces, Török Edwin, (Sun Nov 23, 2:24 am)
Re: [PATCH 0/2] tracing: userspace stacktraces, Ingo Molnar, (Sun Nov 23, 2:30 am)
[PATCH 1/3] tracing/stack-tracer: fix style issues, Török Edwin, (Sun Nov 23, 3:39 am)
[PATCH 2/3] tracing/stack-tracer: fix locking, Török Edwin, (Sun Nov 23, 3:39 am)
Re: [PATCH 2/3] tracing/stack-tracer: fix locking, Ingo Molnar, (Sun Nov 23, 3:52 am)
Re: [PATCH 2/3] tracing/stack-tracer: fix locking, Török Edwin, (Sun Nov 23, 3:59 am)
Re: [PATCH 2/3] tracing/stack-tracer: fix locking, Ingo Molnar, (Sun Nov 23, 4:01 am)
Re: [PATCH 2/3] tracing/stack-tracer: fix locking, Török Edwin, (Sun Nov 23, 4:04 am)
Re: [PATCH 2/3] tracing/stack-tracer: fix locking, Ingo Molnar, (Sun Nov 23, 4:07 am)
[PATCH] tracing/stack-tracer: avoid races accessing file, Török Edwin, (Sun Nov 23, 4:08 am)
Re: [PATCH] vfs, seqfile: make mangle_path() global, Randy Dunlap, (Sun Nov 23, 2:06 pm)
[PATCH] fix comment style on mangle_path, Török Edwin, (Sun Nov 23, 2:24 pm)
Re: [PATCH] fix comment style on mangle_path, Ingo Molnar, (Sun Nov 23, 2:36 pm)
Re: [PATCH 2/2] tracing: identify which executable object ..., Frank Ch. Eigler, (Tue Nov 25, 7:40 am)
Re: [PATCH 2/2] tracing: identify which executable object ..., Frank Ch. Eigler, (Thu Nov 27, 5:48 am)
Re: [PATCH] vfs, seqfile: make mangle_path() global, Ingo Molnar, (Fri Nov 28, 10:08 am)
Re: [PATCH 2/2] tracing: identify which executable object ..., =?ISO-8859-1?Q?T=F6r ..., (Tue Dec 9, 12:49 pm)