1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00
llvm-mirror/lib/Fuzzer
Rafael Espindola 129f5a2768 Use sched_getaffinity instead of std:🧵:hardware_concurrency.
The issue with std:🧵:hardware_concurrency is that it forwards
to libc and some implementations (like glibc) don't take thread
affinity into consideration.

With this change a llvm program that can execute in only 2 cores will
use 2 threads, even if the machine has 32 cores.

This makes benchmarking a lot easier, but should also help if someone
doesn't want to use all cores for compilation for example.

llvm-svn: 314809
2017-10-03 16:25:15 +00:00
..
afl [libFuzzer] update the comments in afl/afl_driver.cpp 2017-07-14 00:18:37 +00:00
standalone [libFuzzer] add StandaloneFuzzTargetMain.c and a test for it 2016-10-25 22:30:34 +00:00
build.sh [libFuzzer] Use CXX to set compiler to use 2017-01-21 01:21:56 +00:00
cxx.dict [libFuzzer] add AFL-style dictionary for C++, remove the old file with tokens 2015-12-22 01:50:51 +00:00
FuzzerClangCounters.cpp [libFuzzer] experimental support for Clang's coverage (fprofile-instr-generate), Linux-only 2017-08-11 23:03:22 +00:00
FuzzerCorpus.h [libFuzzer] when adding a reduced input print REDUCED instead of NEW 2017-07-18 18:47:36 +00:00
FuzzerCrossOver.cpp [libFuzzer] Clean up headers and file formatting of LibFuzzer files. 2016-12-13 17:46:11 +00:00
FuzzerDefs.h [libFuzzer] experimental support for Clang's coverage (fprofile-instr-generate), Linux-only 2017-08-11 23:03:22 +00:00
FuzzerDictionary.h [libFuzzer] make sure we don't execute libFuzzer's mem* and str* hooks while calling mem*/str* inside libFuzzer itself 2017-03-31 02:21:28 +00:00
FuzzerDriver.cpp [libFuzzer] reimplement experimental_len_control=1: bump the temporary max_len every time we failed to find new coverage during the last 1000 runs and 1 second. Also fix FileToVector to not load unfinished files 2017-07-22 00:10:29 +00:00
FuzzerExtFunctions.def [libFuzzer] call __sanitizer_print_memory_profile with two params 2017-03-15 23:27:53 +00:00
FuzzerExtFunctions.h [libFuzzer] Clean up headers and file formatting of LibFuzzer files. 2016-12-13 17:46:11 +00:00
FuzzerExtFunctionsDlsym.cpp [libFuzzer] Clean up headers and file formatting of LibFuzzer files. 2016-12-13 17:46:11 +00:00
FuzzerExtFunctionsDlsymWin.cpp Fix the includes in lib/Fuzzer on Windows that have ordering 2017-06-06 23:28:01 +00:00
FuzzerExtFunctionsWeak.cpp [LibFuzzer] Fix -Wpedantic warning reported by Eric Christopher. 2017-07-11 18:27:48 +00:00
FuzzerExtFunctionsWeakAlias.cpp [libFuzzer] Clean up headers and file formatting of LibFuzzer files. 2016-12-13 17:46:11 +00:00
FuzzerExtraCounters.cpp [libFuzzer] create experimental support for user-provided coverage signal 2017-03-23 22:43:12 +00:00
FuzzerFlags.def [libFuzzer] explicitly use -fsanitize-coverage=trace-pc-guard in test/dump_coverage.test; mark print_coverage/dump_coverage as To-be-deprecated 2017-08-14 19:55:23 +00:00
FuzzerInterface.h [libFuzzer] use table of recent compares for memcmp/strcmp (to unify the code between cmp and memcmp handling) 2017-01-17 23:09:05 +00:00
FuzzerInternal.h [libFuzzer] reimplement experimental_len_control=1: bump the temporary max_len every time we failed to find new coverage during the last 1000 runs and 1 second. Also fix FileToVector to not load unfinished files 2017-07-22 00:10:29 +00:00
FuzzerIO.cpp [libFuzzer] reimplement experimental_len_control=1: bump the temporary max_len every time we failed to find new coverage during the last 1000 runs and 1 second. Also fix FileToVector to not load unfinished files 2017-07-22 00:10:29 +00:00
FuzzerIO.h [libFuzzer] Properly use Handle instead of FD on Windows. 2017-02-08 00:03:18 +00:00
FuzzerIOPosix.cpp [libFuzzer] Properly use Handle instead of FD on Windows. 2017-02-08 00:03:18 +00:00
FuzzerIOWindows.cpp [LibFuzzer] Fix -Wcomment warning emitted by GCC. 2017-07-11 18:27:52 +00:00
FuzzerLoop.cpp [libFuzzer] try to use less RAM while processing the initial corpus 2017-08-14 20:34:35 +00:00
FuzzerMain.cpp [libFuzzer] refactoring: split the large header into many; NFC 2016-09-21 01:50:50 +00:00
FuzzerMerge.cpp [libFuzzer] Allow non-fuzzer args after -ignore_remaining_args=1 2017-07-14 23:33:04 +00:00
FuzzerMerge.h Fixup for r301054: Use an explicit constructor. 2017-04-21 23:28:01 +00:00
FuzzerMutate.cpp [libFuzzer] remove stale code; NFC 2017-07-14 00:16:23 +00:00
FuzzerMutate.h [libFuzzer] remove stale code; NFC 2017-07-14 00:16:23 +00:00
FuzzerOptions.h [libFuzzer] refactoring in preparation for -reduce_inputs; NFC intended 2017-07-12 22:20:04 +00:00
FuzzerRandom.h [libFuzzer] replace std::random_shuffle with std::shuffle as std::random_shuffle is being deprecated in C++17. Also simplify fuzzer::Random. NFC 2017-02-07 22:37:34 +00:00
FuzzerSHA1.cpp [LibFuzzer] Split up some functions among different headers. 2016-11-30 19:06:14 +00:00
FuzzerSHA1.h [libFuzzer] Clean up headers and file formatting of LibFuzzer files. 2016-12-13 17:46:11 +00:00
FuzzerShmem.h [libFuzzer] increase the default size for shmem 2017-02-01 00:07:47 +00:00
FuzzerShmemPosix.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
FuzzerShmemWindows.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
FuzzerTracePC.cpp [SanitizerCoverage] Add stack depth tracing instrumentation. 2017-08-18 18:43:30 +00:00
FuzzerTracePC.h [SanitizerCoverage] Add stack depth tracing instrumentation. 2017-08-18 18:43:30 +00:00
FuzzerUtil.cpp Use sched_getaffinity instead of std:🧵:hardware_concurrency. 2017-10-03 16:25:15 +00:00
FuzzerUtil.h [libFuzzer] remove stale code 2017-08-08 00:14:49 +00:00
FuzzerUtilDarwin.cpp FuzzerUtilDarwin.cpp: We need to pass modifiable strings to posix_spawn 2017-07-07 18:53:24 +00:00
FuzzerUtilLinux.cpp [libFuzzer] Clean up headers and file formatting of LibFuzzer files. 2016-12-13 17:46:11 +00:00
FuzzerUtilPosix.cpp [libFuzzer] Don't replace custom signal handlers. 2017-05-25 01:43:13 +00:00
FuzzerUtilWindows.cpp Fix the includes in lib/Fuzzer on Windows that have ordering 2017-06-06 23:28:01 +00:00
FuzzerValueBitMap.h [libFuzzer] delete stale code 2017-07-20 20:15:13 +00:00
README.txt Moving libFuzzer from LLVM to compiler-rt. 2017-08-21 23:25:12 +00:00

libFuzzer was moved to compiler-rt in  https://reviews.llvm.org/D36908.
All future changes should be directed there.

The copy of sources is temporarily left in this folder for the duration of a
move.