1
1

Follow-on to pull-request #665...update manpage and comments.

These reflect support for -A on Windows.
Этот коммит содержится в:
Bruce A. Mah 2017-11-13 13:00:10 -08:00
родитель 5b27ea39a7
Коммит 222da46ba9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4984910A8CAAEE8A
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -127,7 +127,7 @@ The length, attributes, and in some cases contents of the received
file may not match those of the original file.
.TP
.BR -A ", " --affinity " \fIn/n,m\fR"
Set the CPU affinity, if possible (Linux and FreeBSD only).
Set the CPU affinity, if possible (Linux, FreeBSD, and Windows only).
On both the client and server you can set the local affinity by using
the \fIn\fR form of this argument (where \fIn\fR is a CPU number).
In addition, on the client side you can override the server's

Просмотреть файл

@ -3547,7 +3547,7 @@ iperf_json_finish(struct iperf_test *test)
}
/* CPU affinity stuff - Linux and FreeBSD only. */
/* CPU affinity stuff - Linux, FreeBSD, and Windows only. */
int
iperf_setaffinity(struct iperf_test *test, int affinity)
@ -3589,10 +3589,10 @@ iperf_setaffinity(struct iperf_test *test, int affinity)
return -1;
}
return 0;
#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */
#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */
i_errno = IEAFFINITY;
return -1;
#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */
#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */
}
int
@ -3628,10 +3628,10 @@ iperf_clearaffinity(struct iperf_test *test)
return -1;
}
return 0;
#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */
#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */
i_errno = IEAFFINITY;
return -1;
#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */
#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */
}
int