Skip to content

Modular build of trace event files

Daniel P. Berrange qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest60 patches 51 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/60trace: move util/buffer.c trace points into correct fileio/trace-events util/trace-events+6 -60 replies
2/60trace: move util/qemu-coroutine*.c trace points into correct filetrace-events util/trace-events+13 -130 replies
3/60trace: move hw/mem/pc-dimm.c trace points into correct fileMakefile.objs hw/i386/trace-events hw/mem/trace-events+6 -40 replies
4/60trace: move hw/virtio/virtio-balloon.c trace points into correct filehw/virtio/trace-events trace-events+5 -42 replies
5/60trace: add trace event iterator APIstrace/control.c trace/control.h+35 -02 replies
6/60trace: convert code to use event iteratorsmonitor.c trace/control.c trace/qmp.c+73 -511 reply
7/60trace: remove some now unused functionstrace/control-internal.h trace/control.c trace/control.h+0 -920 replies
8/60trace: provide mechanism for registering trace eventsinclude/qemu/module.h qemu-img.c qemu-io.c +7 more+52 -62 replies
9/60trace: remove use of TRACE_VCPU_EVENT_COUNT in cpu.hinclude/qom/cpu.h qom/cpu.c trace/control.c +1 more+25 -31 reply
10/60trace: remove fixed global event state arrayshw/usb/hcd-ohci.c scripts/tracetool/backend/simple.py scripts/tracetool/format/events_c.py +7 more+93 -503 replies
11/60trace: remove use of event ID enums from APIstrace/control-internal.h trace/control-target.c trace/control.h +3 more+22 -355 replies
12/60trace: use -1 instead of TRACE_VCPU_EVENT_COUNT as magic valuescripts/tracetool/format/events_c.py trace/control-internal.h trace/control.c +1 more+4 -40 replies
13/60trace: remove generated-events.h from many includesscripts/tracetool/format/events_h.py scripts/tracetool/format/h.py trace/control.h +2 more+3 -100 replies
14/60trace: get rid of generated-events.h/generated-events.cMakefile include/trace-tcg.h include/trace.h +5 more+77 -1510 replies
15/60trace: introduce a formal group name for trace eventshw/usb/hcd-ohci.c scripts/tracetool.py scripts/tracetool/__init__.py +18 more+85 -670 replies
16/60trace: introduce ID range offsets per trace-events fileaudio/trace-events block/trace-events crypto/trace-events +43 more+131 -140 replies
17/60trace: introduce some Makefile rules for module code gen.gitignore Makefile Makefile.objs +6 more+112 -212 replies
18/60trace: switch io/ directory to modular trace.h fileMakefile.objs io/Makefile.objs io/channel-buffer.c +6 more+10 -80 replies
19/60trace: switch util/ directory to modular trace.h fileMakefile.objs util/Makefile.objs util/buffer.c +5 more+9 -70 replies
20/60trace: switch crypto/ directory to modular trace.h fileMakefile.objs crypto/Makefile.objs crypto/secret.c +4 more+8 -60 replies
21/60trace: switch migration/ directory to modular trace.h fileMakefile.objs migration/Makefile.objs migration/exec.c +10 more+14 -120 replies
22/60trace: switch block/ directory to modular trace.h fileMakefile.objs block.c block/Makefile.objs +17 more+21 -190 replies
23/60trace: switch hw/block/ directory to modular trace.h fileMakefile.objs hw/block/Makefile.objs hw/block/dataplane/virtio-blk.c +2 more+6 -40 replies
24/60trace: switch hw/char/ directory to modular trace.h fileMakefile.objs hw/char/Makefile.objs hw/char/escc.c +6 more+10 -80 replies
25/60trace: switch hw/intc/ directory to modular trace.h fileMakefile.objs hw/intc/Makefile.objs hw/intc/apic.c +14 more+18 -160 replies
26/60trace: switch hw/net/ directory to modular trace.h fileMakefile.objs hw/net/Makefile.objs hw/net/e1000e.c +9 more+14 -110 replies
27/60trace: switch hw/virtio/ directory to modular trace.h fileMakefile.objs hw/virtio/Makefile.objs hw/virtio/virtio-balloon.c +2 more+6 -40 replies
28/60trace: switch hw/audio/ directory to modular trace.h fileMakefile.objs hw/audio/Makefile.objs hw/audio/cs4231.c +1 more+6 -30 replies
29/60trace: switch hw/misc/ directory to modular trace.h fileMakefile.objs hw/misc/Makefile.objs hw/misc/aspeed_scu.c +4 more+9 -60 replies
30/60trace: switch hw/usb/ directory to modular trace.h fileMakefile.objs hw/usb/Makefile.objs hw/usb/bus.c +11 more+18 -150 replies
31/60trace: switch hw/scsi/ directory to modular trace.h fileMakefile.objs hw/scsi/Makefile.objs hw/scsi/esp-pci.c +7 more+12 -90 replies
32/60trace: switch hw/nvram/ directory to modular trace.h fileMakefile.objs hw/nvram/Makefile.objs hw/nvram/ds1225y.c +1 more+5 -30 replies
33/60trace: switch hw/display/ directory to modular trace.h fileMakefile.objs hw/display/Makefile.objs hw/display/g364fb.c +10 more+15 -120 replies
34/60trace: switch hw/input/ directory to modular trace.h fileMakefile.objs hw/input/Makefile.objs hw/input/hid.c +3 more+8 -50 replies
35/60trace: switch hw/timer/ directory to modular trace.h fileMakefile.objs hw/timer/Makefile.objs hw/timer/aspeed_timer.c +4 more+8 -60 replies
36/60trace: switch hw/dma/ directory to modular trace.h fileMakefile.objs hw/dma/Makefile.objs hw/dma/i8257.c +3 more+7 -50 replies
37/60trace: switch hw/sparc/ directory to modular trace.h fileMakefile.objs hw/sparc/Makefile.objs hw/sparc/leon3.c +1 more+5 -30 replies
38/60trace: switch hw/sd/ directory to modular trace.h fileMakefile.objs hw/sd/Makefile.objs hw/sd/milkymist-memcard.c+4 -20 replies
39/60trace: switch hw/isa/ directory to modular trace.h fileMakefile.objs hw/isa/Makefile.objs hw/isa/pc87312.c+4 -20 replies
40/60trace: switch hw/mem/ directory to modular trace.h fileMakefile.objs hw/mem/Makefile.objs hw/mem/pc-dimm.c+5 -20 replies
41/60trace: switch hw/i386/ directory to modular trace.h fileMakefile.objs hw/i386/Makefile.objs hw/i386/x86-iommu.c +2 more+6 -20 replies
42/60trace: switch hw/9pfs/ directory to modular trace.h fileMakefile.objs hw/9pfs/9p.c hw/9pfs/Makefile.objs+4 -20 replies
43/60trace: switch hw/ppc/ directory to modular trace.h fileMakefile.objs hw/ppc/Makefile.objs hw/ppc/ppc.c +6 more+11 -80 replies
44/60trace: switch hw/pci/ directory to modular trace.h fileMakefile.objs hw/pci/Makefile.objs hw/pci/pci.c +2 more+7 -50 replies
45/60trace: switch hw/s390x/ directory to modular trace.h fileMakefile.objs hw/s390x/Makefile.objs hw/s390x/css.c +1 more+6 -30 replies
46/60trace: switch hw/vfio/ directory to modular trace.h fileMakefile.objs hw/vfio/Makefile.objs hw/vfio/common.c +4 more+8 -60 replies
47/60trace: switch hw/acpi/ directory to modular trace.h fileMakefile.objs hw/acpi/Makefile.objs hw/acpi/cpu.c +1 more+5 -30 replies
48/60trace: switch hw/arm/ directory to modular trace.h fileMakefile.objs hw/arm/Makefile.objs hw/arm/virt-acpi-build.c+4 -20 replies
49/60trace: switch hw/alpha/ directory to modular trace.h fileMakefile.objs hw/alpha/Makefile.objs hw/alpha/pci.c+4 -20 replies
50/60trace: switch ui/ directory to modular trace.h fileMakefile.objs ui/Makefile.objs ui/console.c +6 more+11 -80 replies
51/60trace: switch audio/ directory to modular trace.h fileMakefile.objs audio/Makefile.objs audio/alsaaudio.c +1 more+5 -30 replies
52/60trace: switch net/ directory to modular trace.h fileMakefile.objs net/Makefile.objs net/filter-mirror.c +1 more+5 -30 replies
53/60trace: switch target-i386/ directory to modular trace.h fileMakefile.objs target-i386/Makefile.objs target-i386/kvm.c+4 -20 replies
54/60trace: switch target-sparc/ directory to modular trace.h fileMakefile.objs target-sparc/Makefile.objs target-sparc/int32_helper.c +3 more+7 -50 replies
55/60trace: switch target-s390x/ directory to modular trace.h fileMakefile.objs target-s390x/Makefile.objs target-s390x/cpu.c +3 more+7 -50 replies
56/60trace: switch target-ppc/ directory to modular trace.h fileMakefile.objs target-ppc/Makefile.objs target-ppc/kvm.c+4 -20 replies
57/60trace: switch qom/ directory to modular trace.h fileMakefile.objs qom/Makefile.objs qom/object.c+4 -20 replies
58/60trace: switch linux-user/ directory to modular trace.h fileMakefile.objs linux-user/Makefile.objs linux-user/signal.c+4 -20 replies
59/60trace: remove the global include/trace.h file.gitignore Makefile Makefile.objs +6 more+57 -1160 replies
60/60trace: update docs to reflect new code generation approachdocs/tracing.txt+52 -97 replies

Reviews trailers per patch

1 of 60 patches has a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/60
2/60
3/60
4/60
5/60
6/60R-b
7/60
8/60
9/60
10/60
11/60
12/60
13/60
14/60
15/60
16/60
17/60
18/60
19/60
20/60
21/60
22/60
23/60
24/60
25/60
26/60
27/60
28/60
29/60
30/60
31/60
32/60
33/60
34/60
35/60
36/60
37/60
38/60
39/60
40/60
41/60
42/60
43/60
44/60
45/60
46/60
47/60
48/60
49/60
50/60
51/60
52/60
53/60
54/60
55/60
56/60
57/60
58/60
59/60
60/60

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH for-2.8 v1 00/60] Modular build of trace event files

I previously split the global trace-events file up into one file per-subdirectory to avoid merge conflict hell.

This series builds on that to now actually generate the individual trace files per-subdirectory too. The key benefit of doing this is that a change in a trace-events file will no longer cause a rebuild of the entire world. Instead only that one affected sub-directory will have files rebuilt.

The key problem faced when creating this patch series was the fact that the trace code had a global assumption that there was a single enum declaring all events in a sequence with no gaps. Most of the hard work in this series involves getting rid of that assumption throughout the code. Instead we now have a notion of trace event groups, each with their own distinct enum of events. As such the individual event IDs are no longer globally unique. Most of the code could be adapted to work with IDs that were unique only within a group.

The first sticky part was the simpletrace binary event format which includes the event ID. To deal with this I invented a notion of an ID offset per trace-events file. So simpletrace format will now
use "(id-offset << 16) | event-id" in order to get a globally
unique ID value for its trace files. This means each trace-events file can only have 65536 distinct events declared, but that ought to be enough for a while :-)

The second sticky part was the per-VCPU events, due to the use of a "trace_dstate" bitmap in the CPUState struct. The bitmap inherantly assumes a global ID sequence, and would not work well with the per-file id-offset concept, since it would require a huge mostly-sparse bitmap. Rather than try to solve this problem I took the easy way out and simply specified that all per-VCPU events need to be declared in the top level trace-events file. Since we have almost no per-vCPU events today, this works out just fine.

I've build-tested with all targets enabled in both VPATH and non-VPATH setups, on Fedora 24, with all 5 trace event backends enabled at once. I've tested that simpletrace.py can still extract events from generated traces. I've not functionally tested dtrace/ftrace/ust at this time.

Daniel P. Berrange (60):
trace: move util/buffer.c trace points into correct file
trace: move util/qemu-coroutine*.c trace points into correct file
trace: move hw/mem/pc-dimm.c trace points into correct file
trace: move hw/virtio/virtio-balloon.c trace points into correct file
trace: add trace event iterator APIs
trace: convert code to use event iterators
trace: remove some now unused functions
trace: provide mechanism for registering trace events
trace: remove use of TRACE_VCPU_EVENT_COUNT in cpu.h
trace: remove fixed global event state arrays
trace: remove use of event ID enums from APIs
trace: use -1 instead of TRACE_VCPU_EVENT_COUNT as magic value
trace: remove generated-events.h from many includes
trace: get rid of generated-events.h/generated-events.c
trace: introduce a formal group name for trace events
trace: introduce ID range offsets per trace-events file
trace: introduce some Makefile rules for module code gen
trace: switch io/ directory to modular trace.h file
trace: switch util/ directory to modular trace.h file
trace: switch crypto/ directory to modular trace.h file
trace: switch migration/ directory to modular trace.h file
trace: switch block/ directory to modular trace.h file
trace: switch hw/block/ directory to modular trace.h file
trace: switch hw/char/ directory to modular trace.h file
trace: switch hw/intc/ directory to modular trace.h file
trace: switch hw/net/ directory to modular trace.h file
trace: switch hw/virtio/ directory to modular trace.h file
trace: switch hw/audio/ directory to modular trace.h file
trace: switch hw/misc/ directory to modular trace.h file
trace: switch hw/usb/ directory to modular trace.h file
trace: switch hw/scsi/ directory to modular trace.h file
trace: switch hw/nvram/ directory to modular trace.h file
trace: switch hw/display/ directory to modular trace.h file
trace: switch hw/input/ directory to modular trace.h file
trace: switch hw/timer/ directory to modular trace.h file
trace: switch hw/dma/ directory to modular trace.h file
trace: switch hw/sparc/ directory to modular trace.h file
trace: switch hw/sd/ directory to modular trace.h file
trace: switch hw/isa/ directory to modular trace.h file
trace: switch hw/mem/ directory to modular trace.h file
trace: switch hw/i386/ directory to modular trace.h file
trace: switch hw/9pfs/ directory to modular trace.h file
trace: switch hw/ppc/ directory to modular trace.h file
trace: switch hw/pci/ directory to modular trace.h file
trace: switch hw/s390x/ directory to modular trace.h file
trace: switch hw/vfio/ directory to modular trace.h file
trace: switch hw/acpi/ directory to modular trace.h file
trace: switch hw/arm/ directory to modular trace.h file
trace: switch hw/alpha/ directory to modular trace.h file
trace: switch ui/ directory to modular trace.h file
trace: switch audio/ directory to modular trace.h file
trace: switch net/ directory to modular trace.h file
trace: switch target-i386/ directory to modular trace.h file
trace: switch target-sparc/ directory to modular trace.h file
trace: switch target-s390x/ directory to modular trace.h file
trace: switch target-ppc/ directory to modular trace.h file
trace: switch qom/ directory to modular trace.h file
trace: switch linux-user/ directory to modular trace.h file
trace: remove the global include/trace.h file
trace: update docs to reflect new code generation approach

 .gitignore                                       |  15 +-
 Makefile                                         | 116 +++++++++++---
 Makefile.objs                                    |  89 ++++++-----
 Makefile.target                                  |   7 +-
 audio/Makefile.objs                              |   2 +
 audio/alsaaudio.c                                |   2 +-
 audio/ossaudio.c                                 |   2 +-
 audio/trace-events                               |   2 +
 block.c                                          |   2 +-
 block/Makefile.objs                              |   2 +
 block/backup.c                                   |   2 +-
 block/block-backend.c                            |   2 +-
 block/commit.c                                   |   2 +-
 block/dirty-bitmap.c                             |   2 +-
 block/io.c                                       |   2 +-
 block/mirror.c                                   |   2 +-
 block/nfs.c                                      |   2 +-
 block/qcow2-cache.c                              |   2 +-
 block/qcow2-cluster.c                            |   2 +-
 block/qcow2.c                                    |   2 +-
 block/qed-l2-cache.c                             |   2 +-
 block/qed-table.c                                |   2 +-
 block/qed.c                                      |   2 +-
 block/raw-posix.c                                |   2 +-
 block/raw-win32.c                                |   2 +-
 block/stream.c                                   |   2 +-
 block/trace-events                               |   2 +
 blockdev.c                                       |   2 +-
 crypto/Makefile.objs                             |   2 +
 crypto/secret.c                                  |   2 +-
 crypto/tlscreds.c                                |   2 +-
 crypto/tlscredsanon.c                            |   2 +-
 crypto/tlscredsx509.c                            |   2 +-
 crypto/tlssession.c                              |   2 +-
 crypto/trace-events                              |   2 +
 docs/tracing.txt                                 |  61 ++++++--
 hw/9pfs/9p.c                                     |   2 +-
 hw/9pfs/Makefile.objs                            |   2 +
 hw/9pfs/trace-events                             |   2 +
 hw/acpi/Makefile.objs                            |   2 +
 hw/acpi/cpu.c                                    |   2 +-
 hw/acpi/memory_hotplug.c                         |   2 +-
 hw/acpi/trace-events                             |   2 +
 hw/alpha/Makefile.objs                           |   2 +
 hw/alpha/pci.c                                   |   2 +-
 hw/alpha/trace-events                            |   2 +
 hw/arm/Makefile.objs                             |   2 +
 hw/arm/trace-events                              |   2 +
 hw/arm/virt-acpi-build.c                         |   2 +-
 hw/audio/Makefile.objs                           |   3 +
 hw/audio/cs4231.c                                |   2 +-
 hw/audio/milkymist-ac97.c                        |   2 +-
 hw/audio/trace-events                            |   2 +
 hw/block/Makefile.objs                           |   2 +
 hw/block/dataplane/virtio-blk.c                  |   2 +-
 hw/block/hd-geometry.c                           |   2 +-
 hw/block/trace-events                            |   2 +
 hw/block/virtio-blk.c                            |   2 +-
 hw/char/Makefile.objs                            |   2 +
 hw/char/escc.c                                   |   2 +-
 hw/char/grlib_apbuart.c                          |   2 +-
 hw/char/lm32_juart.c                             |   2 +-
 hw/char/lm32_uart.c                              |   2 +-
 hw/char/milkymist-uart.c                         |   2 +-
 hw/char/trace-events                             |   2 +
 hw/char/virtio-console.c                         |   2 +-
 hw/char/virtio-serial-bus.c                      |   2 +-
 hw/display/Makefile.objs                         |   3 +
 hw/display/g364fb.c                              |   2 +-
 hw/display/jazz_led.c                            |   2 +-
 hw/display/milkymist-tmu2.c                      |   2 +-
 hw/display/milkymist-vgafb.c                     |   2 +-
 hw/display/qxl-render.c                          |   2 +-
 hw/display/qxl.c                                 |   2 +-
 hw/display/trace-events                          |   2 +
 hw/display/vga.c                                 |   2 +-
 hw/display/virtio-gpu-3d.c                       |   2 +-
 hw/display/virtio-gpu.c                          |   2 +-
 hw/display/vmware_vga.c                          |   2 +-
 hw/display/xenfb.c                               |   2 +-
 hw/dma/Makefile.objs                             |   2 +
 hw/dma/i8257.c                                   |   2 +-
 hw/dma/rc4030.c                                  |   2 +-
 hw/dma/sparc32_dma.c                             |   2 +-
 hw/dma/sun4m_iommu.c                             |   2 +-
 hw/dma/trace-events                              |   2 +
 hw/i386/Makefile.objs                            |   2 +
 hw/i386/trace-events                             |   6 +-
 hw/i386/x86-iommu.c                              |   2 +-
 hw/i386/xen/xen_platform.c                       |   1 +
 hw/i386/xen/xen_pvdevice.c                       |   1 +
 hw/input/Makefile.objs                           |   3 +
 hw/input/hid.c                                   |   2 +-
 hw/input/milkymist-softusb.c                     |   2 +-
 hw/input/ps2.c                                   |   2 +-
 hw/input/trace-events                            |   2 +
 hw/input/virtio-input.c                          |   2 +-
 hw/intc/Makefile.objs                            |   2 +
 hw/intc/apic.c                                   |   2 +-
 hw/intc/apic_common.c                            |   2 +-
 hw/intc/arm_gic.c                                |   2 +-
 hw/intc/arm_gicv3_cpuif.c                        |   2 +-
 hw/intc/arm_gicv3_dist.c                         |   2 +-
 hw/intc/arm_gicv3_redist.c                       |   2 +-
 hw/intc/aspeed_vic.c                             |   2 +-
 hw/intc/grlib_irqmp.c                            |   2 +-
 hw/intc/lm32_pic.c                               |   2 +-
 hw/intc/s390_flic.c                              |   2 +-
 hw/intc/s390_flic_kvm.c                          |   2 +-
 hw/intc/slavio_intctl.c                          |   2 +-
 hw/intc/trace-events                             |   2 +
 hw/intc/xics.c                                   |   2 +-
 hw/intc/xics_kvm.c                               |   2 +-
 hw/intc/xics_spapr.c                             |   2 +-
 hw/isa/Makefile.objs                             |   2 +
 hw/isa/pc87312.c                                 |   2 +-
 hw/isa/trace-events                              |   2 +
 hw/mem/Makefile.objs                             |   3 +
 hw/mem/pc-dimm.c                                 |   2 +-
 hw/mem/trace-events                              |   7 +
 hw/misc/Makefile.objs                            |   3 +
 hw/misc/aspeed_scu.c                             |   2 +-
 hw/misc/eccmemctl.c                              |   2 +-
 hw/misc/milkymist-hpdmc.c                        |   2 +-
 hw/misc/milkymist-pfpu.c                         |   2 +-
 hw/misc/slavio_misc.c                            |   2 +-
 hw/misc/trace-events                             |   2 +
 hw/net/Makefile.objs                             |   3 +
 hw/net/e1000e.c                                  |   2 +-
 hw/net/e1000e_core.c                             |   2 +-
 hw/net/e1000x_common.c                           |   2 +-
 hw/net/lance.c                                   |   2 +-
 hw/net/milkymist-minimac2.c                      |   2 +-
 hw/net/mipsnet.c                                 |   2 +-
 hw/net/net_rx_pkt.c                              |   2 +-
 hw/net/opencores_eth.c                           |   2 +-
 hw/net/pcnet-pci.c                               |   2 +-
 hw/net/pcnet.c                                   |   2 +-
 hw/net/trace-events                              |   2 +
 hw/nvram/Makefile.objs                           |   2 +
 hw/nvram/ds1225y.c                               |   2 +-
 hw/nvram/fw_cfg.c                                |   2 +-
 hw/nvram/trace-events                            |   2 +
 hw/pci/Makefile.objs                             |   2 +
 hw/pci/pci.c                                     |   2 +-
 hw/pci/pci_host.c                                |   2 +-
 hw/pci/trace-events                              |   2 +
 hw/ppc/Makefile.objs                             |   3 +
 hw/ppc/ppc.c                                     |   2 +-
 hw/ppc/prep.c                                    |   2 +-
 hw/ppc/spapr.c                                   |   2 +-
 hw/ppc/spapr_hcall.c                             |   2 +-
 hw/ppc/spapr_iommu.c                             |   2 +-
 hw/ppc/spapr_pci.c                               |   2 +-
 hw/ppc/spapr_rtas_ddw.c                          |   2 +-
 hw/ppc/trace-events                              |   2 +
 hw/s390x/Makefile.objs                           |   3 +
 hw/s390x/css.c                                   |   2 +-
 hw/s390x/trace-events                            |   2 +
 hw/s390x/virtio-ccw.c                            |   2 +-
 hw/scsi/Makefile.objs                            |   3 +
 hw/scsi/esp-pci.c                                |   2 +-
 hw/scsi/esp.c                                    |   2 +-
 hw/scsi/megasas.c                                |   2 +-
 hw/scsi/mptconfig.c                              |   2 +-
 hw/scsi/mptendian.c                              |   2 +-
 hw/scsi/mptsas.c                                 |   2 +-
 hw/scsi/scsi-bus.c                               |   2 +-
 hw/scsi/trace-events                             |   2 +
 hw/scsi/vmw_pvscsi.c                             |   2 +-
 hw/sd/Makefile.objs                              |   2 +
 hw/sd/milkymist-memcard.c                        |   2 +-
 hw/sd/trace-events                               |   2 +
 hw/sparc/Makefile.objs                           |   2 +
 hw/sparc/leon3.c                                 |   2 +-
 hw/sparc/sun4m.c                                 |   2 +-
 hw/sparc/trace-events                            |   2 +
 hw/timer/Makefile.objs                           |   2 +
 hw/timer/aspeed_timer.c                          |   2 +-
 hw/timer/grlib_gptimer.c                         |   2 +-
 hw/timer/lm32_timer.c                            |   2 +-
 hw/timer/milkymist-sysctl.c                      |   2 +-
 hw/timer/slavio_timer.c                          |   2 +-
 hw/timer/trace-events                            |   2 +
 hw/usb/Makefile.objs                             |   3 +
 hw/usb/bus.c                                     |   2 +-
 hw/usb/combined-packet.c                         |   2 +-
 hw/usb/core.c                                    |   2 +-
 hw/usb/desc.c                                    |   2 +-
 hw/usb/dev-hub.c                                 |   2 +-
 hw/usb/dev-mtp.c                                 |   2 +-
 hw/usb/dev-uas.c                                 |   2 +-
 hw/usb/hcd-ehci.c                                |   2 +-
 hw/usb/hcd-ohci.c                                |   8 +-
 hw/usb/hcd-uhci.c                                |   2 +-
 hw/usb/hcd-xhci.c                                |   2 +-
 hw/usb/host-libusb.c                             |   2 +-
 hw/usb/trace-events                              |   2 +
 hw/vfio/Makefile.objs                            |   2 +
 hw/vfio/common.c                                 |   2 +-
 hw/vfio/pci-quirks.c                             |   2 +-
 hw/vfio/pci.c                                    |   2 +-
 hw/vfio/platform.c                               |   2 +-
 hw/vfio/spapr.c                                  |   2 +-
 hw/vfio/trace-events                             |   2 +
 hw/virtio/Makefile.objs                          |   2 +
 hw/virtio/trace-events                           |   7 +
 hw/virtio/virtio-balloon.c                       |   2 +-
 hw/virtio/virtio-rng.c                           |   2 +-
 hw/virtio/virtio.c                               |   2 +-
 include/qemu/module.h                            |   2 +
 include/qom/cpu.h                                |  10 +-
 include/trace-tcg.h                              |   1 -
 include/trace.h                                  |   7 -
 io/Makefile.objs                                 |   2 +
 io/channel-buffer.c                              |   2 +-
 io/channel-command.c                             |   2 +-
 io/channel-file.c                                |   2 +-
 io/channel-socket.c                              |   2 +-
 io/channel-tls.c                                 |   2 +-
 io/channel-websock.c                             |   2 +-
 io/task.c                                        |   2 +-
 io/trace-events                                  |   6 +-
 linux-user/Makefile.objs                         |   2 +
 linux-user/signal.c                              |   2 +-
 linux-user/trace-events                          |   2 +
 migration/Makefile.objs                          |   2 +
 migration/exec.c                                 |   2 +-
 migration/fd.c                                   |   2 +-
 migration/migration.c                            |   2 +-
 migration/postcopy-ram.c                         |   2 +-
 migration/qemu-file.c                            |   2 +-
 migration/ram.c                                  |   2 +-
 migration/rdma.c                                 |   2 +-
 migration/savevm.c                               |   2 +-
 migration/socket.c                               |   2 +-
 migration/tls.c                                  |   2 +-
 migration/trace-events                           |   2 +
 migration/vmstate.c                              |   2 +-
 monitor.c                                        |  16 +-
 net/Makefile.objs                                |   2 +
 net/filter-mirror.c                              |   2 +-
 net/trace-events                                 |   2 +
 net/vhost-user.c                                 |   2 +-
 qemu-img.c                                       |   1 +
 qemu-io.c                                        |   1 +
 qemu-nbd.c                                       |   1 +
 qom/Makefile.objs                                |   2 +
 qom/cpu.c                                        |   2 +-
 qom/object.c                                     |   2 +-
 qom/trace-events                                 |   2 +
 scripts/simpletrace.py                           |   7 +-
 scripts/tracetool.py                             |  10 +-
 scripts/tracetool/__init__.py                    |  59 +++++--
 scripts/tracetool/backend/__init__.py            |  12 +-
 scripts/tracetool/backend/dtrace.py              |   6 +-
 scripts/tracetool/backend/ftrace.py              |   7 +-
 scripts/tracetool/backend/log.py                 |   6 +-
 scripts/tracetool/backend/simple.py              |  13 +-
 scripts/tracetool/backend/ust.py                 |   6 +-
 scripts/tracetool/format/__init__.py             |   4 +-
 scripts/tracetool/format/c.py                    |  48 +++++-
 scripts/tracetool/format/d.py                    |   2 +-
 scripts/tracetool/format/events_c.py             |  44 ------
 scripts/tracetool/format/events_h.py             |  60 -------
 scripts/tracetool/format/h.py                    |  51 +++++-
 scripts/tracetool/format/simpletrace_stap.py     |   4 +-
 scripts/tracetool/format/stap.py                 |   2 +-
 scripts/tracetool/format/tcg_h.py                |   2 +-
 scripts/tracetool/format/tcg_helper_c.py         |   2 +-
 scripts/tracetool/format/tcg_helper_h.py         |   2 +-
 scripts/tracetool/format/tcg_helper_wrapper_h.py |   2 +-
 scripts/tracetool/format/ust_events_c.py         |   4 +-
 scripts/tracetool/format/ust_events_h.py         |  15 +-
 stubs/trace-control.c                            |   8 +-
 target-i386/Makefile.objs                        |   2 +
 target-i386/kvm.c                                |   2 +-
 target-i386/trace-events                         |   2 +
 target-ppc/Makefile.objs                         |   2 +
 target-ppc/kvm.c                                 |   2 +-
 target-ppc/trace-events                          |   2 +
 target-s390x/Makefile.objs                       |   2 +
 target-s390x/cpu.c                               |   2 +-
 target-s390x/ioinst.c                            |   2 +-
 target-s390x/kvm.c                               |   2 +-
 target-s390x/mmu_helper.c                        |   2 +-
 target-s390x/trace-events                        |   2 +
 target-sparc/Makefile.objs                       |   2 +
 target-sparc/int32_helper.c                      |   2 +-
 target-sparc/int64_helper.c                      |   2 +-
 target-sparc/mmu_helper.c                        |   2 +-
 target-sparc/trace-events                        |   2 +
 target-sparc/win_helper.c                        |   2 +-
 trace-events                                     |  19 +--
 trace/Makefile.objs                              |  98 ++----------
 trace/control-internal.h                         |  39 ++---
 trace/control-target.c                           |  20 +--
 trace/control.c                                  | 191 +++++++++++++++++------
 trace/control.h                                  | 108 +++----------
 trace/event-internal.h                           |   7 +-
 trace/qmp.c                                      |  29 ++--
 trace/simple.c                                   |   6 +-
 trace/simple.h                                   |   6 +-
 ui/Makefile.objs                                 |   3 +
 ui/console.c                                     |   2 +-
 ui/gtk-egl.c                                     |   2 +-
 ui/gtk-gl-area.c                                 |   2 +-
 ui/gtk.c                                         |   2 +-
 ui/input.c                                       |   2 +-
 ui/spice-display.c                               |   2 +-
 ui/trace-events                                  |   2 +
 ui/vnc.c                                         |   2 +-
 util/Makefile.objs                               |   2 +
 util/buffer.c                                    |   2 +-
 util/hbitmap.c                                   |   2 +-
 util/oslib-posix.c                               |   2 +-
 util/oslib-win32.c                               |   2 +-
 util/qemu-coroutine-lock.c                       |   2 +-
 util/qemu-coroutine.c                            |   2 +-
 util/trace-events                                |  21 +++
 vl.c                                             |   2 +
 321 files changed, 1058 insertions(+), 768 deletions(-)
 create mode 100644 hw/mem/trace-events
 delete mode 100644 include/trace.h
 delete mode 100644 scripts/tracetool/format/events_c.py
 delete mode 100644 scripts/tracetool/format/events_h.py
Signature · 1 line
2.7.4