partitioned execution: pass process rank to LWK

Cherry-pick of d2d134d5e6a4b16a34d55d31b14614a2a91ecf47

Conflicts:
	kernel/include/process.h
This commit is contained in:
Balazs Gerofi
2017-08-23 10:16:22 +09:00
committed by Masamichi Takagi
parent 4439b04d9f
commit a697f5e98d
7 changed files with 20 additions and 0 deletions

View File

@@ -482,6 +482,7 @@ static int process_msg_prepare_process(unsigned long rphys)
proc->mpol_flags = pn->mpol_flags;
proc->mpol_threshold = pn->mpol_threshold;
proc->nr_processes = pn->nr_processes;
proc->process_rank = pn->process_rank;
proc->heap_extension = pn->heap_extension;
/* Update NUMA binding policy if requested */

View File

@@ -570,6 +570,7 @@ struct process {
unsigned long profile_elapsed_ts;
#endif // PROFILE_ENABLE
int nr_processes; /* For partitioned execution */
int process_rank; /* Rank in partition */
};
/*

View File

@@ -199,6 +199,7 @@ struct program_load_desc {
long stack_premap;
unsigned long mpol_bind_mask;
int nr_processes;
int process_rank;
char shell_path[SHELL_PATH_MAX_LEN];
__cpu_set_unit cpu_set[PLD_CPU_SET_SIZE];
int profile;