* Re: + kernelh-printk-panic-string-cleanup.patch added to -mm tree [not found] <201002242107.o1OL7F6v020376@imap1.linux-foundation.org> @ 2010-02-24 21:34 ` Frederic Weisbecker 2010-02-24 22:21 ` Steven Rostedt 2010-02-25 1:55 ` Dave Young 0 siblings, 2 replies; 4+ messages in thread From: Frederic Weisbecker @ 2010-02-24 21:34 UTC (permalink / raw) To: akpm, Steven Rostedt Cc: mm-commits, hidave.darkstar, gregkh, kosaki.motohiro, lizf, mingo, rostedt, linux-kernel On Wed, Feb 24, 2010 at 01:07:15PM -0800, akpm@linux-foundation.org wrote: > > The patch titled > kernel.h: printk/panic/string cleanup > has been added to the -mm tree. Its filename is > kernelh-printk-panic-string-cleanup.patch > > Before you just go and hit "reply", please: > a) Consider who else should be cc'ed > b) Prefer to cc a suitable mailing list as well > c) Ideally: find the original patch on the mailing list and do a > reply-to-all to that, adding suitable additional cc's > > *** Remember to use Documentation/SubmitChecklist when testing your code *** > > See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find > out what to do about this > > The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ Andrew, please don't merge this patch. I'm not against the idea kernel.h gets split up a bit, by having a prink.h and panic.h included from kernel.h for example. But this patch breaks bisection: some tracing general helpers are removed here but re-integrated in a different header only in a subsequent patch in the series. This should be done in the same patch, otherwise it breaks the build in the middle of the set. The other problem, as Steve noticed, is that the tracing prototypes are moved in ring_buffer.h (in the subsequent patch), which is not the right place as the ring buffer is not only for tracing purpose. And also it moves functions out of kernel.h while these are really useful for general purposes. That said, it's probably sane to think about a new header to put these tracing prototypes, if it's included by kernel.h, linux/ftrace.h is already filled with non-general purpose things. So may be linux/trace.h ? Yeah this could be confusing, Steve what do you think? And all in one, it would probably better to split this in three patches: one that moves printk helpers out of kernel.h to printk.h, another following the same pattern for panic things and another one for tracing things. Thanks. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: + kernelh-printk-panic-string-cleanup.patch added to -mm tree 2010-02-24 21:34 ` + kernelh-printk-panic-string-cleanup.patch added to -mm tree Frederic Weisbecker @ 2010-02-24 22:21 ` Steven Rostedt 2010-02-25 1:56 ` Dave Young 2010-02-25 1:55 ` Dave Young 1 sibling, 1 reply; 4+ messages in thread From: Steven Rostedt @ 2010-02-24 22:21 UTC (permalink / raw) To: Frederic Weisbecker Cc: akpm, mm-commits, hidave.darkstar, gregkh, kosaki.motohiro, lizf, mingo, linux-kernel, Thomas Gleixner On Wed, 2010-02-24 at 22:34 +0100, Frederic Weisbecker wrote: > On Wed, Feb 24, 2010 at 01:07:15PM -0800, akpm@linux-foundation.org wrote: > > > That said, it's probably sane to think about a new header to put > these tracing prototypes, if it's included by kernel.h, > linux/ftrace.h is already filled with non-general purpose things. > So may be linux/trace.h ? Yeah this could be confusing, Steve what > do you think? > > And all in one, it would probably better to split this in three > patches: one that moves printk helpers out of kernel.h to printk.h, > another following the same pattern for panic things and another one > for tracing things. Yeah, I'm fine with moving the tracing related stuff in kernel.h into a trace.h file and keep ftrace.h specific to ftrace in general. But I still find it necessary that trace.h gets included by kernel.h. I can just imaging Thomas yelling at me more when he adds a tracing_off() or trace_printk() somewhere and then gets a warning about it not being declared. I also gave that patch a NAK, in case that carries any weight. -- Steve ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: + kernelh-printk-panic-string-cleanup.patch added to -mm tree 2010-02-24 22:21 ` Steven Rostedt @ 2010-02-25 1:56 ` Dave Young 0 siblings, 0 replies; 4+ messages in thread From: Dave Young @ 2010-02-25 1:56 UTC (permalink / raw) To: rostedt Cc: Frederic Weisbecker, akpm, mm-commits, gregkh, kosaki.motohiro, lizf, mingo, linux-kernel, Thomas Gleixner On Thu, Feb 25, 2010 at 6:21 AM, Steven Rostedt <rostedt@goodmis.org> wrote: > On Wed, 2010-02-24 at 22:34 +0100, Frederic Weisbecker wrote: >> On Wed, Feb 24, 2010 at 01:07:15PM -0800, akpm@linux-foundation.org wrote: >> > > >> That said, it's probably sane to think about a new header to put >> these tracing prototypes, if it's included by kernel.h, >> linux/ftrace.h is already filled with non-general purpose things. >> So may be linux/trace.h ? Yeah this could be confusing, Steve what >> do you think? >> >> And all in one, it would probably better to split this in three >> patches: one that moves printk helpers out of kernel.h to printk.h, >> another following the same pattern for panic things and another one >> for tracing things. > > Yeah, I'm fine with moving the tracing related stuff in kernel.h into a > trace.h file and keep ftrace.h specific to ftrace in general. > > But I still find it necessary that trace.h gets included by kernel.h. Thanks, will do > > I can just imaging Thomas yelling at me more when he adds a > tracing_off() or trace_printk() somewhere and then gets a warning about > it not being declared. > > I also gave that patch a NAK, in case that carries any weight. > > -- Steve > > > -- Regards dave ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: + kernelh-printk-panic-string-cleanup.patch added to -mm tree 2010-02-24 21:34 ` + kernelh-printk-panic-string-cleanup.patch added to -mm tree Frederic Weisbecker 2010-02-24 22:21 ` Steven Rostedt @ 2010-02-25 1:55 ` Dave Young 1 sibling, 0 replies; 4+ messages in thread From: Dave Young @ 2010-02-25 1:55 UTC (permalink / raw) To: Frederic Weisbecker Cc: akpm, Steven Rostedt, mm-commits, gregkh, kosaki.motohiro, lizf, mingo, linux-kernel On Thu, Feb 25, 2010 at 5:34 AM, Frederic Weisbecker <fweisbec@gmail.com> wrote: > On Wed, Feb 24, 2010 at 01:07:15PM -0800, akpm@linux-foundation.org wrote: >> >> The patch titled >> kernel.h: printk/panic/string cleanup >> has been added to the -mm tree. Its filename is >> kernelh-printk-panic-string-cleanup.patch >> >> Before you just go and hit "reply", please: >> a) Consider who else should be cc'ed >> b) Prefer to cc a suitable mailing list as well >> c) Ideally: find the original patch on the mailing list and do a >> reply-to-all to that, adding suitable additional cc's >> >> *** Remember to use Documentation/SubmitChecklist when testing your code *** >> >> See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find >> out what to do about this >> >> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ > > > > Andrew, please don't merge this patch. > > I'm not against the idea kernel.h gets split up a bit, by having > a prink.h and panic.h included from kernel.h for example. > > But this patch breaks bisection: some tracing general helpers are > removed here but re-integrated in a different header only in a subsequent > patch in the series. This should be done in the same patch, otherwise it > breaks the build in the middle of the set. Yeah, my wrong, I will send a update version of this patch. Thank you. > > The other problem, as Steve noticed, is that the tracing prototypes are > moved in ring_buffer.h (in the subsequent patch), which is not the right > place as the ring buffer is not only for tracing purpose. And also > it moves functions out of kernel.h while these are really useful for > general purposes. > > That said, it's probably sane to think about a new header to put > these tracing prototypes, if it's included by kernel.h, > linux/ftrace.h is already filled with non-general purpose things. > So may be linux/trace.h ? Yeah this could be confusing, Steve what > do you think? > > And all in one, it would probably better to split this in three > patches: one that moves printk helpers out of kernel.h to printk.h, > another following the same pattern for panic things and another one > for tracing things. Fine to me. > > Thanks. > > -- Regards dave ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-25 1:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201002242107.o1OL7F6v020376@imap1.linux-foundation.org>
2010-02-24 21:34 ` + kernelh-printk-panic-string-cleanup.patch added to -mm tree Frederic Weisbecker
2010-02-24 22:21 ` Steven Rostedt
2010-02-25 1:56 ` Dave Young
2010-02-25 1:55 ` Dave Young
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox