Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
af624bef
Commit
af624bef
authored
May 01, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc code cleanups and notes
parent
91092ee1
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
49 deletions
+42
-49
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+34
-43
darshan-runtime/lib/darshan-stdio.c
darshan-runtime/lib/darshan-stdio.c
+8
-6
No files found.
darshan-runtime/lib/darshan-posix.c
View file @
af624bef
This diff is collapsed.
Click to expand it.
darshan-runtime/lib/darshan-stdio.c
View file @
af624bef
...
...
@@ -4,6 +4,14 @@
*
*/
/* TODO list (general) for this module:
* - finish remaining function wrappers, see log format header
* - implement reduction operator
* - add stdio page to darshan-job-summary
* - figure out what to do about posix module compatibility
* - remove stdio counters in POSIX or keep and set to -1?
*/
#define _XOPEN_SOURCE 500
#define _GNU_SOURCE
...
...
@@ -63,10 +71,8 @@ DARSHAN_FORWARD_DECL(fseek, int, (FILE *stream, long offset, int whence));
*/
struct
stdio_file_runtime
{
/* TODO: make sure we need/want all of these fields */
struct
darshan_stdio_record
*
file_record
;
int64_t
offset
;
enum
darshan_io_type
last_io_type
;
double
last_meta_end
;
double
last_read_end
;
double
last_write_end
;
...
...
@@ -137,8 +143,6 @@ static void stdio_shutdown(void);
#define STDIO_LOCK() pthread_mutex_lock(&stdio_runtime_mutex)
#define STDIO_UNLOCK() pthread_mutex_unlock(&stdio_runtime_mutex)
/* TODO: remember to clean up stream_flag in posix module */
#define STDIO_RECORD_OPEN(__ret, __path, __tm1, __tm2) do { \
struct stdio_file_runtime* file; \
char* exclude; \
...
...
@@ -562,8 +566,6 @@ static void stdio_get_output_data(
void
**
stdio_buf
,
int
*
stdio_buf_sz
)
{
/* TODO: implement reduction operator */
assert
(
stdio_runtime
);
*
stdio_buf
=
(
void
*
)(
stdio_runtime
->
file_record_array
);
...
...
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