2017-08-08 17:53:15 +00:00
|
|
|
/*
|
|
|
|
* qsp.c - QEMU Synchronization Profiler
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018, Emilio G. Cota <cota@braap.org>
|
|
|
|
*
|
|
|
|
* License: GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*
|
|
|
|
* Note: this header file can *only* be included from thread.h.
|
|
|
|
*/
|
|
|
|
#ifndef QEMU_QSP_H
|
|
|
|
#define QEMU_QSP_H
|
|
|
|
|
2018-08-17 03:14:40 +00:00
|
|
|
enum QSPSortBy {
|
|
|
|
QSP_SORT_BY_TOTAL_WAIT_TIME,
|
|
|
|
QSP_SORT_BY_AVG_WAIT_TIME,
|
|
|
|
};
|
|
|
|
|
2019-04-17 19:17:54 +00:00
|
|
|
void qsp_report(size_t max, enum QSPSortBy sort_by,
|
|
|
|
bool callsite_coalesce);
|
2017-08-08 17:53:15 +00:00
|
|
|
|
|
|
|
bool qsp_is_enabled(void);
|
|
|
|
void qsp_enable(void);
|
|
|
|
void qsp_disable(void);
|
2018-08-17 03:29:49 +00:00
|
|
|
void qsp_reset(void);
|
2017-08-08 17:53:15 +00:00
|
|
|
|
|
|
|
#endif /* QEMU_QSP_H */
|