Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sudheer Chunduri
darshan
Commits
3d963df9
Commit
3d963df9
authored
Feb 06, 2015
by
Shane Snyder
Browse files
additions to log format
parent
2936261c
Changes
1
Show whitespace changes
Inline
Side-by-side
darshan-log-format.h
View file @
3d963df9
...
...
@@ -32,6 +32,12 @@
typedef
uint64_t
darshan_record_id
;
enum
darshan_comp_type
{
DARSHAN_GZ_COMP
,
DARSHAN_BZ2_COMP
,
};
struct
darshan_header
{
char
version_string
[
8
];
...
...
@@ -44,7 +50,6 @@ struct darshan_record
{
char
*
name
;
darshan_record_id
id
;
//int64_t rank; /* TODO: maybe rank doesn't go here ? */
};
/* statistics for the job as a whole */
...
...
@@ -59,4 +64,126 @@ struct darshan_job
char
metadata
[
DARSHAN_JOB_METADATA_LEN
];
/* TODO: what is this? */
};
/*** POSIX MODULE DATA STRUCTURES START */
/* TODO: where do these file record structs go? */
/* TODO: DARSHAN_* OR CP_* */
enum
darshan_posix_indices
{
CP_POSIX_READS
,
/* count of posix reads */
CP_POSIX_WRITES
,
/* count of posix writes */
CP_POSIX_OPENS
,
/* count of posix opens */
CP_POSIX_SEEKS
,
/* count of posix seeks */
CP_POSIX_STATS
,
/* count of posix stat/lstat/fstats */
CP_POSIX_MMAPS
,
/* count of posix mmaps */
CP_POSIX_FREADS
,
CP_POSIX_FWRITES
,
CP_POSIX_FOPENS
,
CP_POSIX_FSEEKS
,
CP_POSIX_FSYNCS
,
CP_POSIX_FDSYNCS
,
CP_MODE
,
/* mode of file */
CP_BYTES_READ
,
/* total bytes read */
CP_BYTES_WRITTEN
,
/* total bytes written */
CP_MAX_BYTE_READ
,
/* highest offset byte read */
CP_MAX_BYTE_WRITTEN
,
/* highest offset byte written */
CP_CONSEC_READS
,
/* count of consecutive reads */
CP_CONSEC_WRITES
,
/* count of consecutive writes */
CP_SEQ_READS
,
/* count of sequential reads */
CP_SEQ_WRITES
,
/* count of sequential writes */
CP_RW_SWITCHES
,
/* number of times switched between read and write */
CP_MEM_NOT_ALIGNED
,
/* count of accesses not mem aligned */
CP_MEM_ALIGNMENT
,
/* mem alignment in bytes */
CP_FILE_NOT_ALIGNED
,
/* count of accesses not file aligned */
CP_FILE_ALIGNMENT
,
/* file alignment in bytes */
CP_MAX_READ_TIME_SIZE
,
CP_MAX_WRITE_TIME_SIZE
,
/* buckets */
CP_SIZE_READ_0_100
,
/* count of posix read size ranges */
CP_SIZE_READ_100_1K
,
CP_SIZE_READ_1K_10K
,
CP_SIZE_READ_10K_100K
,
CP_SIZE_READ_100K_1M
,
CP_SIZE_READ_1M_4M
,
CP_SIZE_READ_4M_10M
,
CP_SIZE_READ_10M_100M
,
CP_SIZE_READ_100M_1G
,
CP_SIZE_READ_1G_PLUS
,
/* buckets */
CP_SIZE_WRITE_0_100
,
/* count of posix write size ranges */
CP_SIZE_WRITE_100_1K
,
CP_SIZE_WRITE_1K_10K
,
CP_SIZE_WRITE_10K_100K
,
CP_SIZE_WRITE_100K_1M
,
CP_SIZE_WRITE_1M_4M
,
CP_SIZE_WRITE_4M_10M
,
CP_SIZE_WRITE_10M_100M
,
CP_SIZE_WRITE_100M_1G
,
CP_SIZE_WRITE_1G_PLUS
,
/* counters */
CP_STRIDE1_STRIDE
,
/* the four most frequently appearing strides */
CP_STRIDE2_STRIDE
,
CP_STRIDE3_STRIDE
,
CP_STRIDE4_STRIDE
,
CP_STRIDE1_COUNT
,
/* count of each of the most frequent strides */
CP_STRIDE2_COUNT
,
CP_STRIDE3_COUNT
,
CP_STRIDE4_COUNT
,
CP_ACCESS1_ACCESS
,
/* the four most frequently appearing access sizes */
CP_ACCESS2_ACCESS
,
CP_ACCESS3_ACCESS
,
CP_ACCESS4_ACCESS
,
CP_ACCESS1_COUNT
,
/* count of each of the most frequent access sizes */
CP_ACCESS2_COUNT
,
CP_ACCESS3_COUNT
,
CP_ACCESS4_COUNT
,
CP_DEVICE
,
/* device id reported by stat */
CP_SIZE_AT_OPEN
,
CP_FASTEST_RANK
,
CP_FASTEST_RANK_BYTES
,
CP_SLOWEST_RANK
,
CP_SLOWEST_RANK_BYTES
,
CP_NUM_INDICES
,
};
/* floating point statistics */
enum
darshan_f_posix_indices
{
/* NOTE: adjust cp_normalize_timestamps() function if any TIMESTAMPS are
* added or modified in this list
*/
CP_F_OPEN_TIMESTAMP
=
0
,
/* timestamp of first open */
CP_F_READ_START_TIMESTAMP
,
/* timestamp of first read */
CP_F_WRITE_START_TIMESTAMP
,
/* timestamp of first write */
CP_F_CLOSE_TIMESTAMP
,
/* timestamp of last close */
CP_F_READ_END_TIMESTAMP
,
/* timestamp of last read */
CP_F_WRITE_END_TIMESTAMP
,
/* timestamp of last write */
CP_F_POSIX_READ_TIME
,
/* cumulative posix read time */
CP_F_POSIX_WRITE_TIME
,
/* cumulative posix write time */
CP_F_POSIX_META_TIME
,
/* cumulative posix meta time */
CP_F_MAX_READ_TIME
,
CP_F_MAX_WRITE_TIME
,
/* Total I/O and meta time consumed by fastest and slowest ranks,
* reported in either MPI or POSIX time depending on how the file
* was accessed.
*/
CP_F_FASTEST_RANK_TIME
,
CP_F_SLOWEST_RANK_TIME
,
CP_F_VARIANCE_RANK_TIME
,
CP_F_VARIANCE_RANK_BYTES
,
CP_F_NUM_INDICES
,
};
struct
darshan_posix_file
{
darshan_record_id
f_id
;
int64_t
rank
;
int64_t
counters
[
CP_NUM_INDICES
];
double
fcounters
[
CP_F_NUM_INDICES
];
};
/*** POSIX MODULE DATA STRUCTURES END */
#endif
/* __DARSHAN_LOG_FORMAT_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment