Re: [patch] x86, ptrace: in-kernel BTS interface

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Markus Metzger <markus.t.metzger@...>
Cc: <andi-suse@...>, <hpa@...>, <linux-kernel@...>, <mingo@...>, <tglx@...>, <markus.t.metzger@...>, <suresh.b.siddha@...>, <roland@...>, <akpm@...>, <mtk.manpages@...>, <eranian@...>, <juan.villacis@...>
Date: Wednesday, April 30, 2008 - 9:03 am

I'm not quite sure on the kernel interface. How would a in kernel
subsystem use it for tracing itself for example?


Perhaps say it is only supported on modern Intel CPUs.


What is a parameter task?


Ifdef around whole file should be in the Makefile instead.
In fact it is already in there so it is obsolet



Should have a comment describing the locking of the variable. Is there is 
no need for some reason that should be also documented.


Why again is that all exported?


copy_to_user is a macro and using expressions with side effects in
macro arguments is usually a bad idea.


Define symbols for the magic numbers?


There should be a printk probably once at kernel boot time.



Are you sure that's complete? 



You could always use the __ typed variant even for the kernel.


If you write these comments in kerneldoc format (see 
Documentation/kernel-doc-nano-HOWTO.txt)
it might end up automatically in the extracted documentation.



Is that really a good way to handle such an error? How does the 
user program find out?


Hmm I suspect since that is not mainline you'll need to just ask
for the previous patches to be dropped, not remove the code explicitely.

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

Messages in current thread:
[patch] x86, ptrace: in-kernel BTS interface, Markus Metzger, (Wed Apr 30, 7:54 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Roland McGrath, (Fri May 2, 9:43 pm)
RE: [patch] x86, ptrace: in-kernel BTS interface, Metzger, Markus T, (Mon May 5, 5:09 am)
RE: [patch] x86, ptrace: in-kernel BTS interface, Roland McGrath, (Mon May 5, 7:03 pm)
Re: [patch] x86, ptrace: in-kernel BTS interface, stephane eranian, (Tue May 6, 2:39 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andi Kleen, (Sat May 3, 4:45 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andi Kleen, (Wed Apr 30, 9:03 am)
RE: [patch] x86, ptrace: in-kernel BTS interface, Metzger, Markus T, (Wed Apr 30, 11:30 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andi Kleen, (Wed Apr 30, 12:06 pm)
RE: [patch] x86, ptrace: in-kernel BTS interface, Metzger, Markus T, (Mon May 5, 2:25 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andrew Morton, (Wed Apr 30, 8:26 am)
RE: [patch] x86, ptrace: in-kernel BTS interface, Metzger, Markus T, (Wed Apr 30, 8:43 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andrew Morton, (Wed Apr 30, 8:55 am)