Commit 474c59b9 authored by Sudheer Chunduri's avatar Sudheer Chunduri
Browse files

apxc/util: fix the num indices counter

parent c29990b3
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
/* counter name strings for the APXC module */ /* counter name strings for the APXC module */
#define Y(a) #a, #define Y(a) #a,
#define X(a) Y(APXC_ ## a) #define X(a) Y(APXC_ ## a)
#define Z(a) #a
char *apxc_counter_names[] = { char *apxc_counter_names[] = {
APXC_PERF_COUNTERS APXC_PERF_COUNTERS
}; };
...@@ -32,6 +33,7 @@ char *apxc_counter_names[] = { ...@@ -32,6 +33,7 @@ char *apxc_counter_names[] = {
char *apxc_mmodes[] = { APXC_MEMORY_MODES }; char *apxc_mmodes[] = { APXC_MEMORY_MODES };
char *apxc_cmodes[] = { APXC_CLUSTER_MODES }; char *apxc_cmodes[] = { APXC_CLUSTER_MODES };
#undef X #undef X
#undef Z
static int darshan_log_get_apxc_rec(darshan_fd fd, void** buf_p); static int darshan_log_get_apxc_rec(darshan_fd fd, void** buf_p);
static int darshan_log_put_apxc_rec(darshan_fd fd, void* buf); static int darshan_log_put_apxc_rec(darshan_fd fd, void* buf);
...@@ -186,10 +188,9 @@ static void darshan_log_print_apxc_rec(void *rec, char *file_name, ...@@ -186,10 +188,9 @@ static void darshan_log_print_apxc_rec(void *rec, char *file_name,
static int first_rec = 1; static int first_rec = 1;
struct darshan_apxc_header_record *hdr_rec; struct darshan_apxc_header_record *hdr_rec;
struct darshan_apxc_perf_record *prf_rec; struct darshan_apxc_perf_record *prf_rec;
if (first_rec) if (first_rec)
{ {
hdr_rec = rec; hdr_rec = rec;
DARSHAN_I_COUNTER_PRINT(darshan_module_names[DARSHAN_APXC_MOD], DARSHAN_I_COUNTER_PRINT(darshan_module_names[DARSHAN_APXC_MOD],
hdr_rec->base_rec.rank, hdr_rec->base_rec.id, hdr_rec->base_rec.rank, hdr_rec->base_rec.id,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment