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
fe09b90e
Commit
fe09b90e
authored
Jan 24, 2017
by
Glenn K. Lockwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added whitelist so that datawarp mounts under /var are still tracked
parent
1561ab23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
19 deletions
+37
-19
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+37
-19
No files found.
darshan-runtime/lib/darshan-core.c
View file @
fe09b90e
...
...
@@ -49,20 +49,29 @@ static int nprocs = -1;
static
int
darshan_mem_alignment
=
1
;
static
long
darshan_mod_mem_quota
=
DARSHAN_MOD_MEM_MAX
;
/* paths prefixed with the following directories are not traced by darshan */
/* paths prefixed with the following directories are not trac
k
ed by darshan */
char
*
darshan_path_exclusions
[]
=
{
"/etc/"
,
"/dev/"
,
"/usr/"
,
"/bin/"
,
"/boot/"
,
"/lib/"
,
"/opt/"
,
"/sbin/"
,
"/sys/"
,
"/proc/"
,
"/var/"
,
NULL
"/etc/"
,
"/dev/"
,
"/usr/"
,
"/bin/"
,
"/boot/"
,
"/lib/"
,
"/opt/"
,
"/sbin/"
,
"/sys/"
,
"/proc/"
,
"/var/"
,
NULL
};
/* paths prefixed with the following directories are tracked by darshan even if
* they share a root with a path listed in darshan_path_exclusions
*/
char
*
darshan_path_inclusions
[]
=
{
"/dev/shm/"
,
"/var/tmp/"
,
"/var/opt/cray/dws/mounts/"
,
NULL
};
#ifdef DARSHAN_BGQ
...
...
@@ -2075,15 +2084,24 @@ double darshan_core_wtime()
int
darshan_core_excluded_path
(
const
char
*
path
)
{
char
*
exclude
;
char
*
exclude
,
*
include
;
int
tmp_index
=
0
;
while
((
exclude
=
darshan_path_exclusions
[
tmp_index
]))
{
if
(
!
(
strncmp
(
exclude
,
path
,
strlen
(
exclude
))))
return
(
1
);
tmp_index
++
;
int
tmp_jndex
;
/* scan blacklist for paths to exclude */
while
((
exclude
=
darshan_path_exclusions
[
tmp_index
++
]))
{
if
(
!
(
strncmp
(
exclude
,
path
,
strlen
(
exclude
))))
{
/* before excluding path, ensure it's not in whitelist */
tmp_jndex
=
0
;
while
((
include
=
darshan_path_inclusions
[
tmp_jndex
++
]))
{
if
(
!
(
strncmp
(
include
,
path
,
strlen
(
include
))))
return
(
0
);
/* whitelist hits are always tracked */
}
return
(
1
);
/* if not in whitelist, then blacklist it */
}
}
/* if not in blacklist, no problem */
return
(
0
);
}
...
...
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