X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=4e78767dfb46d2c18b47670174a21bbbeafbdfb3;hp=ff6d1c22337200e69e24807b1c871530ce6ea09e;hb=6c1c0768320135c6936c371b09731851b508c023;hpb=c9cb3e7db56f4325ed97c068f8ced2c2c0366495 diff --git a/src/common/utils.c b/src/common/utils.c index ff6d1c223..4e78767df 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -18,6 +18,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -927,7 +928,7 @@ end: /* * Obtain the value of LTTNG_KMOD_PROBES environment variable, if exists. - * Otherwise returns an empty string. + * Otherwise returns NULL. */ LTTNG_HIDDEN char *utils_get_kmod_probes_list(void) @@ -935,6 +936,16 @@ char *utils_get_kmod_probes_list(void) return getenv(DEFAULT_LTTNG_KMOD_PROBES); } +/* + * Obtain the value of LTTNG_EXTRA_KMOD_PROBES environment variable, if + * exists. Otherwise returns NULL. + */ +LTTNG_HIDDEN +char *utils_get_extra_kmod_probes_list(void) +{ + return getenv(DEFAULT_LTTNG_EXTRA_KMOD_PROBES); +} + /* * With the given format, fill dst with the time of len maximum siz. *