]>
Commit | Line | Data |
---|---|---|
fe9959a2 EC |
1 | /* |
2 | * qsp.c - QEMU Synchronization Profiler | |
3 | * | |
4 | * Copyright (C) 2018, Emilio G. Cota <cota@braap.org> | |
5 | * | |
6 | * License: GNU GPL, version 2 or later. | |
7 | * See the COPYING file in the top-level directory. | |
8 | * | |
9 | * Note: this header file can *only* be included from thread.h. | |
10 | */ | |
11 | #ifndef QEMU_QSP_H | |
12 | #define QEMU_QSP_H | |
13 | ||
0a22777c EC |
14 | enum QSPSortBy { |
15 | QSP_SORT_BY_TOTAL_WAIT_TIME, | |
16 | QSP_SORT_BY_AVG_WAIT_TIME, | |
17 | }; | |
18 | ||
ac7ff4cf MA |
19 | void qsp_report(size_t max, enum QSPSortBy sort_by, |
20 | bool callsite_coalesce); | |
fe9959a2 EC |
21 | |
22 | bool qsp_is_enabled(void); | |
23 | void qsp_enable(void); | |
24 | void qsp_disable(void); | |
996e8d9a | 25 | void qsp_reset(void); |
fe9959a2 EC |
26 | |
27 | #endif /* QEMU_QSP_H */ |