summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-01-12 17:15:05 +0000
committerKamil Rytarowski <n54@gmx.com>2018-01-12 17:15:05 +0000
commite81e94419901550cf7e6749f01643d5b2441b4b3 (patch)
treea2d20f5a3376a6755646c903f67206c1fcab1a04 /compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
parent93483e7f39f99bc20e3e9bbe5506617c6973c7c3 (diff)
downloadbcm5719-llvm-e81e94419901550cf7e6749f01643d5b2441b4b3.tar.gz
bcm5719-llvm-e81e94419901550cf7e6749f01643d5b2441b4b3.zip
lib Fuzzer FreeBSD support
Summary: Patch by David CARLIER Reviewers: vitalybuka, kcc, dim, emaste, davide, morehouse, george.karpenkov Reviewed By: morehouse Subscribers: george.karpenkov, kubamracek, srhines, mgorny, emaste, krytarowski Differential Revision: https://reviews.llvm.org/D41642 llvm-svn: 322380
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
index 934b7aa98ff..cef6cec1ccb 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
@@ -118,7 +118,7 @@ size_t GetPeakRSSMb() {
struct rusage usage;
if (getrusage(RUSAGE_SELF, &usage))
return 0;
- if (LIBFUZZER_LINUX) {
+ if (LIBFUZZER_LINUX || LIBFUZZER_FREEBSD || LIBFUZZER_NETBSD) {
// ru_maxrss is in KiB
return usage.ru_maxrss >> 10;
} else if (LIBFUZZER_APPLE) {
OpenPOWER on IntegriCloud