Re: Kernel marker has no performance impact on ia64.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mathieu Desnoyers <mathieu.desnoyers@...>
Cc: Hideo AOKI <haoki@...>, <mingo@...>, Masami Hiramatsu <mhiramat@...>, <linux-kernel@...>
Date: Wednesday, June 4, 2008 - 6:27 pm

On Mon, 2008-06-02 at 19:21 -0400, Mathieu Desnoyers wrote:

So are you proposing something like:

static inline void 
trace_sched_switch(struct task_struct *prev, struct task_struct *next)
{
	trace_mark(sched_switch, prev, next);
}

dropping the silly fmt string but using the multiplex of trace_mark, and
then doing the stringify bit:

       "prev_pid %d next_pid %d prev_state %ld\n"

in the actual tracer?


IMHO the 'type safety' of the fmt string is over-rated, since it cannot
distinguish between a task_struct * or a bio *, both are a pointers -
and half arsed type safely is worse than no type safety.



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

Messages in current thread:
Kernel marker has no performance impact on ia64., Hideo AOKI, (Mon Jun 2, 6:12 pm)
Re: Kernel marker has no performance impact on ia64., Peter Zijlstra, (Mon Jun 2, 6:32 pm)
Re: Kernel marker has no performance impact on ia64., Mathieu Desnoyers, (Mon Jun 2, 7:21 pm)
Re: Kernel marker has no performance impact on ia64., Peter Zijlstra, (Wed Jun 4, 6:27 pm)
Re: Kernel marker has no performance impact on ia64., Mathieu Desnoyers, (Wed Jun 4, 7:22 pm)
Re: Kernel marker has no performance impact on ia64., Peter Zijlstra, (Thu Jun 5, 4:12 am)
Re: Kernel marker has no performance impact on ia64., Mathieu Desnoyers, (Thu Jun 12, 9:53 am)
Re: Kernel marker has no performance impact on ia64., Peter Zijlstra, (Thu Jun 12, 10:27 am)
Re: Kernel marker has no performance impact on ia64., Frank Ch. Eigler, (Thu Jun 12, 11:53 am)
Re: Kernel marker has no performance impact on ia64., Peter Zijlstra, (Thu Jun 12, 12:53 pm)
Re: Kernel marker has no performance impact on ia64., Frank Ch. Eigler, (Thu Jun 12, 1:38 pm)
Re: Kernel marker has no performance impact on ia64., Peter Zijlstra, (Fri Jun 13, 7:01 am)
Re: Kernel marker has no performance impact on ia64., Frank Ch. Eigler, (Fri Jun 13, 10:17 am)
Re: Kernel marker has no performance impact on ia64., Masami Hiramatsu, (Thu Jun 12, 12:16 pm)
Re: Kernel marker has no performance impact on ia64., Frank Ch. Eigler, (Thu Jun 12, 12:43 pm)
Re: Kernel marker has no performance impact on ia64., Masami Hiramatsu, (Thu Jun 12, 1:05 pm)
Re: Kernel marker has no performance impact on ia64., Frank Ch. Eigler, (Thu Jun 12, 1:48 pm)
Re: Kernel marker has no performance impact on ia64., Masami Hiramatsu, (Thu Jun 12, 3:34 pm)
RE: Kernel marker has no performance impact on ia64., Takashi Nishiie, (Fri Jun 13, 12:19 am)
Re: Kernel marker has no performance impact on ia64., Masami Hiramatsu, (Fri Jun 13, 2:02 pm)
RE: Kernel marker has no performance impact on ia64., Takashi Nishiie, (Sun Jun 15, 10:58 pm)
Re: Kernel marker has no performance impact on ia64., Peter Zijlstra, (Thu Jun 12, 12:56 pm)
Re: Kernel marker has no performance impact on ia64., Mathieu Desnoyers, (Thu Jun 12, 6:10 pm)
Re: Kernel marker has no performance impact on ia64., Masami Hiramatsu, (Thu Jun 5, 10:28 am)
Re: Kernel marker has no performance impact on ia64., Mathieu Desnoyers, (Thu Jun 12, 10:04 am)
Re: Kernel marker has no performance impact on ia64., Masami Hiramatsu, (Thu Jun 12, 11:31 am)
Re: Kernel marker has no performance impact on ia64., Masami Hiramatsu, (Wed Jun 4, 12:58 am)
Re: Kernel marker has no performance impact on ia64., Mathieu Desnoyers, (Wed Jun 4, 7:26 pm)
Re: Kernel marker has no performance impact on ia64., Masami Hiramatsu, (Wed Jun 4, 7:40 pm)
RE: Kernel marker has no performance impact on ia64., Takashi Nishiie, (Tue Jun 3, 2:07 am)