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 @@ ...@@ -33,7 +33,7 @@
#define OAI_EXIT_ASSERT 1 #define OAI_EXIT_ASSERT 1
#define _Assert_Exit_ \ #define _Assert_Exit_ \
if (getenv("gdbStacks")) { \ if (getenv("OAI_GDBSTACKS")) { \
char tmp [1000]; \ char tmp [1000]; \
sprintf(tmp,"gdb -ex='set confirm off' -ex 'thread apply all bt' -ex q -p %d < /dev/null", getpid()); \ 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); \ __attribute__((unused)) int dummy=system(tmp); \
......
...@@ -7,10 +7,10 @@ OAI uses/supports a number of environment variables, documented in the following ...@@ -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 - `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) - `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_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 - `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) - `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) - `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) - `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: 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 ...@@ -26,7 +26,7 @@ elif [[ -v USE_N3XX ]]; then
fi fi
# enable printing of stack traces on assert # enable printing of stack traces on assert
export gdbStacks=1 export OAI_GDBSTACKS=1
echo "==================================" echo "=================================="
echo "== Starting eNB soft modem" echo "== Starting eNB soft modem"
......
...@@ -15,7 +15,7 @@ echo "== Configuration file:" ...@@ -15,7 +15,7 @@ echo "== Configuration file:"
cat $CONFIGFILE cat $CONFIGFILE
# enable printing of stack traces on assert # enable printing of stack traces on assert
export gdbStacks=1 export OAI_GDBSTACKS=1
echo "==================================" echo "=================================="
echo "== Starting gNB soft modem with AW2S" echo "== Starting gNB soft modem with AW2S"
......
...@@ -27,7 +27,7 @@ elif [[ -v USE_N3XX ]]; then ...@@ -27,7 +27,7 @@ elif [[ -v USE_N3XX ]]; then
fi fi
# enable printing of stack traces on assert # enable printing of stack traces on assert
export gdbStacks=1 export OAI_GDBSTACKS=1
echo "==================================" echo "=================================="
echo "== Starting gNB soft modem" echo "== Starting gNB soft modem"
......
...@@ -26,7 +26,7 @@ elif [[ -v USE_N3XX ]]; then ...@@ -26,7 +26,7 @@ elif [[ -v USE_N3XX ]]; then
fi fi
# enable printing of stack traces on assert # enable printing of stack traces on assert
export gdbStacks=1 export OAI_GDBSTACKS=1
echo "==================================" echo "=================================="
echo "== Starting eNB soft modem" echo "== Starting eNB soft modem"
......
...@@ -52,7 +52,7 @@ if [[ -f "$CONFIGFILE" ]]; then ...@@ -52,7 +52,7 @@ if [[ -f "$CONFIGFILE" ]]; then
fi fi
# enable printing of stack traces on assert # enable printing of stack traces on assert
export gdbStacks=1 export OAI_GDBSTACKS=1
echo "==================================" echo "=================================="
echo "== Starting LTE UE soft modem" echo "== Starting LTE UE soft modem"
......
...@@ -33,7 +33,7 @@ while [[ $# -gt 0 ]]; do ...@@ -33,7 +33,7 @@ while [[ $# -gt 0 ]]; do
done done
# enable printing of stack traces on assert # enable printing of stack traces on assert
export gdbStacks=1 export OAI_GDBSTACKS=1
echo "==================================" echo "=================================="
echo "== Starting NR UE soft modem" 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