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
spbro
OpenXG-RAN
Commits
9c6cb96b
Commit
9c6cb96b
authored
Feb 09, 2017
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put UE id in thread names
parent
393fe865
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+10
-4
No files found.
targets/RT/USER/lte-ue.c
View file @
9c6cb96b
...
@@ -192,8 +192,10 @@ void init_UE(int nb_inst) {
...
@@ -192,8 +192,10 @@ void init_UE(int nb_inst) {
LOG_D
(
HW
,
"[lte-softmodem.c] Could not allocate UE_thread, error %d
\n
"
,
error_code
);
LOG_D
(
HW
,
"[lte-softmodem.c] Could not allocate UE_thread, error %d
\n
"
,
error_code
);
return
;
return
;
}
else
{
}
else
{
char
name
[
128
];
sprintf
(
name
,
"main UE %d"
,
inst
);
LOG_D
(
HW
,
"[lte-softmodem.c] Allocate UE_thread successful
\n
"
);
LOG_D
(
HW
,
"[lte-softmodem.c] Allocate UE_thread successful
\n
"
);
pthread_setname_np
(
UE
->
proc
.
pthread_ue
,
"main UE"
);
pthread_setname_np
(
UE
->
proc
.
pthread_ue
,
name
);
}
}
}
}
...
@@ -1661,6 +1663,7 @@ void *UE_thread_old(void *arg)
...
@@ -1661,6 +1663,7 @@ void *UE_thread_old(void *arg)
void
init_UE_threads
(
int
inst
)
void
init_UE_threads
(
int
inst
)
{
{
struct
rx_tx_thread_data
*
rtd
;
struct
rx_tx_thread_data
*
rtd
;
char
name
[
128
];
PHY_VARS_UE
*
UE
;
PHY_VARS_UE
*
UE
;
UE
=
PHY_vars_UE_g
[
inst
][
0
];
UE
=
PHY_vars_UE_g
[
inst
][
0
];
...
@@ -1690,15 +1693,18 @@ void init_UE_threads(int inst)
...
@@ -1690,15 +1693,18 @@ void init_UE_threads(int inst)
rtd
->
UE
=
PHY_vars_UE_g
[
inst
][
UE
->
proc
.
proc_rxtx
[
0
].
CC_id
];
rtd
->
UE
=
PHY_vars_UE_g
[
inst
][
UE
->
proc
.
proc_rxtx
[
0
].
CC_id
];
rtd
->
proc
=
&
UE
->
proc
.
proc_rxtx
[
0
];
rtd
->
proc
=
&
UE
->
proc
.
proc_rxtx
[
0
];
pthread_create
(
&
UE
->
proc
.
proc_rxtx
[
0
].
pthread_rxtx
,
NULL
,
UE_thread_rxn_txnp4
,
rtd
);
//(void*)&UE->proc.proc_rxtx[0]);
pthread_create
(
&
UE
->
proc
.
proc_rxtx
[
0
].
pthread_rxtx
,
NULL
,
UE_thread_rxn_txnp4
,
rtd
);
//(void*)&UE->proc.proc_rxtx[0]);
pthread_setname_np
(
UE
->
proc
.
proc_rxtx
[
0
].
pthread_rxtx
,
"rxn_txnp4_even"
);
sprintf
(
name
,
"rxn_txnp4_even UE %d"
,
inst
);
pthread_setname_np
(
UE
->
proc
.
proc_rxtx
[
0
].
pthread_rxtx
,
name
);
rtd
=
calloc
(
1
,
sizeof
(
struct
rx_tx_thread_data
));
rtd
=
calloc
(
1
,
sizeof
(
struct
rx_tx_thread_data
));
if
(
rtd
==
NULL
)
abort
();
if
(
rtd
==
NULL
)
abort
();
rtd
->
UE
=
PHY_vars_UE_g
[
inst
][
UE
->
proc
.
proc_rxtx
[
1
].
CC_id
];
rtd
->
UE
=
PHY_vars_UE_g
[
inst
][
UE
->
proc
.
proc_rxtx
[
1
].
CC_id
];
rtd
->
proc
=
&
UE
->
proc
.
proc_rxtx
[
1
];
rtd
->
proc
=
&
UE
->
proc
.
proc_rxtx
[
1
];
pthread_create
(
&
UE
->
proc
.
proc_rxtx
[
1
].
pthread_rxtx
,
NULL
,
UE_thread_rxn_txnp4
,
rtd
);
//(void*)&UE->proc.proc_rxtx[1]);
pthread_create
(
&
UE
->
proc
.
proc_rxtx
[
1
].
pthread_rxtx
,
NULL
,
UE_thread_rxn_txnp4
,
rtd
);
//(void*)&UE->proc.proc_rxtx[1]);
pthread_setname_np
(
UE
->
proc
.
proc_rxtx
[
1
].
pthread_rxtx
,
"rxn_txnp4_odd"
);
sprintf
(
name
,
"rxn_txnp4_odd UE %d"
,
inst
);
pthread_setname_np
(
UE
->
proc
.
proc_rxtx
[
1
].
pthread_rxtx
,
name
);
pthread_create
(
&
UE
->
proc
.
pthread_synch
,
NULL
,
UE_thread_synch
,(
void
*
)
UE
);
pthread_create
(
&
UE
->
proc
.
pthread_synch
,
NULL
,
UE_thread_synch
,(
void
*
)
UE
);
pthread_setname_np
(
UE
->
proc
.
pthread_synch
,
"UE_thread_synch"
);
sprintf
(
name
,
"UE_thread_synch UE %d"
,
inst
);
pthread_setname_np
(
UE
->
proc
.
pthread_synch
,
name
);
}
}
...
...
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