lkml.org 
[lkml]   [2008]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ftrace and debugfs weird interaction
> * Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:
>
> > Hi,
> >
> > When trying to figure out what was going on with the sched tracer
> > "tracing_enabled" file (sched-devel.git tree), I fell on this strange
> > behavior :
> >
> > echo 1>tracing_enabled seems _not_ to send 1 to the tracing_ctrl_write

Wait a minute, are you literally running the command:
echo 1>tracing_enabled

If you are, you just echoed only a newline and directed stdout, stream 1,
to the file. No? :-)

Could you try with a space:
echo 1 > tracing_enabled

> > callback. However, sending garbage, e.g. echo s> tracing_enabled,
> > correctly sends the 's' character down the chain. echo 0>tracing_enabled
> > sometimes results in the callback not even being called.

Stream 0 is stdin, so... not sure what this would do. Probably nothing,
just like you experienced.


Thanks.

--
Pekka Paalanen
http://www.iki.fi/pq/


\
 
 \ /
  Last update: 2008-04-28 21:39    [W:0.052 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site