diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:48 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:48 +0000 | 
| commit | 93c1b73a09a52d4a265f683bf1954b08bb430049 (patch) | |
| tree | 5543464d74945196cc890e9d9099e5d0660df7eb /lib/fuzzer/FuzzerUtilPosix.cpp | |
| parent | 0d8e7490d6e8a13a8f0977d9b7771803b9f64ea0 (diff) | |
Notes
Diffstat (limited to 'lib/fuzzer/FuzzerUtilPosix.cpp')
| -rw-r--r-- | lib/fuzzer/FuzzerUtilPosix.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fuzzer/FuzzerUtilPosix.cpp b/lib/fuzzer/FuzzerUtilPosix.cpp index 934b7aa98ff18..bc64d3293702f 100644 --- a/lib/fuzzer/FuzzerUtilPosix.cpp +++ b/lib/fuzzer/FuzzerUtilPosix.cpp @@ -118,7 +118,8 @@ size_t GetPeakRSSMb() {    struct rusage usage;    if (getrusage(RUSAGE_SELF, &usage))      return 0; -  if (LIBFUZZER_LINUX) { +  if (LIBFUZZER_LINUX || LIBFUZZER_FREEBSD || LIBFUZZER_NETBSD || +      LIBFUZZER_OPENBSD) {      // ru_maxrss is in KiB      return usage.ru_maxrss >> 10;    } else if (LIBFUZZER_APPLE) {  | 
