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
canghaiwuhen
OpenXG-RAN
Commits
3e4fcdac
Commit
3e4fcdac
authored
Mar 07, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set core8-11 to rcc and core1-4 to rru
parent
e93d684e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
common/utils/LOG/log.c
common/utils/LOG/log.c
+4
-4
nfapi/oai_integration/nfapi_pnf.c
nfapi/oai_integration/nfapi_pnf.c
+2
-2
nfapi/oai_integration/nfapi_vnf.c
nfapi/oai_integration/nfapi_vnf.c
+5
-4
targets/RT/USER/rt_wrapper.c
targets/RT/USER/rt_wrapper.c
+2
-2
No files found.
common/utils/LOG/log.c
View file @
3e4fcdac
...
@@ -789,10 +789,6 @@ void log_output_memory(const char *file, const char *func, int line, int comp, i
...
@@ -789,10 +789,6 @@ void log_output_memory(const char *file, const char *func, int line, int comp, i
//len += snprintf(&log_buffer[len], MAX_LOG_TOTAL - len, "[%08lx]", thread_id);
//len += snprintf(&log_buffer[len], MAX_LOG_TOTAL - len, "[%08lx]", thread_id);
//if (len > MAX_LOG_TOTAL) len = MAX_LOG_TOTAL;
//if (len > MAX_LOG_TOTAL) len = MAX_LOG_TOTAL;
len
+=
vsnprintf
(
&
log_buffer
[
len
],
MAX_LOG_TOTAL
-
len
,
format
,
args
);
if
(
len
>
MAX_LOG_TOTAL
)
len
=
MAX_LOG_TOTAL
;
log_end
=
log_buffer
+
len
;
struct
timeval
gettime
;
struct
timeval
gettime
;
gettimeofday
(
&
gettime
,
NULL
);
gettimeofday
(
&
gettime
,
NULL
);
len
+=
snprintf
(
&
log_buffer
[
len
],
MAX_LOG_TOTAL
-
len
,
"[%ld.%06ld]"
,
gettime
.
tv_sec
,
gettime
.
tv_usec
);
len
+=
snprintf
(
&
log_buffer
[
len
],
MAX_LOG_TOTAL
-
len
,
"[%ld.%06ld]"
,
gettime
.
tv_sec
,
gettime
.
tv_usec
);
...
@@ -803,6 +799,10 @@ void log_output_memory(const char *file, const char *func, int line, int comp, i
...
@@ -803,6 +799,10 @@ void log_output_memory(const char *file, const char *func, int line, int comp, i
log_level_highlight_end
[
level
]);
log_level_highlight_end
[
level
]);
if
(
len
>
MAX_LOG_TOTAL
)
len
=
MAX_LOG_TOTAL
;
if
(
len
>
MAX_LOG_TOTAL
)
len
=
MAX_LOG_TOTAL
;
}
}
len
+=
vsnprintf
(
&
log_buffer
[
len
],
MAX_LOG_TOTAL
-
len
,
format
,
args
);
if
(
len
>
MAX_LOG_TOTAL
)
len
=
MAX_LOG_TOTAL
;
log_end
=
log_buffer
+
len
;
}
}
//va_end(args);
//va_end(args);
...
...
nfapi/oai_integration/nfapi_pnf.c
View file @
3e4fcdac
...
@@ -276,7 +276,7 @@ void* pnf_p7_thread_start(void* ptr) {
...
@@ -276,7 +276,7 @@ void* pnf_p7_thread_start(void* ptr) {
#ifdef CPU_AFFINITY
#ifdef CPU_AFFINITY
if
(
get_nprocs
()
>=
8
)
if
(
get_nprocs
()
>=
8
)
{
{
for
(
j
=
5
;
j
<
9
;
j
++
)
{
for
(
j
=
1
;
j
<
5
;
j
++
)
{
CPU_SET
(
j
,
&
cpuset
);
CPU_SET
(
j
,
&
cpuset
);
}
}
}
else
if
(
get_nprocs
()
>
2
)
{
}
else
if
(
get_nprocs
()
>
2
)
{
...
@@ -1638,7 +1638,7 @@ void* pnf_start_thread(void* ptr) {
...
@@ -1638,7 +1638,7 @@ void* pnf_start_thread(void* ptr) {
#ifdef CPU_AFFINITY
#ifdef CPU_AFFINITY
if
(
get_nprocs
()
>=
8
)
if
(
get_nprocs
()
>=
8
)
{
{
for
(
j
=
5
;
j
<
9
;
j
++
)
{
for
(
j
=
1
;
j
<
5
;
j
++
)
{
CPU_SET
(
j
,
&
cpuset
);
CPU_SET
(
j
,
&
cpuset
);
}
}
}
else
if
(
get_nprocs
()
>
2
)
{
}
else
if
(
get_nprocs
()
>
2
)
{
...
...
nfapi/oai_integration/nfapi_vnf.c
View file @
3e4fcdac
...
@@ -383,12 +383,13 @@ int wake_eNB_rxtx(PHY_VARS_eNB *eNB, uint16_t sfn, uint16_t sf) {
...
@@ -383,12 +383,13 @@ int wake_eNB_rxtx(PHY_VARS_eNB *eNB, uint16_t sfn, uint16_t sf) {
// wake up TX for subframe n+sf_ahead
// wake up TX for subframe n+sf_ahead
// lock the TX mutex and make sure the thread is ready
// lock the TX mutex and make sure the thread is ready
LOG_D
(
MAC
,
"before pthread_mutex_timedlock: frame %d subframe %d
\n
"
,
proc
->
frame_rx
,
proc
->
subframe_rx
);
if
(
pthread_mutex_timedlock
(
&
L1_proc
->
mutex
,
&
wait
)
!=
0
)
{
if
(
pthread_mutex_timedlock
(
&
L1_proc
->
mutex
,
&
wait
)
!=
0
)
{
LOG_E
(
PHY
,
"[eNB] ERROR pthread_mutex_lock for eNB RXTX thread %d (IC %d)
\n
"
,
L1_proc
->
subframe_rx
&
1
,
L1_proc
->
instance_cnt
);
LOG_E
(
PHY
,
"[eNB] ERROR pthread_mutex_lock for eNB RXTX thread %d (IC %d)
\n
"
,
L1_proc
->
subframe_rx
&
1
,
L1_proc
->
instance_cnt
);
exit_fun
(
"error locking mutex_rxtx"
);
exit_fun
(
"error locking mutex_rxtx"
);
return
(
-
1
);
return
(
-
1
);
}
}
LOG_D
(
MAC
,
"after pthread_mutex_timedlock: frame %d subframe %d
\n
"
,
proc
->
frame_rx
,
proc
->
subframe_rx
);
if
(
L1_proc
->
instance_cnt
<
0
){
if
(
L1_proc
->
instance_cnt
<
0
){
++
L1_proc
->
instance_cnt
;
++
L1_proc
->
instance_cnt
;
}
else
{
}
else
{
...
@@ -398,7 +399,7 @@ int wake_eNB_rxtx(PHY_VARS_eNB *eNB, uint16_t sfn, uint16_t sf) {
...
@@ -398,7 +399,7 @@ int wake_eNB_rxtx(PHY_VARS_eNB *eNB, uint16_t sfn, uint16_t sf) {
}
}
pthread_mutex_unlock
(
&
L1_proc
->
mutex
);
pthread_mutex_unlock
(
&
L1_proc
->
mutex
);
LOG_D
(
MAC
,
"after pthread_mutex_unlock: frame %d subframe %d
\n
"
,
proc
->
frame_rx
,
proc
->
subframe_rx
);
//LOG_D( PHY,"[VNF-subframe_ind] sfn/sf:%d:%d proc[frame_rx:%d subframe_rx:%d] L1_proc->instance_cnt_rxtx:%d \n", sfn, sf, proc->frame_rx, proc->subframe_rx, L1_proc->instance_cnt_rxtx);
//LOG_D( PHY,"[VNF-subframe_ind] sfn/sf:%d:%d proc[frame_rx:%d subframe_rx:%d] L1_proc->instance_cnt_rxtx:%d \n", sfn, sf, proc->frame_rx, proc->subframe_rx, L1_proc->instance_cnt_rxtx);
// We have just received and processed the common part of a subframe, say n.
// We have just received and processed the common part of a subframe, say n.
...
@@ -1038,7 +1039,7 @@ void* vnf_p7_start_thread(void *ptr) {
...
@@ -1038,7 +1039,7 @@ void* vnf_p7_start_thread(void *ptr) {
if
(
get_nprocs
()
>=
8
)
if
(
get_nprocs
()
>=
8
)
{
{
// for (j = 1; j < 4; j++) {
// for (j = 1; j < 4; j++) {
CPU_SET
(
4
,
&
cpuset
);
CPU_SET
(
11
,
&
cpuset
);
// }
// }
}
else
if
(
get_nprocs
()
>
2
)
{
}
else
if
(
get_nprocs
()
>
2
)
{
for
(
j
=
1
;
j
<
get_nprocs
();
j
++
)
{
for
(
j
=
1
;
j
<
get_nprocs
();
j
++
)
{
...
@@ -1377,7 +1378,7 @@ void vnf_start_thread(void* ptr) {
...
@@ -1377,7 +1378,7 @@ void vnf_start_thread(void* ptr) {
#ifdef CPU_AFFINITY
#ifdef CPU_AFFINITY
if
(
get_nprocs
()
>=
8
)
if
(
get_nprocs
()
>=
8
)
{
{
for
(
j
=
1
;
j
<
4
;
j
++
)
{
for
(
j
=
8
;
j
<
11
;
j
++
)
{
CPU_SET
(
j
,
&
cpuset
);
CPU_SET
(
j
,
&
cpuset
);
}
}
}
else
if
(
get_nprocs
()
>
2
)
{
}
else
if
(
get_nprocs
()
>
2
)
{
...
...
targets/RT/USER/rt_wrapper.c
View file @
3e4fcdac
...
@@ -308,7 +308,7 @@ void thread_top_init(char *thread_name,
...
@@ -308,7 +308,7 @@ void thread_top_init(char *thread_name,
else
{
else
{
if
(
nfapi_mode
==
2
)
{
if
(
nfapi_mode
==
2
)
{
if
(
get_nprocs
()
>=
8
)
{
if
(
get_nprocs
()
>=
8
)
{
for
(
j
=
1
;
j
<
4
;
j
++
)
{
for
(
j
=
8
;
j
<
11
;
j
++
)
{
CPU_SET
(
j
,
&
cpuset
);
CPU_SET
(
j
,
&
cpuset
);
}
}
}
else
{
}
else
{
...
@@ -318,7 +318,7 @@ void thread_top_init(char *thread_name,
...
@@ -318,7 +318,7 @@ void thread_top_init(char *thread_name,
}
}
}
else
if
(
nfapi_mode
==
1
)
{
}
else
if
(
nfapi_mode
==
1
)
{
if
(
get_nprocs
()
>=
8
)
{
if
(
get_nprocs
()
>=
8
)
{
for
(
j
=
5
;
j
<
7
;
j
++
)
{
for
(
j
=
1
;
j
<
5
;
j
++
)
{
CPU_SET
(
j
,
&
cpuset
);
CPU_SET
(
j
,
&
cpuset
);
}
}
}
else
{
}
else
{
...
...
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