mcexec: transfer job information to LWK

This commit is contained in:
Balazs Gerofi
2017-02-25 18:48:39 +09:00
parent 5a4148aaaf
commit 9c25d47d9b
5 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,7 @@ struct program_load_desc {
unsigned long interp_align;
unsigned long mpol_flags;
unsigned long mpol_threshold;
int nr_processes;
char shell_path[SHELL_PATH_MAX_LEN];
__cpu_set_unit cpu_set[PLD_CPU_SET_SIZE];
struct program_image_section sections[0];

View File

@ -1738,6 +1738,7 @@ int main(int argc, char **argv)
}
}
desc->nr_processes = nr_processes;
desc->mpol_flags = 0;
if (mpol_no_heap) {
desc->mpol_flags |= MPOL_NO_HEAP;

View File

@ -430,6 +430,7 @@ static int process_msg_prepare_process(unsigned long rphys)
proc->termsig = SIGCHLD;
proc->mpol_flags = pn->mpol_flags;
proc->mpol_threshold = pn->mpol_threshold;
proc->nr_processes = pn->nr_processes;
vm->region.user_start = pn->user_start;
vm->region.user_end = pn->user_end;

View File

@ -549,6 +549,7 @@ struct process {
mcs_lock_node_t profile_lock;
struct profile_event *profile_events;
#endif // PROFILE_ENABLE
int nr_processes; /* For partitioned execution */
};
void hold_thread(struct thread *ftn);

View File

@ -194,6 +194,7 @@ struct program_load_desc {
unsigned long interp_align;
unsigned long mpol_flags;
unsigned long mpol_threshold;
int nr_processes;
char shell_path[SHELL_PATH_MAX_LEN];
__cpu_set_unit cpu_set[PLD_CPU_SET_SIZE];
struct program_image_section sections[0];