Record pthread routine address in clone(), keep helper threads on caller CPU core (workaround for Fugaku)

Change-Id: I29d1589e430dc1396558cdf3df4d068c27173612
This commit is contained in:
Balazs Gerofi
2019-11-14 09:15:56 +09:00
committed by Masamichi Takagi
parent 97b107f61c
commit 3328ce03d9
5 changed files with 199 additions and 9 deletions

View File

@ -608,6 +608,7 @@ struct thread {
// thread info
int cpu_id;
int tid;
char pthread_routine[PATH_MAX + 64];
int status; // PS_RUNNING -> PS_EXITED (-> ZOMBIE / ptrace)
// | ^ ^
// | | |
@ -717,6 +718,7 @@ struct thread {
/* Syscall offload wait queue head */
struct waitq scd_wq;
unsigned long clone_pthread_start_routine;
int uti_state;
int mod_clone;
struct uti_attr *mod_clone_arg;