Commit fadb9b83 authored by Elena_Lukashova's avatar Elena_Lukashova

Add debugging level to dlsim_tm4.

parent b7b13de3
...@@ -257,6 +257,7 @@ int main(int argc, char **argv) ...@@ -257,6 +257,7 @@ int main(int argc, char **argv)
FD_lte_phy_scope_ue *form_ue = NULL; FD_lte_phy_scope_ue *form_ue = NULL;
char title[255]; char title[255];
uint32_t DLSCH_RB_ALLOC = 0x1fff; uint32_t DLSCH_RB_ALLOC = 0x1fff;
int log_level = LOG_ERR;
int numCCE=0; int numCCE=0;
int dci_length_bytes=0,dci_length=0; int dci_length_bytes=0,dci_length=0;
int common_flag=0,TPC=0; int common_flag=0,TPC=0;
...@@ -331,9 +332,6 @@ int main(int argc, char **argv) ...@@ -331,9 +332,6 @@ int main(int argc, char **argv)
//signal(SIGSEGV, handler); //signal(SIGSEGV, handler);
//signal(SIGABRT, handler); //signal(SIGABRT, handler);
logInit();
set_glog(LOG_INFO, LOG_MED);
// default parameters // default parameters
n_frames = 1000; n_frames = 1000;
snr0 = 0; snr0 = 0;
...@@ -341,7 +339,7 @@ int main(int argc, char **argv) ...@@ -341,7 +339,7 @@ int main(int argc, char **argv)
perfect_ce = 0; perfect_ce = 0;
while ((c = getopt (argc, argv, "ahdpZDe:Em:n:o:s:f:t:c:g:r:F:x:y:z:AM:N:I:i:O:R:S:C:T:b:u:v:w:B:PLl:XYWv:V:J:K:U")) != -1) { while ((c = getopt (argc, argv, "ahdpZDe:Em:n:o:s:f:t:c:g:r:F:x:y:z:AM:N:I:i:O:R:S:C:T:b:u:v:w:B:Pl:XYWv:V:J:K:UL:")) != -1) {
switch (c) { switch (c) {
case 'a': case 'a':
...@@ -406,10 +404,6 @@ int main(int argc, char **argv) ...@@ -406,10 +404,6 @@ int main(int argc, char **argv)
input_trch_file=1; input_trch_file=1;
break; break;
case 'L':
llr8_flag=1;
break;
case 'l': case 'l':
offset_mumimo_llr_drange_fix=atoi(optarg); offset_mumimo_llr_drange_fix=atoi(optarg);
break; break;
...@@ -640,6 +634,9 @@ int main(int argc, char **argv) ...@@ -640,6 +634,9 @@ int main(int argc, char **argv)
case 'U': case 'U':
updated_csi=1; updated_csi=1;
break; break;
case 'L':
log_level=atoi(optarg);
break;
case 'h': case 'h':
default: default:
printf("%s -h(elp) -a(wgn on) -d(ci decoding on) -p(extended prefix on) -m mcs1 -M mcs2 -n n_frames -s snr0 -x transmission mode (1,2,3,5,6) -y TXant -z RXant -I trch_file\n",argv[0]); printf("%s -h(elp) -a(wgn on) -d(ci decoding on) -p(extended prefix on) -m mcs1 -M mcs2 -n n_frames -s snr0 -x transmission mode (1,2,3,5,6) -y TXant -z RXant -I trch_file\n",argv[0]);
...@@ -673,6 +670,15 @@ int main(int argc, char **argv) ...@@ -673,6 +670,15 @@ int main(int argc, char **argv)
} }
} }
logInit();
// enable these lines if you need debug info
set_comp_log(PHY,LOG_DEBUG,LOG_HIGH,1);
set_glog(log_level,LOG_HIGH);
// moreover you need to init itti with the following line
// however itti will catch all signals, so ctrl-c won't work anymore
// alternatively you can disable ITTI completely in CMakeLists.txt
//itti_init(TASK_MAX, THREAD_MAX, MESSAGES_ID_MAX, tasks_info, messages_info, messages_definition_xml, NULL);
if (common_flag == 0) { if (common_flag == 0) {
switch (N_RB_DL) { switch (N_RB_DL) {
case 6: case 6:
......
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