Set the default ust constructor timeout in the headers
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 18 Mar 2021 18:00:34 +0000 (14:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Mar 2021 20:28:46 +0000 (16:28 -0400)
This is not user-configurable, use the same strategy as all other
internal defaults.

Change-Id: I05d61999afee44687336bf70712ee99e2da19f71
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
doc/man/Makefile.am
doc/man/lttng-ust.3.txt
include/ust-comm.h

index bc119c38c4c44e5619b7eada4a734284b54c06bb..4d82488dcecf33d9b5d555f24003f9f7f2fd291c 100644 (file)
@@ -475,15 +475,6 @@ they will not be installed.
 AM_CONDITIONAL([MAN_PAGES_OPT], [test "x$man_pages_opt" != "xno"])
 AM_CONDITIONAL([HAVE_ASCIIDOC_XMLTO], [test "x$have_asciidoc_xmlto" = "xyes"])
 
-# Default values
-AC_DEFUN([_AC_DEFINE_AND_SUBST], [
-       AC_DEFINE_UNQUOTED([CONFIG_$1], [$2], [$1])
-       $1="$2"
-       AC_SUBST([$1])
-])
-
-_AC_DEFINE_AND_SUBST([LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS], [3000])
-
 AM_CFLAGS="-Wall $URCU_CFLAGS $PTHREAD_CFLAGS"
 AC_SUBST(AM_CFLAGS)
 
index 9cee98d13d163aa69bca82d74fc96f8f29982607..d84bfcdc91b05799e2a029df5f33159bcd70e3c1 100644 (file)
@@ -63,7 +63,6 @@ xmlto_verbose_0 = @echo "  XMLTO     " $@;
 
 # Tools to execute:
 ADOC = $(asciidoc_verbose)$(ASCIIDOC) -f $(ASCIIDOC_CONF) -d manpage \
-       -a lttng_ust_register_timeout="@LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS@" \
        -a mansource="LTTng" \
        -a manmanual="LTTng Manual" \
        -a manversion="$(PACKAGE_VERSION)"
index e6887f8d08cb058a28a04e05962c884d48434a90..ab3c47754b5d78fdeb5a871dbc65de4f7a2db527 100644 (file)
@@ -1417,7 +1417,7 @@ The value `0` means _do not wait_. The value `-1` means _wait forever_.
 Setting this environment variable to `0` is recommended for applications
 with time constraints on the process startup time.
 +
-Default: {lttng_ust_register_timeout}.
+Default: 3000.
 
 `LTTNG_UST_WITHOUT_BADDR_STATEDUMP`::
     If set, prevents `liblttng-ust` from performing a base address state
index da3e2a184dd3ec52b481112e130d758ae36ad4ea..88748ce58591e4774b4e8783a66edfdd632949ad 100644 (file)
@@ -28,7 +28,7 @@
  * variable "LTTNG_UST_REGISTER_TIMEOUT". Note that if the sessiond is not
  * found, the application proceeds directly without any delay.
  */
-#define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS       CONFIG_LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS
+#define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS       3000
 
 #define LTTNG_DEFAULT_RUNDIR                           LTTNG_SYSTEM_RUNDIR
 #define LTTNG_DEFAULT_HOME_RUNDIR                      ".lttng"
This page took 0.026875 seconds and 4 git commands to generate.