2017-08-08 19:53:15 +02: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
|
|
|
|
|
|
|
|
#include "qemu/fprintf-fn.h"
|
|
|
|
|
2018-08-17 05:14:40 +02:00
|
|
|
enum QSPSortBy {
|
|
|
|
QSP_SORT_BY_TOTAL_WAIT_TIME,
|
|
|
|
QSP_SORT_BY_AVG_WAIT_TIME,
|
|
|
|
};
|
|
|
|
|
|
|
|
void qsp_report(FILE *f, fprintf_function cpu_fprintf, size_t max,
|
2018-08-17 04:41:01 +02:00
|
|
|
enum QSPSortBy sort_by, bool callsite_coalesce);
|
2017-08-08 19:53:15 +02:00
|
|
|
|
|
|
|
bool qsp_is_enabled(void);
|
|
|
|
void qsp_enable(void);
|
|
|
|
void qsp_disable(void);
|
2018-08-17 05:29:49 +02:00
|
|
|
void qsp_reset(void);
|
2017-08-08 19:53:15 +02:00
|
|
|
|
|
|
|
#endif /* QEMU_QSP_H */
|