[Darshan-commits] [Git][darshan/darshan][master] 3 commits: Print OST obdidx in one line

Shane Snyder xgitlab at cels.anl.gov
Mon Feb 20 16:51:47 CST 2017


Shane Snyder pushed to branch master at darshan / darshan


Commits:
5b4673ad by CongXu at 2017-02-13T15:47:19-08:00
Print OST obdidx in one line

Signed-off-by: CongXu <cong.xu at intel.com>

- - - - -
10ed9e3f by Shane Snyder at 2017-02-20T13:44:54-06:00
avoid parsing dxt modules at all in darshan-parser

- - - - -
d2f2053e by Shane Snyder at 2017-02-20T16:51:43-06:00
Merge branch 'master' into 'master'

Address Darshan-parser  seg fault issue and print OST obdidx in one line

See merge request !11
- - - - -


2 changed files:

- darshan-util/darshan-dxt-logutils.c
- darshan-util/darshan-parser.c


Changes:

=====================================
darshan-util/darshan-dxt-logutils.c
=====================================
--- a/darshan-util/darshan-dxt-logutils.c
+++ b/darshan-util/darshan-dxt-logutils.c
@@ -25,6 +25,11 @@ static int dxt_log_put_posix_file(darshan_fd fd, void* dxt_posix_buf);
 static int dxt_log_get_mpiio_file(darshan_fd fd, void** dxt_mpiio_buf_p);
 static int dxt_log_put_mpiio_file(darshan_fd fd, void* dxt_mpiio_buf);
 
+static void dxt_log_print_posix_file_darshan(void *file_rec,
+            char *file_name, char *mnt_pt, char *fs_type);
+static void dxt_log_print_mpiio_file_darshan(void *file_rec,
+            char *file_name, char *mnt_pt, char *fs_type);
+
 static void dxt_swap_file_record(struct dxt_file_record *file_rec);
 static void dxt_swap_file_record(struct dxt_file_record *file_rec);
 
@@ -32,7 +37,7 @@ struct darshan_mod_logutil_funcs dxt_posix_logutils =
 {
     .log_get_record = &dxt_log_get_posix_file,
     .log_put_record = &dxt_log_put_posix_file,
-    .log_print_record = NULL,
+    .log_print_record = &dxt_log_print_posix_file_darshan,
     .log_print_description = NULL,
     .log_print_diff = NULL,
     .log_agg_records = NULL,
@@ -42,7 +47,7 @@ struct darshan_mod_logutil_funcs dxt_mpiio_logutils =
 {
     .log_get_record = &dxt_log_get_mpiio_file,
     .log_put_record = &dxt_log_put_mpiio_file,
-    .log_print_record = NULL,
+    .log_print_record = &dxt_log_print_mpiio_file_darshan,
     .log_print_description = NULL,
     .log_print_diff = NULL,
     .log_agg_records = NULL,
@@ -241,6 +246,16 @@ static int dxt_log_put_mpiio_file(darshan_fd fd, void* dxt_mpiio_buf)
     return(0);
 }
 
+static void dxt_log_print_posix_file_darshan(void *file_rec, char *file_name,
+    char *mnt_pt, char *fs_type)
+{
+}
+
+static void dxt_log_print_mpiio_file_darshan(void *file_rec, char *file_name,
+    char *mnt_pt, char *fs_type)
+{
+}
+
 void dxt_log_print_posix_file(void *posix_file_rec, char *file_name,
     char *mnt_pt, char *fs_type, struct lustre_record_ref *lustre_rec_ref)
 {
@@ -286,9 +301,12 @@ void dxt_log_print_posix_file(void *posix_file_rec, char *file_name,
         stripe_count = rec->counters[LUSTRE_STRIPE_WIDTH];
 
         printf("# DXT, Lustre stripe_size: %d, Lustre stripe_count: %d\n", stripe_size, stripe_count);
+
+        printf("# DXT, Lustre OST obdidx:");
         for (i = 0; i < stripe_count; i++) {
-            printf("# DXT, Lustre OSTs: %d\n", (rec->ost_ids)[i]);
+            printf(" %d", (rec->ost_ids)[i]);
         }
+        printf("\n");
     }
 
     /* Print header */


=====================================
darshan-util/darshan-parser.c
=====================================
--- a/darshan-util/darshan-parser.c
+++ b/darshan-util/darshan-parser.c
@@ -395,6 +395,9 @@ int main(int argc, char **argv)
                 "for module %s, SKIPPING.\n", darshan_module_names[i]);
             continue;
         }
+        /* always ignore DXT modules -- those have a standalone parsing utility */
+        else if (i == DXT_POSIX_MOD || i == DXT_MPIIO_MOD)
+            continue;
         /* currently only POSIX, MPIIO, and STDIO modules support non-base
          * parsing
          */



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/compare/f157b7cea1ca6e3b57c584569562307781f20143...d2f2053e8356e9bf62866262eb454162e20f1696
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20170220/f6c5ad53/attachment-0001.html>


More information about the Darshan-commits mailing list