mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
fix(record_db doc): correct the path for T_messages.txt and mention use of ninja/make
Signed-off-by: Sagar Arora <sagar.arora@openairinterface.org>
This commit is contained in:
@@ -67,18 +67,26 @@ the T tracer and only output on the terminal). The default is
|
||||
|
||||
## Run a tracer
|
||||
|
||||
Go into the directory `common/utils/T/tracer` (or
|
||||
`cmake_targets/ran_build/build/common/utils/T/tracer`) and run for example the
|
||||
Go into the directory `common/utils/T/tracer` and run for example the
|
||||
`enb` tracer:
|
||||
|
||||
```shell
|
||||
#in common/utils/T/tracer directory
|
||||
./enb -d ../T_messages.txt
|
||||
```
|
||||
|
||||
You can also run it from `cmake_targets/ran_build/build/` directory:
|
||||
|
||||
```shell
|
||||
# in cmake_targets/ran_build/build directory
|
||||
./common/utils/T/tracer/enb -d ../../../common/utils/T/T_messages.txt
|
||||
```
|
||||
|
||||
To trace a remote program, use the `-ip` option. For example,
|
||||
if you want to trace a program running on `192.168.12.148` do:
|
||||
|
||||
```shell
|
||||
# in common/utils/T/tracer directory
|
||||
./enb -d ../T_messages.txt -ip 192.168.12.148
|
||||
```
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ Or, from an existing build directory using cmake:
|
||||
```shell
|
||||
cd cmake_targets/ran_build/build
|
||||
cmake -DT_RECORD_DB=ON .
|
||||
# use make or ninja
|
||||
make T_tools
|
||||
```
|
||||
|
||||
@@ -53,6 +54,9 @@ The binary is then available in:
|
||||
cmake_targets/ran_build/build/common/utils/T/tracer/record_db
|
||||
```
|
||||
|
||||
**NOTE*: Unlike other docs on T Tracer for `record_db` we are building in cmake
|
||||
directory rather than in the directory of T.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- a running ClickHouse server reachable from `record_db`
|
||||
@@ -84,8 +88,8 @@ To enable all events except the most verbose groups and write them to
|
||||
ClickHouse:
|
||||
|
||||
```shell
|
||||
cd cmake_targets/ran_build/build/common/utils/T/tracer
|
||||
./record_db -d ../T_messages.txt \
|
||||
cd cmake_targets/ran_build/build/
|
||||
./common/utils/T/tracer/record_db -d ../../../common/utils/T/T_messages.txt \
|
||||
-ON \
|
||||
-off VCD \
|
||||
-off HEAVY \
|
||||
@@ -108,7 +112,7 @@ The event selection rules are the same as for [`record`](./record.md):
|
||||
These options are processed in order. For example:
|
||||
|
||||
```shell
|
||||
./record_db -d ../T_messages.txt -OFF -on GNB_PHY_UL_FD_PUSCH_IQ -on GNB_PHY_UL_PAYLOAD_RX_BITS
|
||||
./common/utils/T/tracer/record_db -d ../../../common/utils/T/T_messages.txt -OFF -on GNB_PHY_UL_FD_PUSCH_IQ -on GNB_PHY_UL_PAYLOAD_RX_BITS
|
||||
```
|
||||
|
||||
This starts from everything disabled and enables only the two listed
|
||||
|
||||
Reference in New Issue
Block a user