mbox series

[RFC,0/3] Tweaks to linux-user -dfilter

Message ID 20180809175553.18479-1-alex.bennee@linaro.org
Headers show
Series Tweaks to linux-user -dfilter | expand

Message

Alex Bennée Aug. 9, 2018, 5:55 p.m. UTC
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