xref: /openbmc/qemu/tests/qtest/fuzz/qos_fuzz.h (revision 88cd34ee)
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