Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
57
Issues
57
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
9c83fab7
Commit
9c83fab7
authored
Nov 29, 2018
by
Shane Snyder
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into darshan_core_fprintf
parents
500db6a0
f119346b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
3 deletions
+29
-3
ChangeLog
ChangeLog
+2
-0
darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+20
-1
darshan-stdio.c
darshan-runtime/lib/darshan-stdio.c
+6
-2
darshan-posix-ld-opts
darshan-runtime/share/ld-opts/darshan-posix-ld-opts
+1
-0
No files found.
ChangeLog
View file @
9c83fab7
...
...
@@ -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 @
9c83fab7
...
...
@@ -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
;
...
...
@@ -752,7 +771,7 @@ off_t DARSHAN_DECL(lseek)(int fd, off_t offset, int whence)
return
(
ret
);
}
off
_t
DARSHAN_DECL
(
lseek64
)(
int
fd
,
off
_t
offset
,
int
whence
)
off
64_t
DARSHAN_DECL
(
lseek64
)(
int
fd
,
off64
_t
offset
,
int
whence
)
{
off_t
ret
;
struct
posix_file_record_ref
*
rec_ref
;
...
...
darshan-runtime/lib/darshan-stdio.c
View file @
9c83fab7
...
...
@@ -84,6 +84,10 @@
#include "darshan.h"
#include "darshan-dynamic.h"
#ifndef HAVE_OFF64_T
typedef
int64_t
off64_t
;
#endif
DARSHAN_FORWARD_DECL
(
fopen
,
FILE
*
,
(
const
char
*
path
,
const
char
*
mode
));
DARSHAN_FORWARD_DECL
(
fopen64
,
FILE
*
,
(
const
char
*
path
,
const
char
*
mode
));
DARSHAN_FORWARD_DECL
(
fdopen
,
FILE
*
,
(
int
fd
,
const
char
*
mode
));
...
...
@@ -110,7 +114,7 @@ DARSHAN_FORWARD_DECL(vfscanf, int, (FILE *stream, const char *format, va_list ap
DARSHAN_FORWARD_DECL
(
fgets
,
char
*
,
(
char
*
s
,
int
size
,
FILE
*
stream
));
DARSHAN_FORWARD_DECL
(
fseek
,
int
,
(
FILE
*
stream
,
long
offset
,
int
whence
));
DARSHAN_FORWARD_DECL
(
fseeko
,
int
,
(
FILE
*
stream
,
off_t
offset
,
int
whence
));
DARSHAN_FORWARD_DECL
(
fseeko64
,
int
,
(
FILE
*
stream
,
off_t
offset
,
int
whence
));
DARSHAN_FORWARD_DECL
(
fseeko64
,
int
,
(
FILE
*
stream
,
off
64
_t
offset
,
int
whence
));
DARSHAN_FORWARD_DECL
(
fsetpos
,
int
,
(
FILE
*
stream
,
const
fpos_t
*
pos
));
DARSHAN_FORWARD_DECL
(
fsetpos64
,
int
,
(
FILE
*
stream
,
const
fpos64_t
*
pos
));
DARSHAN_FORWARD_DECL
(
rewind
,
void
,
(
FILE
*
stream
));
...
...
@@ -855,7 +859,7 @@ int DARSHAN_DECL(fseeko)(FILE *stream, off_t offset, int whence)
return
(
ret
);
}
int
DARSHAN_DECL
(
fseeko64
)(
FILE
*
stream
,
off_t
offset
,
int
whence
)
int
DARSHAN_DECL
(
fseeko64
)(
FILE
*
stream
,
off
64
_t
offset
,
int
whence
)
{
int
ret
;
struct
stdio_file_record_ref
*
rec_ref
;
...
...
darshan-runtime/share/ld-opts/darshan-posix-ld-opts
View file @
9c83fab7
--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