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
abdf2094
Commit
abdf2094
authored
Dec 05, 2018
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add posix function for registering new fd
parent
4d0c757c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+18
-0
No files found.
darshan-runtime/lib/darshan-posix.c
View file @
abdf2094
...
...
@@ -166,6 +166,10 @@ extern void dxt_posix_write(darshan_record_id rec_id, int64_t offset,
extern
void
dxt_posix_read
(
darshan_record_id
rec_id
,
int64_t
offset
,
int64_t
length
,
double
start_time
,
double
end_time
);
/* function for registering a newly opened file descriptor with the POSIX module */
int
darshan_posix_add_open_fd
(
int
fd
,
char
*
rec_name
,
int64_t
counter
,
double
tm1
,
double
tm2
);
static
struct
posix_runtime
*
posix_runtime
=
NULL
;
static
pthread_mutex_t
posix_runtime_mutex
=
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
;
static
int
my_rank
=
-
1
;
...
...
@@ -1426,6 +1430,20 @@ static void posix_aio_tracker_add(int fd, void *aiocbp)
return
;
}
int
darshan_posix_add_open_fd
(
int
fd
,
char
*
rec_name
,
int64_t
counter
,
double
tm1
,
double
tm2
)
{
struct
posix_file_record_ref
*
rec_ref
;
int
ret
=
0
;
POSIX_PRE_RECORD
();
POSIX_RECORD_OPEN
(
fd
,
rec_name
,
0
,
tm1
,
tm2
);
/* XXX */
POSIX_POST_RECORD
();
return
(
ret
);
}
static
void
posix_finalize_file_records
(
void
*
rec_ref_p
)
{
struct
posix_file_record_ref
*
rec_ref
=
...
...
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