Introduce LTTNG_UST_CTL_PATH environment variable
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 20 Oct 2023 20:39:40 +0000 (16:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 25 Oct 2024 18:26:23 +0000 (14:26 -0400)
commit8f896827f04943c99eafd5869def13bca657a6b9
tree20cc052cf5df000ceb5f300bc637e1d88de67cd1
parent62d6b5d04a4c154809781fb39a659f95aa815dfd
Introduce LTTNG_UST_CTL_PATH environment variable

Example use to trace lttng-sessiond (tracee) with another lttng-sessiond
(tracer):

```
mkdir /tmp/tracer-ust
mkdir /tmp/tracee-ust
mkdir /tmp/tracer-home
mkdir /tmp/tracee-home
LTTNG_HOME=/tmp/tracer-home LTTNG_UST_CTL_PATH=/tmp/tracer-ust lttng-sessiond --daemon
LTTNG_HOME=/tmp/tracee-home LTTNG_UST_CTL_PATH=/tmp/tracee-ust \
LTTNG_UST_APP_PATH=/tmp/tracer-ust \
LD_PRELOAD=/usr/local/lib/liblttng-ust-fork.so:/usr/local/lib/liblttng-ust-fd.so \
lttng-sessiond --daemon
```

* Control the tracer sessiond by setting LTTNG_HOME=/tmp/tracer-home
* Control the tracee sessiond by setting LTTNG_HOME=/tmp/tracee-home
* Run an application traced by the tracee sessiond

```
LTTNG_UST_APP_PATH=/tmp/tracee-ust myapp
```

* Run an application traced by the tracer sessiond

```
LTTNG_UST_APP_PATH=/tmp/tracer-ust myapp
```

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ifcd05c366004b5fc0a4a362ad3556d7e6d8658b1
12 files changed:
src/bin/lttng-crash/Makefile.am
src/bin/lttng-sessiond/register.cpp
src/bin/lttng-sessiond/sessiond-config.cpp
src/bin/lttng-sessiond/sessiond-config.hpp
src/common/Makefile.am
src/common/defaults.hpp
src/common/shm.cpp
src/common/shm.hpp
src/common/utils.cpp
src/common/utils.hpp
tests/unit/Makefile.am
tests/unit/ini_config/Makefile.am
This page took 0.026509 seconds and 4 git commands to generate.