[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH v2 02/17] fuzz: Add fuzzer configure options
From: |
Bandan Das |
Subject: |
Re: [Qemu-devel] [RFC PATCH v2 02/17] fuzz: Add fuzzer configure options |
Date: |
Mon, 12 Aug 2019 18:39:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
"Oleinik, Alexander" <address@hidden> writes:
...
> if test "$supported_cpu" = "no"; then
> echo
> @@ -7306,6 +7310,17 @@ fi
> if test "$sheepdog" = "yes" ; then
> echo "CONFIG_SHEEPDOG=y" >> $config_host_mak
> fi
> +if test "$fuzzing" = "yes" ; then
> + QEMU_CFLAGS="$QEMU_CFLAGS -fsanitize=fuzzer,address
> -fprofile-instr-generate"
> + QEMU_CFLAGS="$QEMU_CFLAGS -fprofile-instr-generate -fcoverage-mapping"
What is the purpose of -fprofile-instr-generate ? Coverage info ? (Listed twice
above)
Bandan
> + QEMU_LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address"
> +
> + # Add tests/ to include path, since this is done in tests/Makefile.include,
> + # and required for QOS objects to build. This can be removed if/when the
> + # fuzzer is compiled using rules in tests/Makefile.include
> + QEMU_INCLUDES="-iquote \$(SRC_PATH)/tests $QEMU_INCLUDES"
> + echo "CONFIG_FUZZ=y" >> $config_host_mak
> +fi
>
> if test "$tcg_interpreter" = "yes"; then
> QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/tci $QEMU_INCLUDES"
- [Qemu-devel] [RFC PATCH v2 00/17] Add virtual device fuzzing support, Oleinik, Alexander, 2019/08/05
- [Qemu-devel] [RFC PATCH v2 01/17] fuzz: Move initialization from main to qemu_init, Oleinik, Alexander, 2019/08/05
- [Qemu-devel] [RFC PATCH v2 02/17] fuzz: Add fuzzer configure options, Oleinik, Alexander, 2019/08/05
- [Qemu-devel] [RFC PATCH v2 03/17] fuzz: Keep memory mapped for fork-based fuzzer, Oleinik, Alexander, 2019/08/05
- [Qemu-devel] [RFC PATCH v2 04/17] fuzz: Skip modules that were already initialized, Oleinik, Alexander, 2019/08/05
- [Qemu-devel] [RFC PATCH v2 05/17] fuzz: Add direct receive function for qtest server, Oleinik, Alexander, 2019/08/05
- [Qemu-devel] [RFC PATCH v2 06/17] fuzz: Add FUZZ_TARGET module type, Oleinik, Alexander, 2019/08/05