projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
options: add log_compression_cpus option
[fio.git]
/
libfio.c
diff --git
a/libfio.c
b/libfio.c
index 09591a11f169dd2bcccf1e89f7588a68a5e4c423..6c74852c4f0fb65cdc387f369588a2bd5ed6ca31 100644
(file)
--- a/
libfio.c
+++ b/
libfio.c
@@
-148,6
+148,7
@@
void reset_all_stats(struct thread_data *td)
memcpy(&td->start, &tv, sizeof(tv));
lat_target_reset(td);
memcpy(&td->start, &tv, sizeof(tv));
lat_target_reset(td);
+ clear_rusage_stat(td);
}
void reset_fio_state(void)
}
void reset_fio_state(void)
@@
-229,7
+230,7
@@
void fio_mark_td_terminate(struct thread_data *td)
td->terminate = 1;
}
td->terminate = 1;
}
-void fio_terminate_threads(int group_id)
+void fio_terminate_threads(
unsigned
int group_id)
{
struct thread_data *td;
pid_t pid = getpid();
{
struct thread_data *td;
pid_t pid = getpid();
@@
-238,7
+239,7
@@
void fio_terminate_threads(int group_id)
dprint(FD_PROCESS, "terminate group_id=%d\n", group_id);
for_each_td(td, i) {
dprint(FD_PROCESS, "terminate group_id=%d\n", group_id);
for_each_td(td, i) {
- if (group_id == TERMINATE_ALL || groupid == td->groupid) {
+ if (group_id == TERMINATE_ALL || group
_
id == td->groupid) {
dprint(FD_PROCESS, "setting terminate on %s/%d\n",
td->o.name, (int) td->pid);
dprint(FD_PROCESS, "setting terminate on %s/%d\n",
td->o.name, (int) td->pid);