[lttng-dev] [lttng-tools PATCH (correction)] Add a git version line in LTTng versions compiled from git sources.

Christian Babeux christian.babeux at efficios.com
Wed Mar 13 11:37:37 EDT 2013


Hi Raphaël,

I wonder if we would like to also have the same information when
running lttng-sessiond --version?

>         MSG("lttng version " VERSION " - " VERSION_NAME);
> +#ifdef GIT_VERSION
> +       MSG("Git version: " GIT_VERSION);
> +#endif
>         MSG("\n" VERSION_DESCRIPTION "\n");
>         MSG("Web site: http://lttng.org");
>         MSG("\nlttng is free software and under the GPL license and part LGPL");

Would it be possible to put such a define in a header file, perhaps
config.h? I think the downside of this approach is that it would
require a rebuild of all files that include config.h each time your
git index is modified (commit, pull, etc.), though I'm not entirely
sure of this.

Thanks,

Christian



More information about the lttng-dev mailing list