ftrace and debugfs weird interaction

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mathieu Desnoyers
Date: Saturday, April 26, 2008 - 11:54 am

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
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.

The debugfs file has been created with

        entry = debugfs_create_file("tracing_enabled", 0644, d_tracer,
                                    &global_trace, &tracing_ctrl_fops);
        if (!entry)
                pr_warning("Could not create debugfs 'tracing_enabled' entry\n");

I wonder what kind of weird debugfs interaction we might have here ?

Mathieu

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ftrace and debugfs weird interaction, Mathieu Desnoyers, (Sat Apr 26, 11:54 am)
Re: ftrace and debugfs weird interaction, Greg KH, (Sat Apr 26, 5:36 pm)
Re: ftrace and debugfs weird interaction, Ingo Molnar, (Mon Apr 28, 8:39 am)
Re: ftrace and debugfs weird interaction, Steven Rostedt, (Mon Apr 28, 12:27 pm)
Re: ftrace and debugfs weird interaction, Pekka Paalanen, (Mon Apr 28, 12:35 pm)
Re: ftrace and debugfs weird interaction, Mathieu Desnoyers, (Mon Apr 28, 1:34 pm)