nr-ue: fix T tracer
T tracer was not functional anymore. because init_tpools() was called before T_Config_Init(). The problem was that init_tpools() creates some threads and T_Config_Init() does call fork() and the child process (which is the one running the softmodem, the parent process is used to monitor it, this is the design of the T tracer, maybe to change at some point, it's too complicated) has no thread after the fork(). The threads created by init_tpools() are gone. Game over. In conclusion: T_Config_Init() has to be called very early in the life of the softmodem, at least before init_tpools().
This commit is contained in:
committed by
Sagar Parsawar
parent
1b0d699dca
commit
e5a3bcdc33
@@ -422,11 +422,11 @@ int main( int argc, char **argv ) {
|
|||||||
get_options (); //Command-line options specific for NRUE
|
get_options (); //Command-line options specific for NRUE
|
||||||
|
|
||||||
get_common_options(SOFTMODEM_5GUE_BIT);
|
get_common_options(SOFTMODEM_5GUE_BIT);
|
||||||
init_tpools(nrUE_params.nr_dlsch_parallel);
|
|
||||||
CONFIG_CLEARRTFLAG(CONFIG_NOEXITONHELP);
|
CONFIG_CLEARRTFLAG(CONFIG_NOEXITONHELP);
|
||||||
#if T_TRACER
|
#if T_TRACER
|
||||||
T_Config_Init();
|
T_Config_Init();
|
||||||
#endif
|
#endif
|
||||||
|
init_tpools(nrUE_params.nr_dlsch_parallel);
|
||||||
//randominit (0);
|
//randominit (0);
|
||||||
set_taus_seed (0);
|
set_taus_seed (0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user