Re: Ftrace doesn't work anymore on latest tip

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Rostedt
Date: Tuesday, October 28, 2008 - 7:23 am

On Tue, 28 Oct 2008, Fr?d?ric Weisbecker wrote:


I've tried this with and without dynamic ftrace and can not reproduce.


I found the cause of this. It was:

 c2931e05ec5965597cbfb79ad332d4a29aeceb23

 ftrace: return an error when setting a nonexistent tracer

Because the write of sched_switch has more charachters than the max 
(because of the whitespace at the end), then we chop what we read from 
userspace. Since we do not cosume all what was written, the 'echo' writes 
the rest again. But this time it's just the whitespace. This fails to 
match, even though we did match before. And we return -EINVAL. But the 
funny part is that you can cat the file again, you will see that it 
succeeded!

I'll write a patch to fix this.

-- Steve


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

Messages in current thread:
Ftrace doesn't work anymore on latest tip, Frédéric Weisbecker, (Mon Oct 27, 4:18 pm)
Re: Ftrace doesn't work anymore on latest tip, Steven Rostedt, (Mon Oct 27, 4:36 pm)
Re: Ftrace doesn't work anymore on latest tip, Frédéric Weisbecker, (Mon Oct 27, 4:44 pm)
Re: Ftrace doesn't work anymore on latest tip, Frédéric Weisbecker, (Tue Oct 28, 2:02 am)
Re: Ftrace doesn't work anymore on latest tip, Steven Rostedt, (Tue Oct 28, 7:23 am)
[PATCH] ftrace: fix current_tracer error return, Steven Rostedt, (Tue Oct 28, 7:44 am)
Re: [PATCH] ftrace: fix current_tracer error return, Frédéric Weisbecker, (Tue Oct 28, 8:35 am)
Re: [PATCH] ftrace: fix current_tracer error return, Steven Rostedt, (Tue Oct 28, 8:41 am)
Re: [PATCH] ftrace: fix current_tracer error return, Frédéric Weisbecker, (Tue Oct 28, 11:15 am)
Re: [PATCH] ftrace: fix current_tracer error return, Steven Rostedt, (Tue Oct 28, 11:32 am)
Re: [PATCH] ftrace: fix current_tracer error return, Frédéric Weisbecker, (Tue Oct 28, 5:34 pm)
Re: [PATCH] ftrace: fix current_tracer error return, Steven Rostedt, (Tue Oct 28, 5:55 pm)
Re: [PATCH] ftrace: fix current_tracer error return, Frédéric Weisbecker, (Tue Oct 28, 6:09 pm)
Re: [PATCH] ftrace: fix current_tracer error return, Steven Rostedt, (Tue Oct 28, 6:11 pm)
Re: [PATCH] ftrace: fix current_tracer error return, Ingo Molnar, (Wed Oct 29, 1:35 am)