The virtio-blk fuzz target sets up and fuzzes the available virtio-blk queues. The implementation is based on two files: - tests/qtest/fuzz/virtio_scsi_fuzz.c - tests/qtest/virtio_blk_test.c Signed-off-by: Dima Stepanov <dimastep@yandex-team.ru> Reviewed-by: Alexander Bulekov <alxndr@bu.edu> Message-Id: <e2405c459302ecaee2555405604975353bfa3837.1604920905.git.dimastep@yandex-team.ru> Signed-off-by: Thomas Huth <thuth@redhat.com>
35 lines
1.3 KiB
Meson
35 lines
1.3 KiB
Meson
specific_fuzz_ss.add(files('fuzz.c', 'fork_fuzz.c', 'qos_fuzz.c',
|
|
'qtest_wrappers.c'), qos)
|
|
|
|
# Targets
|
|
specific_fuzz_ss.add(when: 'CONFIG_I440FX', if_true: files('i440fx_fuzz.c'))
|
|
specific_fuzz_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio_net_fuzz.c'))
|
|
specific_fuzz_ss.add(when: 'CONFIG_VIRTIO_SCSI', if_true: files('virtio_scsi_fuzz.c'))
|
|
specific_fuzz_ss.add(when: 'CONFIG_VIRTIO_BLK', if_true: files('virtio_blk_fuzz.c'))
|
|
specific_fuzz_ss.add(files('generic_fuzz.c'))
|
|
|
|
fork_fuzz = declare_dependency(
|
|
link_args: config_host['FUZZ_EXE_LDFLAGS'].split() +
|
|
['-Wl,-wrap,qtest_inb',
|
|
'-Wl,-wrap,qtest_inw',
|
|
'-Wl,-wrap,qtest_inl',
|
|
'-Wl,-wrap,qtest_outb',
|
|
'-Wl,-wrap,qtest_outw',
|
|
'-Wl,-wrap,qtest_outl',
|
|
'-Wl,-wrap,qtest_readb',
|
|
'-Wl,-wrap,qtest_readw',
|
|
'-Wl,-wrap,qtest_readl',
|
|
'-Wl,-wrap,qtest_readq',
|
|
'-Wl,-wrap,qtest_writeb',
|
|
'-Wl,-wrap,qtest_writew',
|
|
'-Wl,-wrap,qtest_writel',
|
|
'-Wl,-wrap,qtest_writeq',
|
|
'-Wl,-wrap,qtest_memread',
|
|
'-Wl,-wrap,qtest_bufread',
|
|
'-Wl,-wrap,qtest_memwrite',
|
|
'-Wl,-wrap,qtest_bufwrite',
|
|
'-Wl,-wrap,qtest_memset']
|
|
)
|
|
|
|
specific_fuzz_ss.add(fork_fuzz)
|