Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shane Snyder
darshan
Commits
2f7e0da1
Commit
2f7e0da1
authored
Apr 01, 2015
by
Philip Carns
Browse files
extended comments on darshan_file_runtime struct
parent
d72958de
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-posix.c
View file @
2f7e0da1
...
...
@@ -97,6 +97,22 @@ enum posix_io_type
* assists with the instrumenting of specific statistics in the file record.
* 'hlink' is a hash table link structure used to add/remove this record
* from the hash table of POSIX file records for this process.
*
* RATIONALE: the POSIX module needs to track some stateful, volatile
* information about each open file (like the current file offset, most recent
* access time, etc.) to aid in instrumentation, but this information can't be
* stored in the darshan_posix_file struct because we don't want it to appear in
* the final darshan log file. We therefore associate a posix_file_runtime
* struct with each darshan_posix_file struct in order to track this information.
*
* NOTE: There is a one-to-one mapping of posix_file_runtime structs to
* darshan_posix_file structs.
*
* NOTE: The posix_file_runtime struct contains a pointer to a darshan_posix_file
* struct (see the *file_record member) rather than simply embedding an entire
* darshan_posix_file struct. This is done so that all of the darshan_posix_file
* structs can be kept contiguous in memory as a single array to simplify
* reduction, compression, and storage.
*/
struct
posix_file_runtime
{
...
...
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