Commit ba11dfba authored by Robert Schmidt's avatar Robert Schmidt

Rename env var gdbStacks to OAI_GDBSTACKS

- make it clear that it belongs to OAI
- follow convention of uppercase name
parent 01d1a47a
......@@ -33,7 +33,7 @@
#define OAI_EXIT_ASSERT 1
#define _Assert_Exit_ \
if (getenv("gdbStacks")) { \
if (getenv("OAI_GDBSTACKS")) { \
char tmp [1000]; \
sprintf(tmp,"gdb -ex='set confirm off' -ex 'thread apply all bt' -ex q -p %d < /dev/null", getpid()); \
__attribute__((unused)) int dummy=system(tmp); \
......
......@@ -7,10 +7,10 @@ OAI uses/supports a number of environment variables, documented in the following
- `NR_MIMO2x2_AWGN_RESULTS_DIR`: directory containing BLER curves for L2simulator channel modelling in 2x2 MIMO case
- `NVRAM_DIR`: directory to read/write NVRAM data in (5G) `nvram` tool; if not defined, will use `PWD` (working directory)
- `OAI_CONFIGMODULE`: can be used to pass the configuration file instead of `-O`
- `OAI_GDBSTACKS`: if defined when hitting an assertion (`DevAssert()`, `AssertFatal()`, ...), OAI will load `gdb` and provide a backtrace for every thread
- `OPENAIR_DIR`: should point to the root directory of OpenAirInterface; some code relies on this to get a filename, e.g., BLER curves for L2sim channel emulation
- `RFSIMULATOR`: the RFsimulator's work mode, can be either `server` (for server mode) or a valid IP address (for client mode)
- `USIM_DIR`: directory to read/write USIM data in (4G) `usim` tool; if not defined, will use `PWD` (working directory)
- `gdbStacks`: if defined when hitting an assertion (`DevAssert()`, `AssertFatal()`, ...), OAI will load `gdb` and provide a backtrace for every thread
- `threadPoolMeasurements`: path to a file to store thread pool debugging information, see the [thread pool documentation](..common/utils/threadPool/thread-pool.md)
Furthermore, these variables appear in code that is not maintained and maybe not even compiled anywhere:
......
......@@ -26,7 +26,7 @@ elif [[ -v USE_N3XX ]]; then
fi
# enable printing of stack traces on assert
export gdbStacks=1
export OAI_GDBSTACKS=1
echo "=================================="
echo "== Starting eNB soft modem"
......
......@@ -15,7 +15,7 @@ echo "== Configuration file:"
cat $CONFIGFILE
# enable printing of stack traces on assert
export gdbStacks=1
export OAI_GDBSTACKS=1
echo "=================================="
echo "== Starting gNB soft modem with AW2S"
......
......@@ -27,7 +27,7 @@ elif [[ -v USE_N3XX ]]; then
fi
# enable printing of stack traces on assert
export gdbStacks=1
export OAI_GDBSTACKS=1
echo "=================================="
echo "== Starting gNB soft modem"
......
......@@ -26,7 +26,7 @@ elif [[ -v USE_N3XX ]]; then
fi
# enable printing of stack traces on assert
export gdbStacks=1
export OAI_GDBSTACKS=1
echo "=================================="
echo "== Starting eNB soft modem"
......
......@@ -52,7 +52,7 @@ if [[ -f "$CONFIGFILE" ]]; then
fi
# enable printing of stack traces on assert
export gdbStacks=1
export OAI_GDBSTACKS=1
echo "=================================="
echo "== Starting LTE UE soft modem"
......
......@@ -33,7 +33,7 @@ while [[ $# -gt 0 ]]; do
done
# enable printing of stack traces on assert
export gdbStacks=1
export OAI_GDBSTACKS=1
echo "=================================="
echo "== Starting NR UE soft modem"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment