Re: [PATCH] ftrace: type cast verifier

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Wednesday, October 1, 2008 - 10:47 am

* Ingo Molnar <mingo@elte.hu> wrote:


ah, it cannot be done that way, as 'field' has to be known to the 
compiler.

so your patch is fine as-is, the extra line is an acceptable cost, as we 
get:

- the type filter (trying to cast an object outside of the narrow list 
  of trace entry types will cause a failed build - i.e. most of the 
  practical dangers of C type casting are avoided!)

- the runtime entry type checker

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

Messages in current thread:
[PATCH] ftrace: type cast verifier, Steven Rostedt, (Wed Oct 1, 7:52 am)
Re: [PATCH] ftrace: type cast verifier, Ingo Molnar, (Wed Oct 1, 10:42 am)
Re: [PATCH] ftrace: type cast verifier, Ingo Molnar, (Wed Oct 1, 10:47 am)