Re: [RFC] simple dprobe like markers for the kernel

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Theodore Tso
Date: Thursday, July 10, 2008 - 8:30 am

On Thu, Jul 10, 2008 at 09:43:16AM -0500, James Bottomley wrote:

So as I understand things, your light-weight tracepoints are designed
for very performance-sensitive code paths where we don't want to
disturbe the optimization in the deactivated state.  In
non-performance sensitive parts of the kernel, where cycle counting is
not so important, tracepoints can and probably should still be used.
So I don't think you were proposing eliminating the current kernel
markers in favor of this approach, yes?

When you said a tool could determine if the tracepoint had gotten
optimized away, or the variables were no longer present, I assume you
meant at compile time, right?  So with the right tool built into the
kbuild infrastructure, if we could simply print warnings when
tracepoints had gotten optimized away, that would make the your simple
tracepoints quite safe for general use, I would think.

	    	       	   	   	  	- Ted

P.S.  When you said that the current kernel markers are "a bit
heavyweight", how bad are they in practice?  Hundreds of cycles?  More?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] simple dprobe like markers for the kernel, Frank Ch. Eigler, (Wed Jul 9, 7:29 pm)
Re: [RFC] simple dprobe like markers for the kernel, James Bottomley, (Thu Jul 10, 6:49 am)
Re: [RFC] simple dprobe like markers for the kernel, Frank Ch. Eigler, (Thu Jul 10, 7:22 am)
Re: [RFC] simple dprobe like markers for the kernel, James Bottomley, (Thu Jul 10, 7:43 am)
Re: [RFC] simple dprobe like markers for the kernel, Theodore Tso, (Thu Jul 10, 8:30 am)
Re: [RFC] simple dprobe like markers for the kernel, James Bottomley, (Thu Jul 10, 8:57 am)
Re: [RFC] simple dprobe like markers for the kernel, Frank Ch. Eigler, (Thu Jul 10, 11:18 am)
[PATCH] simple dprobe like markers for the kernel, James Bottomley, (Sat Jul 12, 11:22 am)
[PATCH] systemtap: add parser for simple markers, James Bottomley, (Sat Jul 12, 1:04 pm)
Re: [PATCH] systemtap: add parser for simple markers, Frank Ch. Eigler, (Sat Jul 12, 4:06 pm)
Re: [PATCH] simple dprobe like markers for the kernel, Masami Hiramatsu, (Mon Jul 14, 9:26 am)
Re: [PATCH] simple dprobe like markers for the kernel, James Bottomley, (Mon Jul 14, 3:02 pm)