[lttng-dev] RFC LTTng session and daemon configuration save and restore
Stefan Seefeld
stefan_seefeld at mentor.com
Thu Dec 5 12:38:07 EST 2013
Hi Jérémie,
On 12/04/2013 04:33 PM, Jérémie Galarneau wrote:
> RFC - LTTng session and daemon configuration save and restore
I think this is a great idea.
> Session Configuration File Format
> ---------------------------------
>
> Finally, it seems that using a standard hierarchical format such as JSON or
> XML would be the most appropriate choice. Both of these formats have intrinsic
> support for representation of hierarchical relationships. They also benefit from
> having a lot of hardened external libraries that will provide parsing,
> validation and write support.
I fully agree that re-inventing another language (which includes both
syntax and semantics !) is not an easy task, and should be avoided for
lots of reasons. In fact, I would also avoid XML for that same reason,
as it's not really a language in itself, rather than a baseline on top
of which a language may be defined.
There are a few existing proven solutions that are widely used in many
different domains, all involving scripting languages that can easily be
layered on top of C/C++ APIs. Two of the most commonly used are Python
and Lua, which would allow you to write configuration files as Python /
Lua scripts.
Have you considered those ?
Regards,
Stefan
--
Stefan Seefeld
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/
More information about the lttng-dev
mailing list