xref: /openbmc/qemu/tests/qtest/fuzz/qos_fuzz.h (revision c09124dc)
1 /*
2  * QOS-assisted fuzzing helpers
3  *
4  * Copyright Red Hat Inc., 2019
5  *
6  * Authors:
7  *  Alexander Bulekov   <alxndr@bu.edu>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2 or later.
10  * See the COPYING file in the top-level directory.
11  */
12 
13 #ifndef QOS_FUZZ_H
14 #define QOS_FUZZ_H
15 
16 #include "tests/qtest/fuzz/fuzz.h"
17 #include "tests/qtest/libqos/qgraph.h"
18 
19 int qos_fuzz(const unsigned char *Data, size_t Size);
20 void qos_setup(void);
21 
22 extern void *fuzz_qos_obj;
23 extern QGuestAllocator *fuzz_qos_alloc;
24 
25 void fuzz_add_qos_target(
26         FuzzTarget *fuzz_opts,
27         const char *interface,
28         QOSGraphTestOptions *opts
29         );
30 
31 void qos_init_path(QTestState *);
32 
33 #endif
34