qsp: QEMU's Synchronization Profiler
[qemu.git] / include / qemu / qsp.h
blob9c2bb60ff0ba4f2517479aeecf9b0e1bc7566eda
1 /*
2 * qsp.c - QEMU Synchronization Profiler
4 * Copyright (C) 2018, Emilio G. Cota <cota@braap.org>
6 * License: GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
9 * Note: this header file can *only* be included from thread.h.
11 #ifndef QEMU_QSP_H
12 #define QEMU_QSP_H
14 #include "qemu/fprintf-fn.h"
16 void qsp_report(FILE *f, fprintf_function cpu_fprintf, size_t max);
18 bool qsp_is_enabled(void);
19 void qsp_enable(void);
20 void qsp_disable(void);
22 #endif /* QEMU_QSP_H */