mcexec: introduction of --profile
This commit is contained in:
@ -132,6 +132,7 @@ struct program_load_desc {
|
||||
int nr_processes;
|
||||
char shell_path[SHELL_PATH_MAX_LEN];
|
||||
__cpu_set_unit cpu_set[PLD_CPU_SET_SIZE];
|
||||
int profile;
|
||||
struct program_image_section sections[0];
|
||||
};
|
||||
|
||||
|
||||
@ -159,6 +159,7 @@ static int mpol_no_stack = 0;
|
||||
static int mpol_no_bss = 0;
|
||||
static int no_bind_ikc_map = 0;
|
||||
static unsigned long mpol_threshold = 0;
|
||||
static int profile = 0;
|
||||
|
||||
/* Partitioned execution (e.g., for MPI) */
|
||||
static int nr_processes = 0;
|
||||
@ -1284,6 +1285,12 @@ static struct option mcexec_options[] = {
|
||||
.flag = &enable_vdso,
|
||||
.val = 1,
|
||||
},
|
||||
{
|
||||
.name = "profile",
|
||||
.has_arg = no_argument,
|
||||
.flag = &profile,
|
||||
.val = 1,
|
||||
},
|
||||
{
|
||||
.name = "mpol-no-heap",
|
||||
.has_arg = no_argument,
|
||||
@ -1738,6 +1745,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
desc->profile = profile;
|
||||
desc->nr_processes = nr_processes;
|
||||
desc->mpol_flags = 0;
|
||||
if (mpol_no_heap) {
|
||||
|
||||
Reference in New Issue
Block a user