Skip to content
Snippets Groups Projects
Commit e42d12d4 authored by Mark Grondona's avatar Mark Grondona
Browse files

o Change MPIR_PROCDESC from unnamed to named struct for TotalView v6

   support
parent fac0ebfe
No related branches found
No related tags found
No related merge requests found
...@@ -42,14 +42,14 @@ ...@@ -42,14 +42,14 @@
* DO NOT change the name of this structure or its fields. The debugger knows * DO NOT change the name of this structure or its fields. The debugger knows
* them, and will be confused if you change them. * them, and will be confused if you change them.
*/ */
typedef struct { struct MPIR_PROCDESC {
char * host_name; /* Something we can pass to inet_addr */ char * host_name; /* Something we can pass to inet_addr */
char * executable_name; /* The name of the image */ char * executable_name; /* The name of the image */
int pid; /* The pid of the process */ int pid; /* The pid of the process */
} MPIR_PROCDESC; };
/* Array of procdescs for debugging purposes */ /* Array of procdescs for debugging purposes */
extern MPIR_PROCDESC *MPIR_proctable; extern struct MPIR_PROCDESC *MPIR_proctable;
extern int MPIR_proctable_size; extern int MPIR_proctable_size;
/* Various global variables which a debugger can use for /* Various global variables which a debugger can use for
......
...@@ -129,7 +129,7 @@ _node_name_to_addr(const char *name, job_t *job, int *inx) ...@@ -129,7 +129,7 @@ _node_name_to_addr(const char *name, job_t *job, int *inx)
static void static void
_build_tv_list(job_t *job, char *host, int ntasks, uint32_t *pid) _build_tv_list(job_t *job, char *host, int ntasks, uint32_t *pid)
{ {
MPIR_PROCDESC * tv_tasks; struct MPIR_PROCDESC * tv_tasks;
int i, node_inx, task_id; int i, node_inx, task_id;
char *node_addr; char *node_addr;
static int tasks_recorded = 0; static int tasks_recorded = 0;
...@@ -140,7 +140,7 @@ _build_tv_list(job_t *job, char *host, int ntasks, uint32_t *pid) ...@@ -140,7 +140,7 @@ _build_tv_list(job_t *job, char *host, int ntasks, uint32_t *pid)
if (MPIR_proctable_size == 0) { if (MPIR_proctable_size == 0) {
MPIR_proctable_size = opt.nprocs; MPIR_proctable_size = opt.nprocs;
MPIR_proctable = xmalloc(sizeof(MPIR_PROCDESC) * opt.nprocs); MPIR_proctable = xmalloc(sizeof(struct MPIR_PROCDESC) * opt.nprocs);
} }
for (i = 0; i < ntasks; i++) { for (i = 0; i < ntasks; i++) {
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
/* /*
* Instantiate extern variables from attach.h * Instantiate extern variables from attach.h
*/ */
MPIR_PROCDESC *MPIR_proctable; struct MPIR_PROCDESC *MPIR_proctable;
int MPIR_proctable_size; int MPIR_proctable_size;
VOLATILE int MPIR_debug_state; VOLATILE int MPIR_debug_state;
VOLATILE int MPIR_debug_gate; VOLATILE int MPIR_debug_gate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment