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
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
5a3d1bdc
Commit
5a3d1bdc
authored
Sep 20, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slightly improved lustre OST diffing
parent
c38ee987
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
26 deletions
+54
-26
darshan-util/darshan-lustre-logutils.c
darshan-util/darshan-lustre-logutils.c
+54
-26
No files found.
darshan-util/darshan-lustre-logutils.c
View file @
5a3d1bdc
...
...
@@ -212,34 +212,62 @@ static void darshan_log_print_lustre_record_diff(void *rec1, char *file_name1,
}
}
/* would it be more or less useful to sort the OST IDs before comparing? */
if
(
lustre_rec1
->
counters
[
LUSTRE_STRIPE_WIDTH
]
==
lustre_rec2
->
counters
[
LUSTRE_STRIPE_WIDTH
]
)
{
for
(
i
=
0
;
i
<
lustre_rec1
->
counters
[
LUSTRE_STRIPE_WIDTH
];
i
++
)
/* TODO: would it be more or less useful to sort the OST IDs before comparing? */
i
=
0
;
while
(
1
)
{
char
strbuf
[
25
];
snprintf
(
strbuf
,
25
,
"LUSTRE_OST_ID_%d"
,
i
);
if
(
!
lustre_rec2
||
(
i
>=
lustre_rec2
->
counters
[
LUSTRE_STRIPE_WIDTH
]))
{
printf
(
"- "
);
DARSHAN_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_LUSTRE_MOD
],
lustre_rec1
->
base_rec
.
rank
,
lustre_rec1
->
base_rec
.
id
,
strbuf
,
lustre_rec1
->
ost_ids
[
i
],
file_name1
,
""
,
""
);
}
else
if
(
!
lustre_rec1
||
(
i
>=
lustre_rec1
->
counters
[
LUSTRE_STRIPE_WIDTH
]))
{
printf
(
"+ "
);
DARSHAN_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_LUSTRE_MOD
],
lustre_rec2
->
base_rec
.
rank
,
lustre_rec2
->
base_rec
.
id
,
strbuf
,
lustre_rec2
->
ost_ids
[
i
],
file_name2
,
""
,
""
);
}
else
if
(
lustre_rec1
->
ost_ids
[
i
]
!=
lustre_rec2
->
ost_ids
[
i
])
{
if
(
lustre_rec1
->
ost_ids
[
i
]
!=
lustre_rec2
->
ost_ids
[
i
])
{
char
strbuf
[
25
];
snprintf
(
strbuf
,
25
,
"LUSTRE_OST_ID_%d"
,
i
);
printf
(
"- "
);
DARSHAN_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_LUSTRE_MOD
],
lustre_rec1
->
base_rec
.
rank
,
lustre_rec1
->
base_rec
.
id
,
strbuf
,
lustre_rec1
->
ost_ids
[
i
],
file_name1
,
""
,
""
);
printf
(
"+ "
);
DARSHAN_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_LUSTRE_MOD
],
lustre_rec2
->
base_rec
.
rank
,
lustre_rec2
->
base_rec
.
id
,
strbuf
,
lustre_rec2
->
ost_ids
[
i
],
file_name2
,
""
,
""
);
}
printf
(
"- "
);
DARSHAN_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_LUSTRE_MOD
],
lustre_rec1
->
base_rec
.
rank
,
lustre_rec1
->
base_rec
.
id
,
strbuf
,
lustre_rec1
->
ost_ids
[
i
],
file_name1
,
""
,
""
);
printf
(
"+ "
);
DARSHAN_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_LUSTRE_MOD
],
lustre_rec2
->
base_rec
.
rank
,
lustre_rec2
->
base_rec
.
id
,
strbuf
,
lustre_rec2
->
ost_ids
[
i
],
file_name2
,
""
,
""
);
}
i
++
;
if
((
!
lustre_rec1
||
(
i
>=
lustre_rec1
->
counters
[
LUSTRE_STRIPE_WIDTH
]))
&&
(
!
lustre_rec2
||
(
i
>=
lustre_rec2
->
counters
[
LUSTRE_STRIPE_WIDTH
])))
break
;
}
return
;
...
...
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