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
Michael Black
OpenXG-RAN
Commits
f8d0c3de
Commit
f8d0c3de
authored
Feb 21, 2023
by
Robert Schmidt
Committed by
francescomani
Mar 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes
parent
ff4c48f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
common/utils/T/local_tracer.c
common/utils/T/local_tracer.c
+1
-5
common/utils/threadPool/thread-pool.h
common/utils/threadPool/thread-pool.h
+10
-8
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+2
-2
No files found.
common/utils/T/local_tracer.c
View file @
f8d0c3de
...
...
@@ -139,11 +139,7 @@ void send_T_messages_txt(void *forwarder) {
/* TODO: be careful, we use internal T stuff, to rewrite? */
T_LOCAL_size
=
0
;
T_HEADER
(
T_ID
(
-
1
));
T_PUT_buffer
(
1
,
((
T_buffer
)
{
.
addr
=
(
src
),
.
length
=
(
send_size
)
}));
T_PUT_buffer
(
1
,
((
T_buffer
)
{
.
addr
=
(
src
),
.
length
=
(
send_size
)
}));
forward
(
forwarder
,
buf
,
T_LOCAL_size
);
src
+=
send_size
;
src_len
-=
send_size
;
...
...
common/utils/threadPool/thread-pool.h
View file @
f8d0c3de
...
...
@@ -286,29 +286,31 @@ static inline notifiedFIFO_elt_t *pullTpool(notifiedFIFO_t *responseFifo, tpool_
notifiedFIFO_elt_t
*
msg
=
pullNotifiedFIFO
(
responseFifo
);
if
(
msg
==
NULL
)
return
NULL
;
AssertFatal
(
t
->
traceFd
,
"Thread pool used while not initialized"
);
AssertFatal
(
t
->
traceFd
>
0
,
"Thread pool used while not initialized"
);
if
(
t
->
measurePerf
)
msg
->
returnTime
=
rdtsc_oai
();
if
(
t
->
traceFd
>
0
)
if
(
write
(
t
->
traceFd
,
msg
,
sizeof
(
*
msg
)))
{};
if
(
t
->
traceFd
>
0
)
{
ssize_t
b
=
write
(
t
->
traceFd
,
msg
,
sizeof
(
*
msg
));
AssertFatal
(
b
>
0
,
"error in write(): %d, %s
\n
"
,
errno
,
strerror
(
errno
));
}
return
msg
;
}
static
inline
notifiedFIFO_elt_t
*
tryPullTpool
(
notifiedFIFO_t
*
responseFifo
,
tpool_t
*
t
)
{
notifiedFIFO_elt_t
*
msg
=
pollNotifiedFIFO
(
responseFifo
);
AssertFatal
(
t
->
traceFd
,
"Thread pool used while not initialized"
);
AssertFatal
(
t
->
traceFd
>
0
,
"Thread pool used while not initialized"
);
if
(
msg
==
NULL
)
return
NULL
;
if
(
t
->
measurePerf
)
msg
->
returnTime
=
rdtsc_oai
();
if
(
t
->
traceFd
)
if
(
write
(
t
->
traceFd
,
msg
,
sizeof
(
*
msg
)))
{};
if
(
t
->
traceFd
>
0
)
{
ssize_t
b
=
write
(
t
->
traceFd
,
msg
,
sizeof
(
*
msg
));
AssertFatal
(
b
>
0
,
"error in write(): %d, %s
\n
"
,
errno
,
strerror
(
errno
));
}
return
msg
;
}
...
...
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
f8d0c3de
...
...
@@ -2685,7 +2685,7 @@ allocate_prbs_sub(int nb_rb,
break
;
case
25
:
if
(
check
==
(
N_RBG
-
1
)
)
{
if
(
check
==
N_RBG
-
1
)
{
nb_rb
--
;
}
else
{
nb_rb
-=
2
;
...
...
@@ -2694,7 +2694,7 @@ allocate_prbs_sub(int nb_rb,
break
;
case
50
:
if
(
check
==
(
N_RBG
-
1
)
)
{
if
(
check
==
N_RBG
-
1
)
{
nb_rb
-=
2
;
}
else
{
nb_rb
-=
3
;
...
...
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