aboutsummaryrefslogtreecommitdiff
path: root/include/qemu
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2018-08-16 23:14:40 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-23 18:46:25 +0200
commit0a22777c7120deafcfc5d680227293145f6f062c (patch)
tree96d35b446e41bebe76ca18061700920328341f78 /include/qemu
parentfe9959a275fc7b4744e49201a390627b3adda597 (diff)
downloadqemu-0a22777c7120deafcfc5d680227293145f6f062c.zip
qemu-0a22777c7120deafcfc5d680227293145f6f062c.tar.gz
qemu-0a22777c7120deafcfc5d680227293145f6f062c.tar.bz2
qsp: add sort_by option to qsp_report
Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r--include/qemu/qsp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/qemu/qsp.h b/include/qemu/qsp.h
index 9c2bb60..209480b 100644
--- a/include/qemu/qsp.h
+++ b/include/qemu/qsp.h
@@ -13,7 +13,13 @@
#include "qemu/fprintf-fn.h"
-void qsp_report(FILE *f, fprintf_function cpu_fprintf, size_t max);
+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,
+ enum QSPSortBy sort_by);
bool qsp_is_enabled(void);
void qsp_enable(void);