X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=1d07cb31cc01511aedb781124de609277410075d;hp=ff6d1c22337200e69e24807b1c871530ce6ea09e;hb=c9d424071aa532aa287fa86cfe02edbeded50e7b;hpb=8e20a4c7bb936a4e919e499dfe4c975e80aaa80a diff --git a/src/common/utils.c b/src/common/utils.c index ff6d1c223..1d07cb31c 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -927,7 +927,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 +935,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. *