Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
5b16b584
Commit
5b16b584
authored
Aug 22, 2023
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging memory leaks
parent
05880030
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
CMakeLists.txt
CMakeLists.txt
+2
-2
common/utils/system.c
common/utils/system.c
+3
-2
openair1/PHY/NR_TRANSPORT/nr_dci.c
openair1/PHY/NR_TRANSPORT/nr_dci.c
+3
-3
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
+1
-1
No files found.
CMakeLists.txt
View file @
5b16b584
...
...
@@ -163,8 +163,8 @@ set(CMAKE_CXX_FLAGS
add_boolean_option
(
SANITIZE_ADDRESS False
"enable the address sanitizer (ASan)"
ON
)
if
(
SANITIZE_ADDRESS
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fsanitize=address -fno-omit-frame-pointer -fno-common"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fsanitize=address -fno-omit-frame-pointer -fno-common"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fsanitize=address -f
stack-check -f
no-omit-frame-pointer -fno-common"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fsanitize=address -f
stack-check -f
no-omit-frame-pointer -fno-common"
)
# There seems to be some incompatibility with pthread_create and the RT scheduler, which
# results in pthread_create hanging.
#
...
...
common/utils/system.c
View file @
5b16b584
...
...
@@ -231,8 +231,9 @@ void threadCreate(pthread_t* t, void * (*func)(void*), void * param, char* name,
int
settingPriority
=
1
;
ret
=
pthread_attr_init
(
&
attr
);
AssertFatal
(
ret
==
0
,
"ret: %d, errno: %d
\n
"
,
ret
,
errno
);
LOG_I
(
UTIL
,
"Creating thread %s with affinity %d and priority %d
\n
"
,
name
,
affinity
,
priority
);
size_t
stacksize
;
pthread_attr_getstacksize
(
&
attr
,
&
stacksize
);
LOG_I
(
UTIL
,
"Creating thread %s with affinity %d and priority %d, stacksize %d
\n
"
,
name
,
affinity
,
priority
,(
int
)
stacksize
);
if
(
checkIfFedoraDistribution
())
if
(
checkIfGenericKernelOnFedora
())
...
...
openair1/PHY/NR_TRANSPORT/nr_dci.c
View file @
5b16b584
...
...
@@ -116,7 +116,7 @@ void nr_generate_dci(PHY_VARS_gNB *gNB, PHY_VARS_NR_UE *ue,
LOG_D
(
PHY
,
"pdcch: Coreset starting subcarrier %d on symbol %d (%d symbols)
\n
"
,
cset_start_sc
,
cset_start_symb
,
cset_nsymb
);
// DMRS length is per OFDM symbol
uint32_t
dmrs_length
=
(
n_rb
+
pdcch_pdu_rel15
->
BWPStart
)
*
6
;
//2(QPSK)*3(per RB)*6(REG per CCE)
uint32_t
encoded_length
=
dci_pdu
->
AggregationLevel
*
108
;
//2(QPSK)*9(per RB)*6(REG per CCE)
uint32_t
encoded_length
=
gNB
?
dci_pdu
->
AggregationLevel
*
108
:
dci_pdu
->
AggregationLevel
*
18
*
cset_nsymb
;
//2(QPSK)*9(per RB)*6(REG per CCE)
if
(
dci_pdu
->
RNTI
!=
0xFFFF
)
LOG_D
(
PHY
,
"DL_DCI : rb_offset %d, nb_rb %d, DMRS length per symbol %d
\t
DCI encoded length %d (precoder_granularity %d, reg_mapping %d), Scrambling_Id %d, ScramblingRNTI %x, PayloadSizeBits %d
\n
"
,
rb_offset
,
n_rb
,
dmrs_length
,
encoded_length
,
pdcch_pdu_rel15
->
precoderGranularity
,
pdcch_pdu_rel15
->
CceRegMappingType
,
...
...
@@ -170,7 +170,7 @@ void nr_generate_dci(PHY_VARS_gNB *gNB, PHY_VARS_NR_UE *ue,
scrambled_output
[
6
],
scrambled_output
[
7
],
scrambled_output
[
8
],
scrambled_output
[
9
],
scrambled_output
[
10
],
scrambled_output
[
11
]
);
#endif
/// QPSK modulation
int16_t
mod_dci
[
NR_MAX_DCI_SIZE
>>
1
]
__attribute__
((
aligned
(
16
)));
int16_t
mod_dci
[
encoded_length
]
__attribute__
((
aligned
(
16
)));
nr_modulation
(
scrambled_output
,
encoded_length
,
DMRS_MOD_ORDER
,
mod_dci
);
//Qm = 2 as DMRS is QPSK modulated
#ifdef DEBUG_DCI
...
...
@@ -199,7 +199,7 @@ void nr_generate_dci(PHY_VARS_gNB *gNB, PHY_VARS_NR_UE *ue,
k
-=
frame_parms
->
ofdm_symbol_size
;
l
=
cset_start_symb
+
symbol_idx
;
LOG_I
(
NR_PHY
,
"pdcch symbol_idx %d, reg %d l %d, cset_start_symb %d
\n
"
,
symbol_idx
,
reg_count
,
l
,
cset_start_symb
);
// dmrs index depends on reference point for k according to 38.211 7.4.1.3.2
if
(
gNB
&&
pdcch_pdu_rel15
->
CoreSetType
==
NFAPI_NR_CSET_CONFIG_PDCCH_CONFIG
)
dmrs_idx
=
(
reg_list
[
d
][
reg_count
]
+
pdcch_pdu_rel15
->
BWPStart
)
*
3
;
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
View file @
5b16b584
...
...
@@ -283,7 +283,7 @@ int phy_procedures_nrUE_SL_TX(PHY_VARS_NR_UE *ue,
c16_t
txdataF_buf
[
fp
->
nb_antennas_tx
*
samplesF_per_slot
]
__attribute__
((
aligned
(
32
)));
if
(
phy_data
->
nr_sl_pssch_pscch_pdu
)
LOG_I
(
NR_PHY
,
"phy_procedures 0: Received CONFIG_TYPE_TX_PSCCH_PSSCH, PSCCH startRB %d, PSCCH numRB %d
\n
"
,
phy_data
->
nr_sl_pssch_pscch_pdu
->
startrb
,
phy_data
->
nr_sl_pssch_pscch_pdu
->
pscch_numrbs
);
printf
(
"txdataF_buf size %d (nb_antennas_tx %d, samplesF_per_slot %d)
\n
"
,
sizeof
(
txdataF_buf
),
fp
->
nb_antennas_tx
,
samplesF_per_slot
);
//
memset(txdataF_buf, 0, sizeof(txdataF_buf));
memset
(
txdataF_buf
,
0
,
sizeof
(
txdataF_buf
));
if
(
phy_data
->
nr_sl_pssch_pscch_pdu
)
LOG_I
(
NR_PHY
,
"phy_procedures 2: Received CONFIG_TYPE_TX_PSCCH_PSSCH, PSCCH startRB %d, PSCCH numRB %d
\n
"
,
phy_data
->
nr_sl_pssch_pscch_pdu
->
startrb
,
phy_data
->
nr_sl_pssch_pscch_pdu
->
pscch_numrbs
);
c16_t
*
txdataF
[
fp
->
nb_antennas_tx
];
/* workaround to be compatible with current txdataF usage in all tx procedures. */
for
(
int
i
=
0
;
i
<
fp
->
nb_antennas_tx
;
++
i
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment