[Qemu-devel] [RFC PATCH 0/3] Tweaks to linux-user -dfilter

Alex Bennée posted 3 patches 7 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180809175553.18479-1-alex.bennee@linaro.org
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test docker-quick@centos7 passed
include/qemu/log.h   |  2 ++
linux-user/main.c    | 16 +++++++++++++++-
tests/test-logging.c | 14 ++++++++++++++
util/log.c           | 29 +++++++++++++++++++++++------
4 files changed, 54 insertions(+), 7 deletions(-)
[Qemu-devel] [RFC PATCH 0/3] Tweaks to linux-user -dfilter
Posted by Alex Bennée 7 years, 2 months ago
Hi,

While debugging a dynamically linked program I got frustrated having
to manually calculate the .text segment to avoid the logs getting
filled up with library stuff I wasn't really interested in. This
allows us to:

  - have multiple -dfilter lines for flexibility
  - specify -dfilter progtext as a shortcut

We could potentially extend this to handle -dfilter lib at a later
date.

Thoughts?

Alex Bennée (3):
  util/log: allow -dfilter to stack
  util/log: add qemu_dfilter_append_range()
  linux-user: add -dfilter progtext shortcut

 include/qemu/log.h   |  2 ++
 linux-user/main.c    | 16 +++++++++++++++-
 tests/test-logging.c | 14 ++++++++++++++
 util/log.c           | 29 +++++++++++++++++++++++------
 4 files changed, 54 insertions(+), 7 deletions(-)

-- 
2.17.1