aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/log.h
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2016-03-15 14:30:20 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-22 22:20:18 +0100
commit3514552e04388d8e7686bcf89efd022e892acb5b (patch)
tree7c139ce1bb6c593ade3f5984000e10748ddb9037 /include/qemu/log.h
parent1a830635229e14c403600167823ea6b3b79d3097 (diff)
downloadqemu-3514552e04388d8e7686bcf89efd022e892acb5b.zip
qemu-3514552e04388d8e7686bcf89efd022e892acb5b.tar.gz
qemu-3514552e04388d8e7686bcf89efd022e892acb5b.tar.bz2
qemu-log: new option -dfilter to limit output
When debugging big programs or system emulation sometimes you want both the verbosity of cpu,exec et all but don't want to generate lots of logs for unneeded stuff. This patch adds a new option -dfilter which allows you to specify interesting address ranges in the form: -dfilter 0x8000..0x8fff,0xffffffc000080000+0x200,... Then logging code can use the new qemu_log_in_addr_range() function to decide if it will output logging information for the given range. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <1458052224-9316-7-git-send-email-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/log.h')
-rw-r--r--include/qemu/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h
index 523c886..1d0222d 100644
--- a/include/qemu/log.h
+++ b/include/qemu/log.h
@@ -122,6 +122,8 @@ static inline void qemu_set_log(int log_flags)
}
void qemu_set_log_filename(const char *filename);
+void qemu_set_dfilter_ranges(const char *ranges);
+bool qemu_log_in_addr_range(uint64_t addr);
int qemu_str_to_log_mask(const char *str);
/* Print a usage message listing all the valid logging categories