remainder of merge
This commit is contained in:
@@ -859,10 +859,6 @@ if(!IS_SOFTMODEM_NOS1)
|
|||||||
if(IS_SOFTMODEM_NOS1)
|
if(IS_SOFTMODEM_NOS1)
|
||||||
init_pdcp();
|
init_pdcp();
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> origin/develop
|
|
||||||
if (RC.nb_nr_inst > 0) {
|
if (RC.nb_nr_inst > 0) {
|
||||||
// don't create if node doesn't connect to RRC/S1/GTP
|
// don't create if node doesn't connect to RRC/S1/GTP
|
||||||
AssertFatal(create_gNB_tasks(1) == 0,"cannot create ITTI tasks\n");
|
AssertFatal(create_gNB_tasks(1) == 0,"cannot create ITTI tasks\n");
|
||||||
@@ -871,11 +867,6 @@ if(!IS_SOFTMODEM_NOS1)
|
|||||||
RCconfig_L1();
|
RCconfig_L1();
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> origin/develop
|
|
||||||
/* Start the agent. If it is turned off in the configuration, it won't start */
|
/* Start the agent. If it is turned off in the configuration, it won't start */
|
||||||
/*
|
/*
|
||||||
RCconfig_nr_flexran();
|
RCconfig_nr_flexran();
|
||||||
@@ -995,11 +986,6 @@ if(!IS_SOFTMODEM_NOS1)
|
|||||||
oai_exit=1;
|
oai_exit=1;
|
||||||
printf("oai_exit=%d\n",oai_exit);
|
printf("oai_exit=%d\n",oai_exit);
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
printf("Terminating application - oai_exit=%d\n",oai_exit);
|
|
||||||
#endif
|
|
||||||
// stop threads
|
|
||||||
=======
|
|
||||||
// stop threads
|
// stop threads
|
||||||
/*#ifdef XFORMS
|
/*#ifdef XFORMS
|
||||||
|
|
||||||
@@ -1022,7 +1008,6 @@ if(!IS_SOFTMODEM_NOS1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif*/
|
#endif*/
|
||||||
>>>>>>> origin/develop
|
|
||||||
printf("stopping MODEM threads\n");
|
printf("stopping MODEM threads\n");
|
||||||
// cleanup
|
// cleanup
|
||||||
stop_gNB(NB_gNB_INST);
|
stop_gNB(NB_gNB_INST);
|
||||||
|
|||||||
+1
-12
@@ -460,7 +460,7 @@ void processSlotRX( PHY_VARS_NR_UE *UE, UE_nr_rxtx_proc_t *proc) {
|
|||||||
LOG_D(PHY,"phy_procedures_nrUE_RX: slot:%d, time %lu\n", proc->nr_tti_rx, (rdtsc()-a)/3500);
|
LOG_D(PHY,"phy_procedures_nrUE_RX: slot:%d, time %lu\n", proc->nr_tti_rx, (rdtsc()-a)/3500);
|
||||||
//printf(">>> nr_ue_pdcch_procedures ended\n");
|
//printf(">>> nr_ue_pdcch_procedures ended\n");
|
||||||
#endif
|
#endif
|
||||||
<<<<<<< HEAD
|
|
||||||
if(IS_SOFTMODEM_NOS1){ //&& proc->nr_tti_rx==1
|
if(IS_SOFTMODEM_NOS1){ //&& proc->nr_tti_rx==1
|
||||||
//Hardcoded rnti value
|
//Hardcoded rnti value
|
||||||
protocol_ctxt_t ctxt;
|
protocol_ctxt_t ctxt;
|
||||||
@@ -468,18 +468,7 @@ void processSlotRX( PHY_VARS_NR_UE *UE, UE_nr_rxtx_proc_t *proc) {
|
|||||||
0x1234, proc->frame_rx,
|
0x1234, proc->frame_rx,
|
||||||
proc->nr_tti_rx, 0);
|
proc->nr_tti_rx, 0);
|
||||||
pdcp_run(&ctxt);
|
pdcp_run(&ctxt);
|
||||||
pdcp_fifo_flush_sdus(&ctxt);
|
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
if(IS_SOFTMODEM_NOS1){ //&& proc->nr_tti_rx==1
|
|
||||||
//Hardcoded rnti value
|
|
||||||
protocol_ctxt_t ctxt;
|
|
||||||
PROTOCOL_CTXT_SET_BY_MODULE_ID(&ctxt, UE->Mod_id, ENB_FLAG_NO,
|
|
||||||
0x1234, proc->frame_rx,
|
|
||||||
proc->nr_tti_rx, 0);
|
|
||||||
pdcp_run(&ctxt);
|
|
||||||
}
|
|
||||||
>>>>>>> origin/develop
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,69 +61,6 @@ softmodem_params_t *get_softmodem_params(void) {
|
|||||||
return &softmodem_params;
|
return &softmodem_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
void softmodem_printresources(int sig, telnet_printfunc_t pf) {
|
|
||||||
struct rusage usage;
|
|
||||||
struct timespec stop;
|
|
||||||
|
|
||||||
clock_gettime(CLOCK_BOOTTIME, &stop);
|
|
||||||
|
|
||||||
uint64_t elapse = (stop.tv_sec - start.tv_sec) ; // in seconds
|
|
||||||
|
|
||||||
|
|
||||||
int st = getrusage(RUSAGE_SELF,&usage);
|
|
||||||
if (!st) {
|
|
||||||
pf("\nRun time: %lluh %llus\n",(unsigned long long)elapse/3600,(unsigned long long)(elapse - (elapse/3600)));
|
|
||||||
pf("\tTime executing user inst.: %lds %ldus\n",(long)usage.ru_utime.tv_sec,(long)usage.ru_utime.tv_usec);
|
|
||||||
pf("\tTime executing system inst.: %lds %ldus\n",(long)usage.ru_stime.tv_sec,(long)usage.ru_stime.tv_usec);
|
|
||||||
pf("\tMax. Phy. memory usage: %ldkB\n",(long)usage.ru_maxrss);
|
|
||||||
pf("\tPage fault number (no io): %ld\n",(long)usage.ru_minflt);
|
|
||||||
pf("\tPage fault number (requiring io): %ld\n",(long)usage.ru_majflt);
|
|
||||||
pf("\tNumber of file system read: %ld\n",(long)usage.ru_inblock);
|
|
||||||
pf("\tNumber of filesystem write: %ld\n",(long)usage.ru_oublock);
|
|
||||||
pf("\tNumber of context switch (process origin, io...): %ld\n",(long)usage.ru_nvcsw);
|
|
||||||
pf("\tNumber of context switch (os origin, priority...): %ld\n",(long)usage.ru_nivcsw);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void signal_handler(int sig) {
|
|
||||||
void *array[10];
|
|
||||||
size_t size;
|
|
||||||
|
|
||||||
if (sig==SIGSEGV) {
|
|
||||||
// get void*'s for all entries on the stack
|
|
||||||
size = backtrace(array, 10);
|
|
||||||
// print out all the frames to stderr
|
|
||||||
fprintf(stderr, "Error: signal %d:\n", sig);
|
|
||||||
backtrace_symbols_fd(array, size, 2);
|
|
||||||
exit(-1);
|
|
||||||
} else {
|
|
||||||
if(sig==SIGINT ||sig==SOFTMODEM_RTSIGNAL)
|
|
||||||
softmodem_printresources(sig,(telnet_printfunc_t)printf);
|
|
||||||
if (sig != SOFTMODEM_RTSIGNAL) {
|
|
||||||
printf("Linux signal %s...\n",strsignal(sig));
|
|
||||||
exit_function(__FILE__, __FUNCTION__, __LINE__,"softmodem starting exit procedure\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void set_softmodem_sighandler(void) {
|
|
||||||
struct sigaction act,oldact;
|
|
||||||
clock_gettime(CLOCK_BOOTTIME, &start);
|
|
||||||
memset(&act,0,sizeof(act));
|
|
||||||
act.sa_handler=signal_handler;
|
|
||||||
sigaction(SOFTMODEM_RTSIGNAL,&act,&oldact);
|
|
||||||
printf("Send signal %d to display resource usage...\n",SIGRTMIN+1);
|
|
||||||
signal(SIGSEGV, signal_handler);
|
|
||||||
signal(SIGINT, signal_handler);
|
|
||||||
signal(SIGTERM, signal_handler);
|
|
||||||
signal(SIGABRT, signal_handler);
|
|
||||||
}
|
|
||||||
#ifndef PHYSICAL_SIMULATOR
|
|
||||||
void get_common_options(void) {
|
|
||||||
=======
|
|
||||||
int32_t check_execmask(uint64_t execmask) {
|
int32_t check_execmask(uint64_t execmask) {
|
||||||
char *softmodemfunc=map_int_to_str(softmodem_funcs, execmask);
|
char *softmodemfunc=map_int_to_str(softmodem_funcs, execmask);
|
||||||
if (softmodemfunc != NULL) {
|
if (softmodemfunc != NULL) {
|
||||||
@@ -144,7 +81,6 @@ char *get_softmodem_function(uint64_t *sofmodemfunc_mask_ptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void get_common_options(uint32_t execmask) {
|
void get_common_options(uint32_t execmask) {
|
||||||
>>>>>>> origin/develop
|
|
||||||
uint32_t online_log_messages;
|
uint32_t online_log_messages;
|
||||||
uint32_t glog_level ;
|
uint32_t glog_level ;
|
||||||
uint32_t start_telnetsrv = 0;
|
uint32_t start_telnetsrv = 0;
|
||||||
|
|||||||
@@ -727,8 +727,6 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
#ifdef DEBUG_ULSCH_DECODING
|
#ifdef DEBUG_ULSCH_DECODING
|
||||||
LOG_I(PHY, "Decoder output (payload): \n");
|
LOG_I(PHY, "Decoder output (payload): \n");
|
||||||
@@ -739,7 +737,6 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
>>>>>>> origin/develop
|
|
||||||
ulsch->last_iteration_cnt = ret;
|
ulsch->last_iteration_cnt = ret;
|
||||||
|
|
||||||
return(ret);
|
return(ret);
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
lte_dfts_sse4: lte_dfts.c
|
lte_dfts_sse4: lte_dfts.c
|
||||||
<<<<<<< HEAD
|
|
||||||
gcc -O2 -std=gnu99 -msse4.1 -g -ggdb -o lte_dfts_sse4 lte_dfts.c time_meas.c ../../SIMULATION/TOOLS/taus.c $$OPENAIR_HOME/common/utils/backtrace.c -I$$OPENAIR_HOME -I$$OPENAIR1_DIR -I$$OPENAIR_TARGETS -I$$OPENAIR2_DIR -I$$OPENAIR2_DIR/COMMON -I$$OPENAIR_HOME/common/utils -I$$OPENAIR_HOME/common/utils/T -DMR_MAIN -DNB_ANTENNAS_RX=1 -lm -lpthread # -DD256STATS #-DD64STATS
|
|
||||||
=======
|
|
||||||
gcc-7 -O3 -std=gnu99 -msse4.1 -o lte_dfts_sse4 lte_dfts.c time_meas.c ../../SIMULATION/TOOLS/taus.c -I$$OPENAIR_HOME -I$$OPENAIR1_DIR -I$$OPENAIR_TARGETS -I$$OPENAIR2_DIR -I$$OPENAIR2_DIR/COMMON -I$$OPENAIR_HOME/common/utils -I$$OPENAIR_HOME/common/utils/T -DMR_MAIN -DNB_ANTENNAS_RX=1 -lm -lpthread # -DD256STATS #-DD64STATS
|
gcc-7 -O3 -std=gnu99 -msse4.1 -o lte_dfts_sse4 lte_dfts.c time_meas.c ../../SIMULATION/TOOLS/taus.c -I$$OPENAIR_HOME -I$$OPENAIR1_DIR -I$$OPENAIR_TARGETS -I$$OPENAIR2_DIR -I$$OPENAIR2_DIR/COMMON -I$$OPENAIR_HOME/common/utils -I$$OPENAIR_HOME/common/utils/T -DMR_MAIN -DNB_ANTENNAS_RX=1 -lm -lpthread # -DD256STATS #-DD64STATS
|
||||||
>>>>>>> origin/develop-nr
|
|
||||||
|
|
||||||
lte_dfts_avx2: lte_dfts.c
|
lte_dfts_avx2: lte_dfts.c
|
||||||
gcc -O2 -std=gnu99 -mavx2 -g -ggdb -o lte_dfts_avx2 lte_dfts.c time_meas.c ../../SIMULATION/TOOLS/taus.c $$OPENAIR_HOME/common/utils/backtrace.c -I$$OPENAIR_HOME -I$$OPENAIR1_DIR -I$$OPENAIR_TARGETS -I$$OPENAIR2_DIR -I$$OPENAIR2_DIR/COMMON -I$$OPENAIR_HOME/common/utils -I$$OPENAIR_HOME/common/utils/T -DMR_MAIN -DNB_ANTENNAS_RX=1 -lm -lpthread # -DD256STATS #-DD64STATS
|
gcc -O2 -std=gnu99 -mavx2 -g -ggdb -o lte_dfts_avx2 lte_dfts.c time_meas.c ../../SIMULATION/TOOLS/taus.c $$OPENAIR_HOME/common/utils/backtrace.c -I$$OPENAIR_HOME -I$$OPENAIR1_DIR -I$$OPENAIR_TARGETS -I$$OPENAIR2_DIR -I$$OPENAIR2_DIR/COMMON -I$$OPENAIR_HOME/common/utils -I$$OPENAIR_HOME/common/utils/T -DMR_MAIN -DNB_ANTENNAS_RX=1 -lm -lpthread # -DD256STATS #-DD64STATS
|
||||||
|
|||||||
Reference in New Issue
Block a user