[Qemu-devel] [PATCH v2 0/4] trace: make systemtap easier to use for simple logging

Daniel P. Berrangé posted 4 patches 6 years, 9 months ago
Test docker-mingw@fedora passed
Test asan passed
Test checkpatch passed
Test docker-clang@ubuntu passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190118173103.4903-1-berrange@redhat.com
Maintainers: Stefan Hajnoczi <stefanha@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>, Alex Williamson <alex.williamson@redhat.com>
There is a newer version of this series
Makefile                             |   3 +
Makefile.target                      |  11 +-
docs/devel/tracing.txt               |  32 +++++
hw/display/qxl.c                     |   3 +-
hw/display/trace-events              |   2 +-
hw/gpio/trace-events                 |   2 +-
hw/vfio/pci.c                        |   2 +-
hw/vfio/trace-events                 |   2 +-
scripts/qemu-trace-stap              | 167 +++++++++++++++++++++++++++
scripts/tracetool/__init__.py        |   6 +
scripts/tracetool/format/log_stap.py | 127 ++++++++++++++++++++
11 files changed, 351 insertions(+), 6 deletions(-)
create mode 100755 scripts/qemu-trace-stap
create mode 100644 scripts/tracetool/format/log_stap.py
[Qemu-devel] [PATCH v2 0/4] trace: make systemtap easier to use for simple logging
Posted by Daniel P. Berrangé 6 years, 9 months ago
This is a followup to

 v1: https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04173.html

Changed in v2:

 - Fix safety of QXL logging
 - Handle format specifier macros is a more reliable manner
 - Fix trace-events files missing newline
 - Remove use of %m formats

Daniel P. Berrangé (4):
  display: ensure qxl log_buf is a nul terminated string
  trace: enforce that every trace-events file has a final newline
  trace: forbid use of %m in trace event format strings
  trace: add ability to do simple printf logging via systemtap

 Makefile                             |   3 +
 Makefile.target                      |  11 +-
 docs/devel/tracing.txt               |  32 +++++
 hw/display/qxl.c                     |   3 +-
 hw/display/trace-events              |   2 +-
 hw/gpio/trace-events                 |   2 +-
 hw/vfio/pci.c                        |   2 +-
 hw/vfio/trace-events                 |   2 +-
 scripts/qemu-trace-stap              | 167 +++++++++++++++++++++++++++
 scripts/tracetool/__init__.py        |   6 +
 scripts/tracetool/format/log_stap.py | 127 ++++++++++++++++++++
 11 files changed, 351 insertions(+), 6 deletions(-)
 create mode 100755 scripts/qemu-trace-stap
 create mode 100644 scripts/tracetool/format/log_stap.py

-- 
2.20.1