[ltt-dev] [PATCH] Separateltt_trace_create()intoltt_trace_create() and ltt_trace_alloc()

Zhaolei zhaolei at cn.fujitsu.com
Thu Oct 30 22:00:35 EDT 2008


* Mathieu wrote:
>> It lakes control-file for destroy a trace and setup trace_type.
>> So I think we should change tree struct as follow,
>> Do you hace some comment?
>> 
>> `-- debugfs
>>     `-- ltt
>>         |-- buffers
>>         |   `-- ...
>>         |-- control
>>         |   `-- trace1
>>         |       |-- alloc
> 
> echo 1 > alloc -> allocate
> echo 0 > alloc -> free ?
Hello, Mathieu,

When we free a trace, dir of debugfs/ltt/control/trace_name/ is deleted include file of
debugfs/ltt/control/trace_name/control/alloc,
So is it dangerous when we delete this file in itself's file_op?

B.R.
Zhaolei


More information about the lttng-dev mailing list