X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=bf93386c46147eca75e33c59a13b9f8214f49ba4;hb=d98ad589cd758f4a3167fb451a6e45d167b42942;hp=9821815ba06298dfbb7e76de02bbc385b9d49d0d;hpb=68e6efddb6a27675d6cf15161d7b0101154b56ac;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. *