Skip to contentSkip to conversation

Tracing patches

GIT PULL Stefan Hajnoczi 3 participants 3 messages Nov 11, 2015 – Nov 13, 2015

lore
Share & tools
lore
#0 lore raw

v2:
* Fixed missing log.py file when merging "trace: convert stderr backend to log" [Peter]

The following changes since commit a77067f6ac9b17beefea506ce5f514072fe3fcf4:

Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20151110' into staging (2015-11-10 17:49:39 +0000)

are available in the git repository at:

git://github.com/stefanha/qemu.git tags/tracing-pull-request

for you to fetch changes up to 8b7034c1e0bdce2c3dd38e8445d2040449afa15c:

log: add "-d trace:PATTERN" (2015-11-11 06:52:32 +0000)

----------------------------------------------------------------

----------------------------------------------------------------

Denis V. Lunev (2):
trace: no need to call trace_backend_init in different branches now
log: move qemu-log.c into util/ directory

Paolo Bonzini (11):
trace: count number of enabled events
trace: track enabled events in a separate array
trace: fix documentation
trace: split trace_init_events out of trace_init_backends
trace: split trace_init_file out of trace_init_backends
trace: add "-trace enable=..."
trace: add "-trace help"
log: do not unnecessarily include qom/cpu.h
trace: convert stderr backend to log
trace: switch default backend to "log"
log: add "-d trace:PATTERN"

Stefan Hajnoczi (2):
trace: fix make foo-timestamp rules
trace: add make dependencies on tracetool source

 Makefile.objs                        |   1 -
 bsd-user/main.c                      |   1 +
 configure                            |   6 +-
 cpu-exec.c                           |   1 +
 exec.c                               |   1 +
 hw/acpi/cpu_hotplug.c                |   1 +
 hw/timer/a9gtimer.c                  |   1 +
 include/exec/log.h                   |  60 +++++++++++
 include/qemu/log.h                   |  60 +----------
 linux-user/main.c                    |   1 +
 qemu-io.c                            |   2 +-
 qemu-log.c                           | 177 --------------------------------
 qemu-options.hx                      |  22 ++--
 qom/cpu.c                            |   1 +
 scripts/tracetool/backend/log.py     |  48 +++++++++
 scripts/tracetool/backend/stderr.py  |  47 ---------
 scripts/tracetool/format/events_c.py |   2 +-
 target-alpha/translate.c             |   1 +
 target-arm/translate.c               |   1 +
 target-cris/translate.c              |   1 +
 target-i386/seg_helper.c             |   1 +
 target-i386/smm_helper.c             |   1 +
 target-i386/translate.c              |   1 +
 target-lm32/helper.c                 |   1 +
 target-lm32/translate.c              |   1 +
 target-m68k/translate.c              |   1 +
 target-microblaze/helper.c           |   1 +
 target-microblaze/translate.c        |   1 +
 target-mips/helper.c                 |   1 +
 target-mips/translate.c              |   1 +
 target-moxie/translate.c             |   1 +
 target-openrisc/translate.c          |   1 +
 target-ppc/mmu-hash32.c              |   1 +
 target-ppc/mmu-hash64.c              |   1 +
 target-ppc/mmu_helper.c              |   1 +
 target-ppc/translate.c               |   1 +
 target-s390x/translate.c             |   1 +
 target-sh4/helper.c                  |   1 +
 target-sh4/translate.c               |   1 +
 target-sparc/int32_helper.c          |   1 +
 target-sparc/int64_helper.c          |   1 +
 target-sparc/translate.c             |   1 +
 target-tilegx/translate.c            |   1 +
 target-tricore/translate.c           |   1 +
 target-unicore32/translate.c         |   1 +
 target-xtensa/translate.c            |   1 +
 tcg/tcg.c                            |   1 +
 trace/Makefile.objs                  |  48 +++++----
 trace/control-internal.h             |  15 ++-
 trace/control.c                      |  98 +++++++++++++-----
 trace/control.h                      |  44 +++++++-
 trace/event-internal.h               |   2 -
 trace/simple.c                       |   6 +-
 trace/simple.h                       |   4 +-
 translate-all.c                      |   1 +
 util/Makefile.objs                   |   1 +
 util/log.c                           | 190 +++++++++++++++++++++++++++++++++++
 vl.c                                 |  38 ++++---
 58 files changed, 536 insertions(+), 373 deletions(-)
 create mode 100644 include/exec/log.h
 delete mode 100644 qemu-log.c
 create mode 100644 scripts/tracetool/backend/log.py
 delete mode 100644 scripts/tracetool/backend/stderr.py
 create mode 100644 util/log.c
Signature · 1 line
2.5.0
#1 lore raw
Quoted 7 lines · Stefan Hajnoczi

v2:
* Fixed missing log.py file when merging "trace: convert stderr backend to log" [Peter]

The following changes since commit a77067f6ac9b17beefea506ce5f514072fe3fcf4:

Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20151110' into staging (2015-11-10 17:49:39 +0000)

Quoted 8 lines

are available in the git repository at:

git://github.com/stefanha/qemu.git tags/tracing-pull-request

for you to fetch changes up to 8b7034c1e0bdce2c3dd38e8445d2040449afa15c:

log: add "-d trace:PATTERN" (2015-11-11 06:52:32 +0000)

Fails to build on all platforms :-(

/home/petmay01/linaro/qemu-for-merges/target-arm/translate-a64.c: In function ‘gen_intermediate_code_a64’:
/home/petmay01/linaro/qemu-for-merges/target-arm/translate-a64.c:11229:9:
error: implicit declaration of function ‘lookup_symbol’ [-Werror=implicit-function-declaration]

         qemu_log("IN: %s\n", lookup_symbol(pc_start));
         ^

/home/petmay01/linaro/qemu-for-merges/target-arm/translate-a64.c:11229:9:
error: nested extern declaration of ‘lookup_symbol’ [-Werror=nested-externs] /home/petmay01/linaro/qemu-for-merges/target-arm/translate-a64.c:11229:9:
error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Werror=format=] /home/petmay01/linaro/qemu-for-merges/target-arm/translate-a64.c:11230:9:
error: implicit declaration of function ‘log_target_disas’ [-Werror=implicit-function-declaration]

         log_target_disas(cs, pc_start, dc->pc - pc_start,
         ^

/home/petmay01/linaro/qemu-for-merges/target-arm/translate-a64.c:11230:9:
error: nested extern declaration of ‘log_target_disas’ [-Werror=nested-externs]
cc1: all warnings being treated as errors

thanks
-- PMM

#2 lore raw
Quoted 19 lines · Peter Maydell
Quoted 7 lines · Stefan Hajnoczi

v2:
* Fixed missing log.py file when merging "trace: convert stderr backend to log" [Peter]

The following changes since commit a77067f6ac9b17beefea506ce5f514072fe3fcf4:

Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20151110' into staging (2015-11-10 17:49:39 +0000)

Quoted 8 lines

are available in the git repository at:

git://github.com/stefanha/qemu.git tags/tracing-pull-request

for you to fetch changes up to 8b7034c1e0bdce2c3dd38e8445d2040449afa15c:

log: add "-d trace:PATTERN" (2015-11-11 06:52:32 +0000)

Fails to build on all platforms :-(

Quoted 7 lines

/home/petmay01/linaro/qemu-for-merges/target-arm/translate-a64.c: In function ‘gen_intermediate_code_a64’:
/home/petmay01/linaro/qemu-for-merges/target-arm/translate-a64.c:11229:9:
error: implicit declaration of function ‘lookup_symbol’ [-Werror=implicit-function-declaration]

         qemu_log("IN: %s\n", lookup_symbol(pc_start));
         ^

Sorry. I've updated my build-all.sh script to really build all QEMU targets (including aarch64).

Stefan