From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhaolei@cn.fujitsu.com (Zhaolei) Date: Fri, 31 Oct 2008 10:00:35 +0800 Subject: [ltt-dev] [PATCH] Separateltt_trace_create()intoltt_trace_create() and ltt_trace_alloc() References: <20081030144944.GB13812@Krystal> Message-ID: <9112741BE5C342BA9B62AFBB5BC76B44@zhaoleiwin> * 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