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
73
Issues
73
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
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
54baa7dd
Commit
54baa7dd
authored
Jun 08, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix comment and shuffle some more code
parent
d8f3575a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
27 deletions
+28
-27
darshan-runtime/darshan.h
darshan-runtime/darshan.h
+2
-1
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+26
-26
No files found.
darshan-runtime/darshan.h
View file @
54baa7dd
...
...
@@ -134,7 +134,8 @@ darshan_record_id darshan_core_gen_record_id(
* is the size of the record being registered with Darshan. If given,
* 'file_alignment' is a pointer to an integer which on return will
* contain the corresponding file system alignment of the file system
* path 'name' resides on.
* path 'name' resides on. Returns a pointer to the address the record
* should be written to on success, NULL on failure.
*/
void
*
darshan_core_register_record
(
darshan_record_id
rec_id
,
...
...
darshan-runtime/lib/darshan-posix.c
View file @
54baa7dd
...
...
@@ -1574,6 +1574,32 @@ static void posix_aio_tracker_add(int fd, void *aiocbp)
return
;
}
static
void
posix_finalize_file_records
(
void
*
rec_ref_p
)
{
struct
posix_file_record_ref
*
rec_ref
=
(
struct
posix_file_record_ref
*
)
rec_ref_p
;
#ifndef __DARSHAN_ENABLE_MMAP_LOGS
/* walk common counters to get 4 most common -- only if mmap
* feature is disabled (mmap updates counters on the go)
*/
/* common accesses */
darshan_walk_common_vals
(
rec_ref
->
access_root
,
&
(
rec_ref
->
file_rec
->
counters
[
POSIX_ACCESS1_ACCESS
]),
&
(
rec_ref
->
file_rec
->
counters
[
POSIX_ACCESS1_COUNT
]));
/* common strides */
darshan_walk_common_vals
(
rec_ref
->
stride_root
,
&
(
rec_ref
->
file_rec
->
counters
[
POSIX_STRIDE1_STRIDE
]),
&
(
rec_ref
->
file_rec
->
counters
[
POSIX_STRIDE1_COUNT
]));
#endif
tdestroy
(
rec_ref
->
access_root
,
free
);
tdestroy
(
rec_ref
->
stride_root
,
free
);
return
;
}
static
void
posix_record_reduction_op
(
void
*
infile_v
,
void
*
inoutfile_v
,
int
*
len
,
MPI_Datatype
*
datatype
)
{
...
...
@@ -1901,32 +1927,6 @@ static void posix_begin_shutdown()
return
;
}
static
void
posix_finalize_file_records
(
void
*
rec_ref_p
)
{
struct
posix_file_record_ref
*
rec_ref
=
(
struct
posix_file_record_ref
*
)
rec_ref_p
;
#ifndef __DARSHAN_ENABLE_MMAP_LOGS
/* walk common counters to get 4 most common -- only if mmap
* feature is disabled (mmap updates counters on the go)
*/
/* common accesses */
darshan_walk_common_vals
(
rec_ref
->
access_root
,
&
(
rec_ref
->
file_rec
->
counters
[
POSIX_ACCESS1_ACCESS
]),
&
(
rec_ref
->
file_rec
->
counters
[
POSIX_ACCESS1_COUNT
]));
/* common strides */
darshan_walk_common_vals
(
rec_ref
->
stride_root
,
&
(
rec_ref
->
file_rec
->
counters
[
POSIX_STRIDE1_STRIDE
]),
&
(
rec_ref
->
file_rec
->
counters
[
POSIX_STRIDE1_COUNT
]));
#endif
tdestroy
(
rec_ref
->
access_root
,
free
);
tdestroy
(
rec_ref
->
stride_root
,
free
);
return
;
}
static
void
posix_get_output_data
(
MPI_Comm
mod_comm
,
darshan_record_id
*
shared_recs
,
...
...
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