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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cristian Simarro
darshan
Commits
90de4de4
Commit
90de4de4
authored
Feb 03, 2017
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable mmap wrapper for dynamic linking
see #223
parent
f8cfb07e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
ChangeLog
ChangeLog
+4
-1
darshan-runtime/Makefile.in
darshan-runtime/Makefile.in
+1
-1
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+6
-0
No files found.
ChangeLog
View file @
90de4de4
...
...
@@ -16,7 +16,10 @@ Darshan-3.1.3-pre1
applications (contributed by Cristian Simarro)
* skip instrumentation attempts for anonymous mmap() calls; this avoids a
potentential deadlock condition when used with hugepages on Cray systems.
Reported by Glenn Lockwood and Cristian Simarro.
Reported by Glenn Lockwood for static linking case.
* disable instrumentation for mmap when dynamically linking; this avoids a
potential deadlock condition on Cray systems using dynamically linked
executabes. Reported by Cristian Simarro for dynamic linking case.
* fix segmentation fault in statistics collection for applications that issue
operations with a large number of distince access sizes or strides on the
same file. Reported by Glenn Lockwood.
...
...
darshan-runtime/Makefile.in
View file @
90de4de4
...
...
@@ -87,7 +87,7 @@ lib/darshan-null.po: lib/darshan-null.c darshan.h darshan-dynamic.h darshan-comm
$(CC)
$(CFLAGS_SHARED)
-c
$<
-o
$@
lib/darshan-posix.o
:
lib/darshan-posix.c darshan.h darshan-common.h $(DARSHAN_LOG_FORMAT) $(srcdir)/../darshan-posix-log-format.h | lib
$(CC)
$(CFLAGS)
-c
$<
-o
$@
$(CC)
$(CFLAGS)
-
DDARSHAN_WRAP_MMAP
-
c
$<
-o
$@
lib/darshan-posix.po
:
lib/darshan-posix.c darshan.h darshan-dynamic.h darshan-common.h $(DARSHAN_LOG_FORMAT) $(srcdir)/../darshan-posix-log-format.h | lib
$(CC)
$(CFLAGS_SHARED)
-c
$<
-o
$@
...
...
darshan-runtime/lib/darshan-posix.c
View file @
90de4de4
...
...
@@ -62,8 +62,10 @@ DARSHAN_FORWARD_DECL(__lxstat, int, (int vers, const char* path, struct stat *bu
DARSHAN_FORWARD_DECL
(
__lxstat64
,
int
,
(
int
vers
,
const
char
*
path
,
struct
stat64
*
buf
));
DARSHAN_FORWARD_DECL
(
__fxstat
,
int
,
(
int
vers
,
int
fd
,
struct
stat
*
buf
));
DARSHAN_FORWARD_DECL
(
__fxstat64
,
int
,
(
int
vers
,
int
fd
,
struct
stat64
*
buf
));
#ifdef DARSHAN_WRAP_MMAP
DARSHAN_FORWARD_DECL
(
mmap
,
void
*
,
(
void
*
addr
,
size_t
length
,
int
prot
,
int
flags
,
int
fd
,
off_t
offset
));
DARSHAN_FORWARD_DECL
(
mmap64
,
void
*
,
(
void
*
addr
,
size_t
length
,
int
prot
,
int
flags
,
int
fd
,
off64_t
offset
));
#endif
/* DARSHAN_WRAP_MMAP */
DARSHAN_FORWARD_DECL
(
fsync
,
int
,
(
int
fd
));
DARSHAN_FORWARD_DECL
(
fdatasync
,
int
,
(
int
fd
));
DARSHAN_FORWARD_DECL
(
close
,
int
,
(
int
fd
));
...
...
@@ -917,6 +919,7 @@ int DARSHAN_DECL(__fxstat64)(int vers, int fd, struct stat64 *buf)
return
(
ret
);
}
#ifdef DARSHAN_WRAP_MMAP
void
*
DARSHAN_DECL
(
mmap
)(
void
*
addr
,
size_t
length
,
int
prot
,
int
flags
,
int
fd
,
off_t
offset
)
{
...
...
@@ -947,7 +950,9 @@ void* DARSHAN_DECL(mmap)(void *addr, size_t length, int prot, int flags,
return
(
ret
);
}
#endif
/* DARSHAN_WRAP_MMAP */
#ifdef DARSHAN_WRAP_MMAP
void
*
DARSHAN_DECL
(
mmap64
)(
void
*
addr
,
size_t
length
,
int
prot
,
int
flags
,
int
fd
,
off64_t
offset
)
{
...
...
@@ -978,6 +983,7 @@ void* DARSHAN_DECL(mmap64)(void *addr, size_t length, int prot, int flags,
return
(
ret
);
}
#endif
/* DARSHAN_WRAP_MMAP */
int
DARSHAN_DECL
(
fsync
)(
int
fd
)
{
...
...
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