mcexec: transfer job information to LWK
This commit is contained in:
@ -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];
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user