[lttng-dev] [PATCH] Expose kernel tracer to user-space (version 7)
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Jul 4 03:38:21 EDT 2012
Hello,
Le Tue, 3 Jul 2012 15:29:12 +0200,
Francis Giraldeau <francis.giraldeau at gmail.com> a écrit :
> By writing to the file /proc/lttng_uevent, a user-space application creates a
> kernel event. The event's payload is by default UTF-8 text, but any data can be
> written. The maximum size of the data is at most the size of a packet defined
> for the trace session. Null-character is optional and is not enforced. The
> event uses sequence for space efficiency and to store any data as payload.
Shouldn't this be in the debugfs filesystem rather than the proc
filesystem? The debugfs filesystem already has entries for various
tracing facilities of the Linux kernel, and adding entries in /proc
that are not process-related is frowned upon these days.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the lttng-dev
mailing list