Commit 1419f48e authored by Shane Snyder's avatar Shane Snyder

remove unneeded parameter to log_print_record

parent a3c693c6
...@@ -37,7 +37,7 @@ char *bgq_f_counter_names[] = { ...@@ -37,7 +37,7 @@ char *bgq_f_counter_names[] = {
static int darshan_log_get_bgq_rec(darshan_fd fd, void** bgq_buf_p); static int darshan_log_get_bgq_rec(darshan_fd fd, void** bgq_buf_p);
static int darshan_log_put_bgq_rec(darshan_fd fd, void* bgq_buf); static int darshan_log_put_bgq_rec(darshan_fd fd, void* bgq_buf);
static void darshan_log_print_bgq_rec(void *file_rec, static void darshan_log_print_bgq_rec(void *file_rec,
char *file_name, char *mnt_pt, char *fs_type, int ver); char *file_name, char *mnt_pt, char *fs_type);
static void darshan_log_print_bgq_description(int ver); static void darshan_log_print_bgq_description(int ver);
static void darshan_log_print_bgq_rec_diff(void *file_rec1, char *file_name1, static void darshan_log_print_bgq_rec_diff(void *file_rec1, char *file_name1,
void *file_rec2, char *file_name2); void *file_rec2, char *file_name2);
...@@ -150,7 +150,7 @@ static int darshan_log_put_bgq_rec(darshan_fd fd, void* bgq_buf) ...@@ -150,7 +150,7 @@ static int darshan_log_put_bgq_rec(darshan_fd fd, void* bgq_buf)
} }
static void darshan_log_print_bgq_rec(void *file_rec, char *file_name, static void darshan_log_print_bgq_rec(void *file_rec, char *file_name,
char *mnt_pt, char *fs_type, int ver) char *mnt_pt, char *fs_type)
{ {
int i; int i;
struct darshan_bgq_record *bgq_file_rec = struct darshan_bgq_record *bgq_file_rec =
......
...@@ -33,7 +33,7 @@ char *hdf5_f_counter_names[] = { ...@@ -33,7 +33,7 @@ char *hdf5_f_counter_names[] = {
static int darshan_log_get_hdf5_file(darshan_fd fd, void** hdf5_buf_p); static int darshan_log_get_hdf5_file(darshan_fd fd, void** hdf5_buf_p);
static int darshan_log_put_hdf5_file(darshan_fd fd, void* hdf5_buf); static int darshan_log_put_hdf5_file(darshan_fd fd, void* hdf5_buf);
static void darshan_log_print_hdf5_file(void *file_rec, static void darshan_log_print_hdf5_file(void *file_rec,
char *file_name, char *mnt_pt, char *fs_type, int ver); char *file_name, char *mnt_pt, char *fs_type);
static void darshan_log_print_hdf5_description(int ver); static void darshan_log_print_hdf5_description(int ver);
static void darshan_log_print_hdf5_file_diff(void *file_rec1, char *file_name1, static void darshan_log_print_hdf5_file_diff(void *file_rec1, char *file_name1,
void *file_rec2, char *file_name2); void *file_rec2, char *file_name2);
...@@ -111,7 +111,7 @@ static int darshan_log_put_hdf5_file(darshan_fd fd, void* hdf5_buf) ...@@ -111,7 +111,7 @@ static int darshan_log_put_hdf5_file(darshan_fd fd, void* hdf5_buf)
} }
static void darshan_log_print_hdf5_file(void *file_rec, char *file_name, static void darshan_log_print_hdf5_file(void *file_rec, char *file_name,
char *mnt_pt, char *fs_type, int ver) char *mnt_pt, char *fs_type)
{ {
int i; int i;
struct darshan_hdf5_file *hdf5_file_rec = struct darshan_hdf5_file *hdf5_file_rec =
......
...@@ -30,7 +30,8 @@ struct darshan_fd_s ...@@ -30,7 +30,8 @@ struct darshan_fd_s
/* log file version */ /* log file version */
char version[8]; char version[8];
/* flag indicating whether byte swapping needs to be /* flag indicating whether byte swapping needs to be
* performed on log file data */ * performed on log file data
*/
int swap_flag; int swap_flag;
/* flag indicating whether a log file contains partial data */ /* flag indicating whether a log file contains partial data */
int partial_flag; int partial_flag;
...@@ -90,21 +91,19 @@ struct darshan_mod_logutil_funcs ...@@ -90,21 +91,19 @@ struct darshan_mod_logutil_funcs
* - 'file_name' is the file path string for the record * - 'file_name' is the file path string for the record
* - 'mnt-pt' is the file path mount point string * - 'mnt-pt' is the file path mount point string
* - 'fs_type' is the file system type string * - 'fs_type' is the file system type string
* - 'ver' is the version of the record
*/ */
void (*log_print_record)( void (*log_print_record)(
void *file_rec, void *file_rec,
char *file_name, char *file_name,
char *mnt_pt, char *mnt_pt,
char *fs_type, char *fs_type
int ver
); );
/* print module-specific description of I/O characterization data /* print module-specific description of I/O characterization data
* - 'ver' is the version of the record * - 'ver' is the version of the record
*/ */
void (*log_print_description)( void (*log_print_description)(
int ver); int ver);
/* print a text diff of 2 module I/O records */ /* print a text diff of 2 module records */
void (*log_print_diff)( void (*log_print_diff)(
void *rec1, void *rec1,
char *name1, char *name1,
......
...@@ -27,7 +27,7 @@ char *lustre_counter_names[] = { ...@@ -27,7 +27,7 @@ char *lustre_counter_names[] = {
static int darshan_log_get_lustre_record(darshan_fd fd, void** lustre_buf_p); static int darshan_log_get_lustre_record(darshan_fd fd, void** lustre_buf_p);
static int darshan_log_put_lustre_record(darshan_fd fd, void* lustre_buf); static int darshan_log_put_lustre_record(darshan_fd fd, void* lustre_buf);
static void darshan_log_print_lustre_record(void *file_rec, static void darshan_log_print_lustre_record(void *file_rec,
char *file_name, char *mnt_pt, char *fs_type, int ver); char *file_name, char *mnt_pt, char *fs_type);
static void darshan_log_print_lustre_description(int ver); static void darshan_log_print_lustre_description(int ver);
static void darshan_log_print_lustre_record_diff(void *rec1, char *file_name1, static void darshan_log_print_lustre_record_diff(void *rec1, char *file_name1,
void *rec2, char *file_name2); void *rec2, char *file_name2);
...@@ -128,7 +128,7 @@ static int darshan_log_put_lustre_record(darshan_fd fd, void* lustre_buf) ...@@ -128,7 +128,7 @@ static int darshan_log_put_lustre_record(darshan_fd fd, void* lustre_buf)
} }
static void darshan_log_print_lustre_record(void *rec, char *file_name, static void darshan_log_print_lustre_record(void *rec, char *file_name,
char *mnt_pt, char *fs_type, int ver) char *mnt_pt, char *fs_type)
{ {
int i; int i;
struct darshan_lustre_record *lustre_rec = struct darshan_lustre_record *lustre_rec =
......
...@@ -33,7 +33,7 @@ char *mpiio_f_counter_names[] = { ...@@ -33,7 +33,7 @@ char *mpiio_f_counter_names[] = {
static int darshan_log_get_mpiio_file(darshan_fd fd, void** mpiio_buf_p); static int darshan_log_get_mpiio_file(darshan_fd fd, void** mpiio_buf_p);
static int darshan_log_put_mpiio_file(darshan_fd fd, void* mpiio_buf); static int darshan_log_put_mpiio_file(darshan_fd fd, void* mpiio_buf);
static void darshan_log_print_mpiio_file(void *file_rec, static void darshan_log_print_mpiio_file(void *file_rec,
char *file_name, char *mnt_pt, char *fs_type, int ver); char *file_name, char *mnt_pt, char *fs_type);
static void darshan_log_print_mpiio_description(int ver); static void darshan_log_print_mpiio_description(int ver);
static void darshan_log_print_mpiio_file_diff(void *file_rec1, char *file_name1, static void darshan_log_print_mpiio_file_diff(void *file_rec1, char *file_name1,
void *file_rec2, char *file_name2); void *file_rec2, char *file_name2);
...@@ -111,7 +111,7 @@ static int darshan_log_put_mpiio_file(darshan_fd fd, void* mpiio_buf) ...@@ -111,7 +111,7 @@ static int darshan_log_put_mpiio_file(darshan_fd fd, void* mpiio_buf)
} }
static void darshan_log_print_mpiio_file(void *file_rec, char *file_name, static void darshan_log_print_mpiio_file(void *file_rec, char *file_name,
char *mnt_pt, char *fs_type, int ver) char *mnt_pt, char *fs_type)
{ {
int i; int i;
struct darshan_mpiio_file *mpiio_file_rec = struct darshan_mpiio_file *mpiio_file_rec =
......
...@@ -35,7 +35,7 @@ char *null_f_counter_names[] = { ...@@ -35,7 +35,7 @@ char *null_f_counter_names[] = {
static int darshan_log_get_null_record(darshan_fd fd, void** null_buf_p); static int darshan_log_get_null_record(darshan_fd fd, void** null_buf_p);
static int darshan_log_put_null_record(darshan_fd fd, void* null_buf); static int darshan_log_put_null_record(darshan_fd fd, void* null_buf);
static void darshan_log_print_null_record(void *file_rec, static void darshan_log_print_null_record(void *file_rec,
char *file_name, char *mnt_pt, char *fs_type, int ver); char *file_name, char *mnt_pt, char *fs_type);
static void darshan_log_print_null_description(int ver); static void darshan_log_print_null_description(int ver);
static void darshan_log_print_null_record_diff(void *file_rec1, char *file_name1, static void darshan_log_print_null_record_diff(void *file_rec1, char *file_name1,
void *file_rec2, char *file_name2); void *file_rec2, char *file_name2);
...@@ -127,7 +127,7 @@ static int darshan_log_put_null_record(darshan_fd fd, void* null_buf) ...@@ -127,7 +127,7 @@ static int darshan_log_put_null_record(darshan_fd fd, void* null_buf)
/* print all I/O data record statistics for the given NULL record */ /* print all I/O data record statistics for the given NULL record */
static void darshan_log_print_null_record(void *file_rec, char *file_name, static void darshan_log_print_null_record(void *file_rec, char *file_name,
char *mnt_pt, char *fs_type, int ver) char *mnt_pt, char *fs_type)
{ {
int i; int i;
struct darshan_null_record *null_rec = struct darshan_null_record *null_rec =
......
...@@ -477,7 +477,7 @@ int main(int argc, char **argv) ...@@ -477,7 +477,7 @@ int main(int argc, char **argv)
{ {
/* print the corresponding module data for this record */ /* print the corresponding module data for this record */
mod_logutils[i]->log_print_record(mod_buf, rec_name, mod_logutils[i]->log_print_record(mod_buf, rec_name,
mnt_pt, fs_type, fd->mod_ver[i]); mnt_pt, fs_type);
} }
/* we calculate more detailed stats for POSIX, MPI-IO, and STDIO modules, /* we calculate more detailed stats for POSIX, MPI-IO, and STDIO modules,
......
...@@ -33,7 +33,7 @@ char *pnetcdf_f_counter_names[] = { ...@@ -33,7 +33,7 @@ char *pnetcdf_f_counter_names[] = {
static int darshan_log_get_pnetcdf_file(darshan_fd fd, void** pnetcdf_buf_p); static int darshan_log_get_pnetcdf_file(darshan_fd fd, void** pnetcdf_buf_p);
static int darshan_log_put_pnetcdf_file(darshan_fd fd, void* pnetcdf_buf); static int darshan_log_put_pnetcdf_file(darshan_fd fd, void* pnetcdf_buf);
static void darshan_log_print_pnetcdf_file(void *file_rec, static void darshan_log_print_pnetcdf_file(void *file_rec,
char *file_name, char *mnt_pt, char *fs_type, int ver); char *file_name, char *mnt_pt, char *fs_type);
static void darshan_log_print_pnetcdf_description(int ver); static void darshan_log_print_pnetcdf_description(int ver);
static void darshan_log_print_pnetcdf_file_diff(void *file_rec1, char *file_name1, static void darshan_log_print_pnetcdf_file_diff(void *file_rec1, char *file_name1,
void *file_rec2, char *file_name2); void *file_rec2, char *file_name2);
...@@ -111,7 +111,7 @@ static int darshan_log_put_pnetcdf_file(darshan_fd fd, void* pnetcdf_buf) ...@@ -111,7 +111,7 @@ static int darshan_log_put_pnetcdf_file(darshan_fd fd, void* pnetcdf_buf)
} }
static void darshan_log_print_pnetcdf_file(void *file_rec, char *file_name, static void darshan_log_print_pnetcdf_file(void *file_rec, char *file_name,
char *mnt_pt, char *fs_type, int ver) char *mnt_pt, char *fs_type)
{ {
int i; int i;
struct darshan_pnetcdf_file *pnetcdf_file_rec = struct darshan_pnetcdf_file *pnetcdf_file_rec =
......
...@@ -36,7 +36,7 @@ char *posix_f_counter_names[] = { ...@@ -36,7 +36,7 @@ char *posix_f_counter_names[] = {
static int darshan_log_get_posix_file(darshan_fd fd, void** posix_buf_p); static int darshan_log_get_posix_file(darshan_fd fd, void** posix_buf_p);
static int darshan_log_put_posix_file(darshan_fd fd, void* posix_buf); static int darshan_log_put_posix_file(darshan_fd fd, void* posix_buf);
static void darshan_log_print_posix_file(void *file_rec, static void darshan_log_print_posix_file(void *file_rec,
char *file_name, char *mnt_pt, char *fs_type, int ver); char *file_name, char *mnt_pt, char *fs_type);
static void darshan_log_print_posix_description(int ver); static void darshan_log_print_posix_description(int ver);
static void darshan_log_print_posix_file_diff(void *file_rec1, char *file_name1, static void darshan_log_print_posix_file_diff(void *file_rec1, char *file_name1,
void *file_rec2, char *file_name2); void *file_rec2, char *file_name2);
...@@ -174,7 +174,7 @@ static int darshan_log_put_posix_file(darshan_fd fd, void* posix_buf) ...@@ -174,7 +174,7 @@ static int darshan_log_put_posix_file(darshan_fd fd, void* posix_buf)
} }
static void darshan_log_print_posix_file(void *file_rec, char *file_name, static void darshan_log_print_posix_file(void *file_rec, char *file_name,
char *mnt_pt, char *fs_type, int ver) char *mnt_pt, char *fs_type)
{ {
int i; int i;
struct darshan_posix_file *posix_file_rec = struct darshan_posix_file *posix_file_rec =
......
...@@ -35,7 +35,7 @@ char *stdio_f_counter_names[] = { ...@@ -35,7 +35,7 @@ char *stdio_f_counter_names[] = {
static int darshan_log_get_stdio_record(darshan_fd fd, void** stdio_buf_p); static int darshan_log_get_stdio_record(darshan_fd fd, void** stdio_buf_p);
static int darshan_log_put_stdio_record(darshan_fd fd, void* stdio_buf); static int darshan_log_put_stdio_record(darshan_fd fd, void* stdio_buf);
static void darshan_log_print_stdio_record(void *file_rec, static void darshan_log_print_stdio_record(void *file_rec,
char *file_name, char *mnt_pt, char *fs_type, int ver); char *file_name, char *mnt_pt, char *fs_type);
static void darshan_log_print_stdio_description(int ver); static void darshan_log_print_stdio_description(int ver);
static void darshan_log_print_stdio_record_diff(void *file_rec1, char *file_name1, static void darshan_log_print_stdio_record_diff(void *file_rec1, char *file_name1,
void *file_rec2, char *file_name2); void *file_rec2, char *file_name2);
...@@ -127,7 +127,7 @@ static int darshan_log_put_stdio_record(darshan_fd fd, void* stdio_buf) ...@@ -127,7 +127,7 @@ static int darshan_log_put_stdio_record(darshan_fd fd, void* stdio_buf)
/* print all I/O data record statistics for the given STDIO record */ /* print all I/O data record statistics for the given STDIO record */
static void darshan_log_print_stdio_record(void *file_rec, char *file_name, static void darshan_log_print_stdio_record(void *file_rec, char *file_name,
char *mnt_pt, char *fs_type, int ver) char *mnt_pt, char *fs_type)
{ {
int i; int i;
struct darshan_stdio_file *stdio_rec = struct darshan_stdio_file *stdio_rec =
......
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