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
1a8977a1
Commit
1a8977a1
authored
Nov 27, 2018
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add wrapper for __open_2 function call
parent
4c900db7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
ChangeLog
ChangeLog
+2
-0
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+19
-0
darshan-runtime/share/ld-opts/darshan-posix-ld-opts
darshan-runtime/share/ld-opts/darshan-posix-ld-opts
+1
-0
No files found.
ChangeLog
View file @
1a8977a1
...
...
@@ -9,6 +9,8 @@ Darshan-3.1.7
were not properly up-converted. Reported by Teng Wang.
* bug fix to MiB reported in I/O performance estimate of
darshan-job-summary.pl when both posix and stdio access is present
* added wrapper for __open_2(), bug reported by Cormac Garvey in which open
calls are not intercepted with some versions of glibc/gcc
Darshan-3.1.6
=============
...
...
darshan-runtime/lib/darshan-posix.c
View file @
1a8977a1
...
...
@@ -40,6 +40,7 @@ typedef int64_t off64_t;
DARSHAN_FORWARD_DECL
(
open
,
int
,
(
const
char
*
path
,
int
flags
,
...));
DARSHAN_FORWARD_DECL
(
open64
,
int
,
(
const
char
*
path
,
int
flags
,
...));
DARSHAN_FORWARD_DECL
(
__open_2
,
int
,
(
const
char
*
path
,
int
oflag
));
DARSHAN_FORWARD_DECL
(
creat
,
int
,
(
const
char
*
path
,
mode_t
mode
));
DARSHAN_FORWARD_DECL
(
creat64
,
int
,
(
const
char
*
path
,
mode_t
mode
));
DARSHAN_FORWARD_DECL
(
mkstemp
,
int
,
(
char
*
template
));
...
...
@@ -403,6 +404,24 @@ int DARSHAN_DECL(open)(const char *path, int flags, ...)
return
(
ret
);
}
int
DARSHAN_DECL
(
__open_2
)(
const
char
*
path
,
int
oflag
)
{
int
ret
;
double
tm1
,
tm2
;
MAP_OR_FAIL
(
__open_2
);
tm1
=
darshan_core_wtime
();
ret
=
__real___open_2
(
path
,
oflag
);
tm2
=
darshan_core_wtime
();
POSIX_PRE_RECORD
();
POSIX_RECORD_OPEN
(
ret
,
path
,
0
,
tm1
,
tm2
);
POSIX_POST_RECORD
();
return
(
ret
);
}
int
DARSHAN_DECL
(
open64
)(
const
char
*
path
,
int
flags
,
...)
{
int
mode
=
0
;
...
...
darshan-runtime/share/ld-opts/darshan-posix-ld-opts
View file @
1a8977a1
--wrap=open
--wrap=open64
--wrap=__open_2
--wrap=creat
--wrap=creat64
--wrap=mkstemp
...
...
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