[ltt-dev] [PATCH] Separateltt_trace_create()intoltt_trace_create() and ltt_trace_alloc()
Mathieu Desnoyers
compudj at krystal.dyndns.org
Mon Nov 10 10:08:08 EST 2008
* Zhaolei (zhaolei at cn.fujitsu.com) wrote:
> * 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?
>
I'm not sure I follow here,
Do you recommend we use standard
mkdir, rmdir, rm, commands to manipulate the files ? Or are you talking
of the debugfs rmdir commands which I believe will use refcounting on
the files they contain.. ?
Mathieu
> B.R.
> Zhaolei
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
More information about the lttng-dev
mailing list