Commit f263cb70 authored by Philip Carns's avatar Philip Carns

print file name suffix

git-svn-id: 3b7491f3-a168-0410-bf4b-c445ed680a29
parent ff6f309d
......@@ -54,6 +54,7 @@ typedef struct hash_entry_s
double fcounters[CP_F_NUM_INDICES];
double cumul_time;
double meta_time;
char name_suffix[CP_NAME_SUFFIX_LEN+1];
} hash_entry_t;
typedef struct perf_data_s
......@@ -416,6 +417,7 @@ int main(int argc, char **argv)
/* init */
memset(hfile, 0, sizeof(*hfile));
hfile->hash = cp_file.hash;
memcpy(hfile->name_suffix, cp_file.name_suffix, CP_NAME_SUFFIX_LEN+1);
hfile->type = 0;
hfile->procs = 0;
hfile->cumul_time = 0.0;
......@@ -678,12 +680,14 @@ void file_list(struct darshan_job *djob, hash_entry_t *file_hash)
hash_entry_t *tmp = NULL;
printf("# <hash>: hash of file name\n");
printf("# <suffix>: last %d characters of file name\n", CP_NAME_SUFFIX_LEN);
printf("\n# <hash>\n");
printf("\n# <hash>\t<suffix>\n");
HASH_ITER(hlink, file_hash, curr, tmp)
printf("%" PRIu64 "\n",
printf("%" PRIu64 "\t%s\n",
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