]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
qemu-log: new option -dfilter to limit output
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 15 Mar 2016 14:30:20 +0000 (14:30 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 21:20:18 +0000 (22:20 +0100)
commit3514552e04388d8e7686bcf89efd022e892acb5b
tree7c139ce1bb6c593ade3f5984000e10748ddb9037
parent1a830635229e14c403600167823ea6b3b79d3097
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>
include/qemu/log.h
qemu-options.hx
tests/Makefile
tests/test-logging.c [new file with mode: 0644]
util/log.c
vl.c