X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=bf93386c46147eca75e33c59a13b9f8214f49ba4;hb=fbb9748b6dc509542c4a82960da36d7b03a3a66b;hp=9821815ba06298dfbb7e76de02bbc385b9d49d0d;hpb=ab57d7d35916e90d36429ed717d58610c9005d14;p=lttng-tools.git diff --git a/src/common/utils.c b/src/common/utils.c index 9821815ba..bf93386c4 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -869,6 +869,16 @@ end: return home_dir; } +/* + * Obtain the value of LTTNG_KMOD_PROBES environment variable, if exists. + * Otherwise returns an empty string. + */ +LTTNG_HIDDEN +char *utils_get_kmod_probes_list(void) +{ + return getenv(DEFAULT_LTTNG_KMOD_PROBES); +} + /* * With the given format, fill dst with the time of len maximum siz. *