Skip to contentSkip to conversation

qemu: include generated files with <> and not ""

PATCH In review Michael S. Tsirkin 10 participants 46 messages Mar 20, 2018 – Mar 21, 2018

Subsystems (10)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: include generated files with <> and not ""

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

---
 docs/devel/tracing.txt                    |  6 +++---
 crypto/cipherpriv.h                       |  2 +-
 include/block/block.h                     |  2 +-
 include/block/dirty-bitmap.h              |  2 +-
 include/block/nbd.h                       |  2 +-
 include/chardev/char.h                    |  2 +-
 include/crypto/cipher.h                   |  2 +-
 include/crypto/hash.h                     |  2 +-
 include/crypto/hmac.h                     |  2 +-
 include/crypto/secret.h                   |  2 +-
 include/crypto/tlscreds.h                 |  2 +-
 include/exec/cpu_ldst_template.h          |  2 +-
 include/exec/cpu_ldst_useronly_template.h |  2 +-
 include/exec/helper-gen.h                 |  4 ++--
 include/exec/helper-proto.h               |  2 +-
 include/exec/helper-tcg.h                 |  2 +-
 include/hw/block/block.h                  |  2 +-
 include/hw/block/fdc.h                    |  2 +-
 include/hw/ppc/spapr_drc.h                |  2 +-
 include/hw/qdev-properties.h              |  4 ++--
 include/hw/xen/xen_common.h               |  2 +-
 include/io/dns-resolver.h                 |  2 +-
 include/migration/colo.h                  |  2 +-
 include/migration/failover.h              |  2 +-
 include/migration/global_state.h          |  2 +-
 include/monitor/monitor.h                 |  2 +-
 include/net/filter.h                      |  2 +-
 include/net/net.h                         |  2 +-
 include/qapi/error.h                      |  2 +-
 include/qapi/qmp/qobject.h                |  2 +-
 include/qapi/visitor.h                    |  2 +-
 include/qemu/log.h                        |  2 +-
 include/qemu/osdep.h                      |  4 ++--
 include/qemu/sockets.h                    |  2 +-
 include/qemu/throttle.h                   |  2 +-
 include/qom/cpu.h                         |  2 +-
 include/qom/object.h                      |  2 +-
 include/sysemu/arch_init.h                |  2 +-
 include/sysemu/balloon.h                  |  2 +-
 include/sysemu/dump.h                     |  2 +-
 include/sysemu/hostmem.h                  |  2 +-
 include/sysemu/replay.h                   |  4 ++--
 include/sysemu/sysemu.h                   |  2 +-
 include/sysemu/tpm.h                      |  2 +-
 include/sysemu/watchdog.h                 |  2 +-
 include/sysemu/whpx.h                     |  2 +-
 include/trace-tcg.h                       |  2 +-
 include/ui/console.h                      |  2 +-
 include/ui/input.h                        |  2 +-
 migration/migration.h                     |  2 +-
 migration/ram.h                           |  2 +-
 net/tap_int.h                             |  2 +-
 qemu-options-wrapper.h                    |  2 +-
 replication.h                             |  2 +-
 target/s390x/cpu_models.h                 |  2 +-
 ui/vnc.h                                  |  2 +-
 accel/kvm/kvm-all.c                       |  2 +-
 accel/tcg/cpu-exec.c                      |  2 +-
 accel/tcg/translate-all.c                 |  2 +-
 arch_init.c                               |  2 +-
 audio/alsaaudio.c                         |  2 +-
 audio/ossaudio.c                          |  2 +-
 backends/hostmem.c                        |  2 +-
 balloon.c                                 |  4 ++--
 block.c                                   |  6 +++---
 block/backup.c                            |  2 +-
 block/block-backend.c                     |  4 ++--
 block/commit.c                            |  2 +-
 block/create.c                            |  2 +-
 block/crypto.c                            |  2 +-
 block/dirty-bitmap.c                      |  2 +-
 block/file-posix.c                        |  2 +-
 block/file-win32.c                        |  2 +-
 block/io.c                                |  2 +-
 block/iscsi.c                             |  2 +-
 block/mirror.c                            |  2 +-
 block/nbd.c                               |  2 +-
 block/nfs.c                               |  4 ++--
 block/nvme.c                              |  2 +-
 block/qapi.c                              |  4 ++--
 block/qcow2-cache.c                       |  2 +-
 block/qcow2-cluster.c                     |  2 +-
 block/qcow2.c                             |  6 +++---
 block/qed-l2-cache.c                      |  2 +-
 block/qed-table.c                         |  2 +-
 block/qed.c                               |  2 +-
 block/quorum.c                            |  2 +-
 block/rbd.c                               |  2 +-
 block/sheepdog.c                          |  4 ++--
 block/ssh.c                               |  4 ++--
 block/stream.c                            |  2 +-
 block/throttle-groups.c                   |  2 +-
 block/vxhs.c                              |  2 +-
 block/write-threshold.c                   |  4 ++--
 blockdev-nbd.c                            |  2 +-
 blockdev.c                                |  8 ++++----
 blockjob.c                                |  2 +-
 bsd-user/main.c                           |  2 +-
 chardev/char-ringbuf.c                    |  2 +-
 chardev/char-socket.c                     |  2 +-
 chardev/char.c                            |  2 +-
 chardev/spice.c                           |  2 +-
 chardev/wctablet.c                        |  2 +-
 cpus.c                                    |  4 ++--
 crypto/secret.c                           |  2 +-
 crypto/tlscreds.c                         |  2 +-
 crypto/tlscredsanon.c                     |  2 +-
 crypto/tlscredsx509.c                     |  2 +-
 crypto/tlssession.c                       |  2 +-
 dma-helpers.c                             |  2 +-
 dump.c                                    |  4 ++--
 exec.c                                    |  2 +-
 gdbstub.c                                 |  2 +-
 hmp.c                                     | 20 +++++++++----------
 hw/9pfs/9p.c                              |  2 +-
 hw/acpi/core.c                            |  4 ++--
 hw/acpi/cpu.c                             |  4 ++--
 hw/acpi/memory_hotplug.c                  |  4 ++--
 hw/acpi/tco.c                             |  2 +-
 hw/acpi/vmgenid.c                         |  2 +-
 hw/alpha/pci.c                            |  2 +-
 hw/arm/iotkit.c                           |  2 +-
 hw/arm/virt-acpi-build.c                  |  2 +-
 hw/audio/cs4231.c                         |  2 +-
 hw/audio/milkymist-ac97.c                 |  2 +-
 hw/block/block.c                          |  2 +-
 hw/block/dataplane/virtio-blk.c           |  2 +-
 hw/block/hd-geometry.c                    |  4 ++--
 hw/block/nvme.c                           |  2 +-
 hw/block/virtio-blk.c                     |  2 +-
 hw/block/xen_disk.c                       |  2 +-
 hw/char/cmsdk-apb-uart.c                  |  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/pl011.c                           |  2 +-
 hw/char/virtio-console.c                  |  4 ++--
 hw/char/virtio-serial-bus.c               |  2 +-
 hw/core/machine.c                         |  2 +-
 hw/core/qdev.c                            |  2 +-
 hw/display/cirrus_vga.c                   |  2 +-
 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/sii9022.c                      |  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/i8257.c                            |  2 +-
 hw/dma/rc4030.c                           |  2 +-
 hw/dma/sparc32_dma.c                      |  2 +-
 hw/hppa/pci.c                             |  2 +-
 hw/i386/amd_iommu.c                       |  2 +-
 hw/i386/intel_iommu.c                     |  2 +-
 hw/i386/pc.c                              |  2 +-
 hw/i386/vmport.c                          |  2 +-
 hw/i386/x86-iommu.c                       |  2 +-
 hw/i386/xen/xen-hvm.c                     |  4 ++--
 hw/i386/xen/xen-mapcache.c                |  2 +-
 hw/i386/xen/xen_platform.c                |  2 +-
 hw/i386/xen/xen_pvdevice.c                |  2 +-
 hw/ide/ahci-allwinner.c                   |  2 +-
 hw/ide/ahci.c                             |  2 +-
 hw/ide/atapi.c                            |  2 +-
 hw/ide/cmd646.c                           |  2 +-
 hw/ide/core.c                             |  2 +-
 hw/ide/pci.c                              |  2 +-
 hw/ide/piix.c                             |  2 +-
 hw/ide/sii3112.c                          |  2 +-
 hw/ide/via.c                              |  2 +-
 hw/input/adb-kbd.c                        |  2 +-
 hw/input/adb-mouse.c                      |  2 +-
 hw/input/hid.c                            |  2 +-
 hw/input/milkymist-softusb.c              |  2 +-
 hw/input/ps2.c                            |  2 +-
 hw/input/virtio-input.c                   |  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/armv7m_nvic.c                     |  2 +-
 hw/intc/aspeed_vic.c                      |  2 +-
 hw/intc/grlib_irqmp.c                     |  2 +-
 hw/intc/heathrow_pic.c                    |  2 +-
 hw/intc/i8259.c                           |  2 +-
 hw/intc/ioapic.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/xics.c                            |  2 +-
 hw/intc/xics_kvm.c                        |  2 +-
 hw/intc/xics_spapr.c                      |  2 +-
 hw/ipmi/ipmi.c                            |  2 +-
 hw/isa/pc87312.c                          |  2 +-
 hw/mem/pc-dimm.c                          |  2 +-
 hw/misc/aspeed_scu.c                      |  2 +-
 hw/misc/aspeed_sdmc.c                     |  2 +-
 hw/misc/eccmemctl.c                       |  2 +-
 hw/misc/imx7_gpr.c                        |  2 +-
 hw/misc/iotkit-secctl.c                   |  2 +-
 hw/misc/macio/cuda.c                      |  2 +-
 hw/misc/milkymist-hpdmc.c                 |  2 +-
 hw/misc/milkymist-pfpu.c                  |  2 +-
 hw/misc/mmio_interface.c                  |  2 +-
 hw/misc/mos6522.c                         |  2 +-
 hw/misc/mps2-fpgaio.c                     |  2 +-
 hw/misc/mps2-scc.c                        |  2 +-
 hw/misc/msf2-sysreg.c                     |  2 +-
 hw/misc/slavio_misc.c                     |  2 +-
 hw/misc/tz-ppc.c                          |  2 +-
 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/rocker/qmp-norocker.c              |  2 +-
 hw/net/rocker/rocker.c                    |  2 +-
 hw/net/rocker/rocker_fp.c                 |  2 +-
 hw/net/rocker/rocker_of_dpa.c             |  2 +-
 hw/net/spapr_llan.c                       |  2 +-
 hw/net/sungem.c                           |  2 +-
 hw/net/sunhme.c                           |  2 +-
 hw/net/virtio-net.c                       |  2 +-
 hw/nvram/ds1225y.c                        |  2 +-
 hw/nvram/fw_cfg.c                         |  2 +-
 hw/pci-host/grackle.c                     |  2 +-
 hw/pci-host/sabre.c                       |  2 +-
 hw/pci-host/uninorth.c                    |  2 +-
 hw/pci/msix.c                             |  2 +-
 hw/pci/pci-stub.c                         |  2 +-
 hw/pci/pci.c                              |  4 ++--
 hw/pci/pci_host.c                         |  2 +-
 hw/ppc/mac_newworld.c                     |  2 +-
 hw/ppc/ppc.c                              |  2 +-
 hw/ppc/ppc440_pcix.c                      |  2 +-
 hw/ppc/ppc4xx_pci.c                       |  2 +-
 hw/ppc/prep.c                             |  2 +-
 hw/ppc/prep_systemio.c                    |  2 +-
 hw/ppc/rs6000_mc.c                        |  2 +-
 hw/ppc/spapr.c                            |  2 +-
 hw/ppc/spapr_drc.c                        |  2 +-
 hw/ppc/spapr_hcall.c                      |  2 +-
 hw/ppc/spapr_iommu.c                      |  2 +-
 hw/ppc/spapr_ovec.c                       |  2 +-
 hw/ppc/spapr_pci.c                        |  2 +-
 hw/ppc/spapr_rtas.c                       |  2 +-
 hw/ppc/spapr_rtas_ddw.c                   |  2 +-
 hw/ppc/spapr_rtc.c                        |  2 +-
 hw/ppc/spapr_vio.c                        |  2 +-
 hw/rdma/rdma_backend.c                    |  2 +-
 hw/rdma/vmw/pvrdma_main.c                 |  2 +-
 hw/s390x/css.c                            |  2 +-
 hw/s390x/s390-skeys.c                     |  2 +-
 hw/s390x/virtio-ccw.c                     |  2 +-
 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/spapr_vscsi.c                     |  2 +-
 hw/scsi/vmw_pvscsi.c                      |  2 +-
 hw/sd/core.c                              |  2 +-
 hw/sd/milkymist-memcard.c                 |  2 +-
 hw/sd/pxa2xx_mmci.c                       |  2 +-
 hw/sd/sd.c                                |  2 +-
 hw/sd/sdhci.c                             |  2 +-
 hw/sparc/leon3.c                          |  2 +-
 hw/sparc/sun4m.c                          |  2 +-
 hw/sparc/sun4m_iommu.c                    |  2 +-
 hw/sparc64/sparc64.c                      |  2 +-
 hw/sparc64/sun4u.c                        |  2 +-
 hw/sparc64/sun4u_iommu.c                  |  2 +-
 hw/timer/armv7m_systick.c                 |  2 +-
 hw/timer/aspeed_timer.c                   |  2 +-
 hw/timer/cmsdk-apb-timer.c                |  2 +-
 hw/timer/grlib_gptimer.c                  |  2 +-
 hw/timer/lm32_timer.c                     |  2 +-
 hw/timer/mc146818rtc.c                    |  4 ++--
 hw/timer/milkymist-sysctl.c               |  2 +-
 hw/timer/slavio_timer.c                   |  2 +-
 hw/timer/xlnx-zynqmp-rtc.c                |  2 +-
 hw/tpm/tpm_crb.c                          |  2 +-
 hw/tpm/tpm_emulator.c                     |  4 ++--
 hw/tpm/tpm_passthrough.c                  |  4 ++--
 hw/tpm/tpm_tis.c                          |  2 +-
 hw/tpm/tpm_util.c                         |  2 +-
 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                         |  2 +-
 hw/usb/hcd-uhci.c                         |  2 +-
 hw/usb/hcd-xhci.c                         |  2 +-
 hw/usb/host-libusb.c                      |  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/virtio/vhost.c                         |  2 +-
 hw/virtio/virtio-balloon.c                |  4 ++--
 hw/virtio/virtio-rng.c                    |  2 +-
 hw/virtio/virtio.c                        |  2 +-
 hw/watchdog/watchdog.c                    |  4 ++--
 io/channel-buffer.c                       |  2 +-
 io/channel-command.c                      |  2 +-
 io/channel-file.c                         |  2 +-
 io/channel-socket.c                       |  4 ++--
 io/channel-tls.c                          |  2 +-
 io/channel-websock.c                      |  2 +-
 io/dns-resolver.c                         |  2 +-
 io/task.c                                 |  2 +-
 ioport.c                                  |  2 +-
 iothread.c                                |  2 +-
 linux-user/main.c                         |  2 +-
 linux-user/signal.c                       |  2 +-
 memory.c                                  |  2 +-
 migration/channel.c                       |  2 +-
 migration/colo-comm.c                     |  2 +-
 migration/colo-failover.c                 |  4 ++--
 migration/colo.c                          |  4 ++--
 migration/exec.c                          |  2 +-
 migration/fd.c                            |  2 +-
 migration/global_state.c                  |  2 +-
 migration/migration.c                     |  6 +++---
 migration/postcopy-ram.c                  |  2 +-
 migration/qemu-file.c                     |  2 +-
 migration/ram.c                           |  4 ++--
 migration/rdma.c                          |  2 +-
 migration/savevm.c                        |  6 +++---
 migration/socket.c                        |  2 +-
 migration/tls.c                           |  2 +-
 migration/vmstate-types.c                 |  2 +-
 migration/vmstate.c                       |  2 +-
 monitor.c                                 | 12 ++++++------
 nbd/client.c                              |  2 +-
 nbd/common.c                              |  2 +-
 nbd/server.c                              |  2 +-
 net/colo-compare.c                        |  2 +-
 net/colo.c                                |  2 +-
 net/filter-buffer.c                       |  2 +-
 net/filter-mirror.c                       |  2 +-
 net/filter-rewriter.c                     |  2 +-
 net/net.c                                 |  4 ++--
 net/vhost-user.c                          |  4 ++--
 numa.c                                    |  4 ++--
 qapi/qapi-visit-core.c                    |  2 +-
 qdev-monitor.c                            |  2 +-
 qemu-img.c                                |  8 ++++----
 qemu-io.c                                 |  2 +-
 qemu-nbd.c                                |  2 +-
 qga/main.c                                |  2 +-
 qmp.c                                     |  8 ++++----
 qom/cpu.c                                 |  2 +-
 qom/object.c                              |  4 ++--
 replay/replay-input.c                     |  2 +-
 scsi/pr-manager.c                         |  2 +-
 scsi/qemu-pr-helper.c                     |  2 +-
 stubs/tpm.c                               |  2 +-
 stubs/uuid.c                              |  2 +-
 stubs/vmgenid.c                           |  2 +-
 stubs/xen-hvm.c                           |  2 +-
 target/arm/helper.c                       |  2 +-
 target/arm/monitor.c                      |  2 +-
 target/i386/cpu.c                         |  4 ++--
 target/i386/kvm.c                         |  2 +-
 target/mips/translate.c                   |  2 +-
 target/ppc/kvm.c                          |  2 +-
 target/s390x/cpu.c                        |  6 +++---
 target/s390x/cpu_features.c               |  2 +-
 target/s390x/ioinst.c                     |  2 +-
 target/s390x/kvm.c                        |  2 +-
 target/s390x/mmu_helper.c                 |  2 +-
 target/s390x/sigp.c                       |  4 ++--
 target/sparc/int32_helper.c               |  2 +-
 target/sparc/int64_helper.c               |  2 +-
 target/sparc/mmu_helper.c                 |  2 +-
 target/sparc/win_helper.c                 |  2 +-
 tests/qmp-test.c                          |  4 ++--
 tests/tcg/test_path.c                     |  2 +-
 tests/test-char.c                         |  2 +-
 tests/test-qmp-cmds.c                     |  6 +++---
 tests/test-qmp-event.c                    |  2 +-
 tests/test-qobject-input-visitor.c        |  6 +++---
 tpm.c                                     |  2 +-
 trace/control-target.c                    |  2 +-
 trace/control.c                           |  4 ++--
 trace/ftrace.c                            |  2 +-
 trace/qmp.c                               |  2 +-
 ui/console.c                              |  4 ++--
 ui/gtk-egl.c                              |  2 +-
 ui/gtk-gl-area.c                          |  2 +-
 ui/gtk.c                                  |  4 ++--
 ui/input-keymap.c                         | 32 +++++++++++++++----------------
 ui/input-legacy.c                         |  2 +-
 ui/input.c                                |  4 ++--
 ui/keymaps.c                              |  2 +-
 ui/spice-core.c                           |  4 ++--
 ui/spice-display.c                        |  2 +-
 ui/vnc-auth-sasl.c                        |  2 +-
 ui/vnc-auth-vencrypt.c                    |  2 +-
 ui/vnc-ws.c                               |  2 +-
 ui/vnc.c                                  |  6 +++---
 ui/x_keymap.c                             |  2 +-
 util/aio-posix.c                          |  2 +-
 util/async.c                              |  2 +-
 util/buffer.c                             |  2 +-
 util/hbitmap.c                            |  2 +-
 util/lockcnt.c                            |  2 +-
 util/oslib-posix.c                        |  2 +-
 util/oslib-win32.c                        |  2 +-
 util/qemu-config.c                        |  2 +-
 util/qemu-coroutine-lock.c                |  2 +-
 util/qemu-coroutine.c                     |  2 +-
 util/qemu-sockets.c                       |  2 +-
 util/qemu-thread-posix.c                  |  2 +-
 util/qemu-thread-win32.c                  |  2 +-
 util/thread-pool.c                        |  2 +-
 util/vfio-helpers.c                       |  4 ++--
 vl.c                                      | 14 +++++++-------
 scripts/qapi/types.py                     |  6 +++---
 scripts/qapi/visit.py                     |  6 +++---
 scripts/tracetool/backend/ftrace.py       |  2 +-
 scripts/tracetool/backend/log.py          |  2 +-
 trace-events                              |  2 +-
 ui/cocoa.m                                |  4 ++--
 version.rc                                |  2 +-
 448 files changed, 557 insertions(+), 557 deletions(-)
docs/devel/tracing.txt +3 -3
index 07abbb3..1372d75 100644
@@ -52,7 +52,7 @@ In the sub-directory the following files will be automatically generated
 Source files in the sub-directory should #include the local 'trace.h' file,
 without any sub-directory path prefix. eg io/channel-buffer.c would do
 
-  #include "trace.h"
+  #include <trace.h>
 
 To access the 'io/trace.h' file. While it is possible to include a trace.h
 file from outside a source files' own sub-directory, this is discouraged in
@@ -67,7 +67,7 @@ a trace.h in the current directory, vs the top level directory.
 
 Trace events are invoked directly from source code like this:
 
-    #include "trace.h"  /* needed for trace event prototype */
+    #include <trace.h>  /* needed for trace event prototype */
     
     void *qemu_vmalloc(size_t size)
     {
@@ -333,7 +333,7 @@ performed to generate values that are only used as arguments for a trace
 function. In these cases you can use the macro 'TRACE_${EVENT_NAME}_ENABLED' to
 guard such computations and avoid its compilation when the event is disabled:
 
-    #include "trace.h"  /* needed for trace event prototype */
+    #include <trace.h>  /* needed for trace event prototype */
     
     void *qemu_vmalloc(size_t size)
     {
crypto/cipherpriv.h +1 -1
index 0823239..2e910a4 100644
@@ -15,7 +15,7 @@
 #ifndef QCRYPTO_CIPHERPRIV_H
 #define QCRYPTO_CIPHERPRIV_H
 
-#include "qapi/qapi-types-crypto.h"
+#include <qapi/qapi-types-crypto.h>
 
 typedef struct QCryptoCipherDriver QCryptoCipherDriver;
 
include/block/block.h +1 -1
index cdec363..dd15de3 100644
@@ -2,7 +2,7 @@
 #define BLOCK_H
 
 #include "block/aio.h"
-#include "qapi/qapi-types-block-core.h"
+#include <qapi/qapi-types-block-core.h>
 #include "block/aio-wait.h"
 #include "qemu/iov.h"
 #include "qemu/coroutine.h"
include/block/dirty-bitmap.h +1 -1
index 09efec6..0329e80 100644
@@ -2,7 +2,7 @@
 #define BLOCK_DIRTY_BITMAP_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-block-core.h"
+#include <qapi/qapi-types-block-core.h>
 #include "qemu/hbitmap.h"
 
 BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs,
include/block/nbd.h +1 -1
index 2285637..215083f 100644
@@ -20,7 +20,7 @@
 #ifndef NBD_H
 #define NBD_H
 
-#include "qapi/qapi-types-block.h"
+#include <qapi/qapi-types-block.h>
 #include "io/channel-socket.h"
 #include "crypto/tlscreds.h"
 
include/chardev/char.h +1 -1
index ebf1e0b..1d29d31 100644
@@ -1,7 +1,7 @@
 #ifndef QEMU_CHAR_H
 #define QEMU_CHAR_H
 
-#include "qapi/qapi-types-char.h"
+#include <qapi/qapi-types-char.h>
 #include "qemu/main-loop.h"
 #include "qemu/bitmap.h"
 #include "qom/object.h"
include/crypto/cipher.h +1 -1
index bce2d4c..8ff860e 100644
@@ -21,7 +21,7 @@
 #ifndef QCRYPTO_CIPHER_H
 #define QCRYPTO_CIPHER_H
 
-#include "qapi/qapi-types-crypto.h"
+#include <qapi/qapi-types-crypto.h>
 
 typedef struct QCryptoCipher QCryptoCipher;
 
include/crypto/hash.h +1 -1
index 077ac7b..4bb2103 100644
@@ -21,7 +21,7 @@
 #ifndef QCRYPTO_HASH_H
 #define QCRYPTO_HASH_H
 
-#include "qapi/qapi-types-crypto.h"
+#include <qapi/qapi-types-crypto.h>
 
 /* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */
 
include/crypto/hmac.h +1 -1
index aa3c97a..51ca1ec 100644
@@ -12,7 +12,7 @@
 #ifndef QCRYPTO_HMAC_H
 #define QCRYPTO_HMAC_H
 
-#include "qapi/qapi-types-crypto.h"
+#include <qapi/qapi-types-crypto.h>
 
 typedef struct QCryptoHmac QCryptoHmac;
 struct QCryptoHmac {
include/crypto/secret.h +1 -1
index edd0e13..94e6f98 100644
@@ -21,7 +21,7 @@
 #ifndef QCRYPTO_SECRET_H
 #define QCRYPTO_SECRET_H
 
-#include "qapi/qapi-types-crypto.h"
+#include <qapi/qapi-types-crypto.h>
 #include "qom/object.h"
 
 #define TYPE_QCRYPTO_SECRET "secret"
include/crypto/tlscreds.h +1 -1
index 6b011e1..ebeca42 100644
@@ -21,7 +21,7 @@
 #ifndef QCRYPTO_TLSCREDS_H
 #define QCRYPTO_TLSCREDS_H
 
-#include "qapi/qapi-types-crypto.h"
+#include <qapi/qapi-types-crypto.h>
 #include "qom/object.h"
 
 #ifdef CONFIG_GNUTLS
include/exec/cpu_ldst_template.h +1 -1
index 4db2302..66f45a2 100644
@@ -25,7 +25,7 @@
  */
 
 #if !defined(SOFTMMU_CODE_ACCESS)
-#include "trace-root.h"
+#include <trace-root.h>
 #endif
 
 #include "trace/mem.h"
include/exec/cpu_ldst_useronly_template.h +1 -1
index c168f31..6dd855a 100644
@@ -24,7 +24,7 @@
  */
 
 #if !defined(CODE_ACCESS)
-#include "trace-root.h"
+#include <trace-root.h>
 #endif
 
 #include "trace/mem.h"
include/exec/helper-gen.h +2 -2
index 22381a1..f1e9dd9 100644
@@ -67,8 +67,8 @@ static inline void glue(gen_helper_, name)(dh_retvar_decl(ret)          \
 }
 
 #include "helper.h"
-#include "trace/generated-helpers.h"
-#include "trace/generated-helpers-wrappers.h"
+#include <trace/generated-helpers.h>
+#include <trace/generated-helpers-wrappers.h>
 #include "tcg-runtime.h"
 
 #undef DEF_HELPER_FLAGS_0
include/exec/helper-proto.h +1 -1
index 74943ed..e96398e 100644
@@ -31,7 +31,7 @@ dh_ctype(ret) HELPER(name) (dh_ctype(t1), dh_ctype(t2), dh_ctype(t3), \
                             dh_ctype(t4), dh_ctype(t5), dh_ctype(t6));
 
 #include "helper.h"
-#include "trace/generated-helpers.h"
+#include <trace/generated-helpers.h>
 #include "tcg-runtime.h"
 
 #undef DEF_HELPER_FLAGS_0
include/exec/helper-tcg.h +1 -1
index b3bdb0c..5592810 100644
@@ -46,7 +46,7 @@
     | dh_sizemask(t5, 5) | dh_sizemask(t6, 6) },
 
 #include "helper.h"
-#include "trace/generated-helpers.h"
+#include <trace/generated-helpers.h>
 #include "tcg-runtime.h"
 
 #undef str
include/hw/block/block.h +1 -1
index d4f4dff..e85b5b8 100644
@@ -12,7 +12,7 @@
 #define HW_BLOCK_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-block-core.h"
+#include <qapi/qapi-types-block-core.h>
 
 /* Configuration */
 
include/hw/block/fdc.h +1 -1
index 3b813c7..918f96e 100644
@@ -2,7 +2,7 @@
 #define HW_FDC_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-block.h"
+#include <qapi/qapi-types-block.h>
 
 /* fdc.c */
 #define MAX_FD 2
include/hw/ppc/spapr_drc.h +1 -1
index f6ff32e..4ffc665 100644
@@ -14,7 +14,7 @@
 #define HW_SPAPR_DRC_H
 
 #include <libfdt.h>
-#include "qapi/qapi-types-run-state.h"
+#include <qapi/qapi-types-run-state.h>
 #include "qom/object.h"
 #include "sysemu/sysemu.h"
 #include "hw/qdev.h"
include/hw/qdev-properties.h +2 -2
index b2ad8e9..b42b581 100644
@@ -1,8 +1,8 @@
 #ifndef QEMU_QDEV_PROPERTIES_H
 #define QEMU_QDEV_PROPERTIES_H
 
-#include "qapi/qapi-types-block.h"
-#include "qapi/qapi-types-misc.h"
+#include <qapi/qapi-types-block.h>
+#include <qapi/qapi-types-misc.h>
 #include "hw/qdev-core.h"
 
 /*** qdev-properties.c ***/
include/hw/xen/xen_common.h +1 -1
index 64a978e..0446b77 100644
@@ -18,7 +18,7 @@
 #include "hw/xen/xen.h"
 #include "hw/pci/pci.h"
 #include "qemu/queue.h"
-#include "hw/xen/trace.h"
+#include <hw/xen/trace.h>
 
 extern xc_interface *xen_xc;
 
include/io/dns-resolver.h +1 -1
index 1a16218..e28d305 100644
@@ -22,7 +22,7 @@
 #define QIO_DNS_RESOLVER_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-sockets.h"
+#include <qapi/qapi-types-sockets.h>
 #include "qom/object.h"
 #include "io/task.h"
 
include/migration/colo.h +1 -1
index 2fe48ad..dea2a67 100644
@@ -14,7 +14,7 @@
 #define QEMU_COLO_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-migration.h"
+#include <qapi/qapi-types-migration.h>
 
 void colo_info_init(void);
 
include/migration/failover.h +1 -1
index 4c37218..7be1006 100644
@@ -14,7 +14,7 @@
 #define QEMU_FAILOVER_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-migration.h"
+#include <qapi/qapi-types-migration.h>
 
 void failover_init_state(void);
 FailoverStatus failover_set_state(FailoverStatus old_state,
include/migration/global_state.h +1 -1
index fd22dd3..1b21e52 100644
@@ -13,7 +13,7 @@
 #ifndef QEMU_MIGRATION_GLOBAL_STATE_H
 #define QEMU_MIGRATION_GLOBAL_STATE_H
 
-#include "qapi/qapi-types-run-state.h"
+#include <qapi/qapi-types-run-state.h>
 #include "sysemu/sysemu.h"
 
 void register_global_state(void);
include/monitor/monitor.h +1 -1
index d1024d4..ed7b259 100644
@@ -3,7 +3,7 @@
 
 #include "qemu-common.h"
 #include "block/block.h"
-#include "qapi/qapi-types-misc.h"
+#include <qapi/qapi-types-misc.h>
 #include "qemu/readline.h"
 
 extern Monitor *cur_mon;
include/net/filter.h +1 -1
index 435acd6..9f9447d 100644
@@ -9,7 +9,7 @@
 #ifndef QEMU_NET_FILTER_H
 #define QEMU_NET_FILTER_H
 
-#include "qapi/qapi-types-net.h"
+#include <qapi/qapi-types-net.h>
 #include "qom/object.h"
 #include "qemu-common.h"
 #include "net/queue.h"
include/net/net.h +1 -1
index a943e96..3f3e1d2 100644
@@ -2,7 +2,7 @@
 #define QEMU_NET_H
 
 #include "qemu/queue.h"
-#include "qapi/qapi-types-net.h"
+#include <qapi/qapi-types-net.h>
 #include "net/queue.h"
 #include "migration/vmstate.h"
 
include/qapi/error.h +1 -1
index bcb86a7..9e5ff82 100644
@@ -115,7 +115,7 @@
 #ifndef ERROR_H
 #define ERROR_H
 
-#include "qapi/qapi-types-common.h"
+#include <qapi/qapi-types-common.h>
 
 /*
  * Overall category of an error.
include/qapi/qmp/qobject.h +1 -1
index 012439a..ff1bbe6 100644
@@ -32,7 +32,7 @@
 #ifndef QOBJECT_H
 #define QOBJECT_H
 
-#include "qapi/qapi-builtin-types.h"
+#include <qapi/qapi-builtin-types.h>
 
 struct QObject {
     QType type;
include/qapi/visitor.h +1 -1
index 5b2ed3f..9e17280 100644
@@ -15,7 +15,7 @@
 #ifndef QAPI_VISITOR_H
 #define QAPI_VISITOR_H
 
-#include "qapi/qapi-builtin-types.h"
+#include <qapi/qapi-builtin-types.h>
 
 /*
  * The QAPI schema defines both a set of C data types, and a QMP wire
include/qemu/log.h +1 -1
index ff92a8b..604292b 100644
@@ -2,7 +2,7 @@
 #define QEMU_LOG_H
 
 /* A small part of this API is split into its own header */
-#include "qemu/log-for-trace.h"
+#include <qemu/log-for-trace.h>
 
 /* Private global variable, don't use */
 extern FILE *qemu_logfile;
include/qemu/osdep.h +2 -2
index 4165806..7332452 100644
@@ -27,9 +27,9 @@
 #ifndef QEMU_OSDEP_H
 #define QEMU_OSDEP_H
 
-#include "config-host.h"
+#include <config-host.h>
 #ifdef NEED_CPU_H
-#include "config-target.h"
+#include <config-target.h>
 #else
 #include "exec/poison.h"
 #endif
include/qemu/sockets.h +1 -1
index e88d4c3..9a5e29e 100644
@@ -9,7 +9,7 @@ int inet_aton(const char *cp, struct in_addr *ia);
 
 #endif /* !_WIN32 */
 
-#include "qapi/qapi-types-sockets.h"
+#include <qapi/qapi-types-sockets.h>
 
 /* misc helpers */
 int qemu_socket(int domain, int type, int protocol);
include/qemu/throttle.h +1 -1
index abeb886..16ae14e 100644
@@ -26,7 +26,7 @@
 #define THROTTLE_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-block-core.h"
+#include <qapi/qapi-types-block-core.h>
 #include "qemu/timer.h"
 
 #define THROTTLE_VALUE_MAX 1000000000000000LL
include/qom/cpu.h +1 -1
index dc6d495..229f214 100644
@@ -24,7 +24,7 @@
 #include "disas/bfd.h"
 #include "exec/hwaddr.h"
 #include "exec/memattrs.h"
-#include "qapi/qapi-types-run-state.h"
+#include <qapi/qapi-types-run-state.h>
 #include "qemu/bitmap.h"
 #include "qemu/queue.h"
 #include "qemu/thread.h"
include/qom/object.h +1 -1
index 4f07090..52d7e55 100644
@@ -14,7 +14,7 @@
 #ifndef QEMU_OBJECT_H
 #define QEMU_OBJECT_H
 
-#include "qapi/qapi-builtin-types.h"
+#include <qapi/qapi-builtin-types.h>
 #include "qemu/queue.h"
 
 struct TypeImpl;
include/sysemu/arch_init.h +1 -1
index 32abdfe..763ff16 100644
@@ -1,7 +1,7 @@
 #ifndef QEMU_ARCH_INIT_H
 #define QEMU_ARCH_INIT_H
 
-#include "qapi/qapi-types-misc.h"
+#include <qapi/qapi-types-misc.h>
 
 enum {
     QEMU_ARCH_ALL = -1,
include/sysemu/balloon.h +1 -1
index 66543ae..65ed3d0 100644
@@ -14,7 +14,7 @@
 #ifndef QEMU_BALLOON_H
 #define QEMU_BALLOON_H
 
-#include "qapi/qapi-types-misc.h"
+#include <qapi/qapi-types-misc.h>
 
 typedef void (QEMUBalloonEvent)(void *opaque, ram_addr_t target);
 typedef void (QEMUBalloonStatus)(void *opaque, BalloonInfo *info);
include/sysemu/dump.h +1 -1
index d824bc0..a8dff2e 100644
@@ -14,7 +14,7 @@
 #ifndef DUMP_H
 #define DUMP_H
 
-#include "qapi/qapi-types-misc.h"
+#include <qapi/qapi-types-misc.h>
 
 #define MAKEDUMPFILE_SIGNATURE      "makedumpfile"
 #define MAX_SIZE_MDF_HEADER         (4096) /* max size of makedumpfile_header */
include/sysemu/hostmem.h +1 -1
index 47bc984..cccd2fa 100644
@@ -14,7 +14,7 @@
 #define SYSEMU_HOSTMEM_H
 
 #include "sysemu/sysemu.h" /* for MAX_NODES */
-#include "qapi/qapi-types-misc.h"
+#include <qapi/qapi-types-misc.h>
 #include "qom/object.h"
 #include "exec/memory.h"
 #include "qemu/bitmap.h"
include/sysemu/replay.h +2 -2
index c0204e6..760e2d8 100644
@@ -13,8 +13,8 @@
  */
 
 #include "sysemu.h"
-#include "qapi/qapi-types-misc.h"
-#include "qapi/qapi-types-ui.h"
+#include <qapi/qapi-types-misc.h>
+#include <qapi/qapi-types-ui.h>
 
 /* replay clock kinds */
 enum ReplayClockKind {
include/sysemu/sysemu.h +1 -1
index 356bfdc..51c5997 100644
@@ -2,7 +2,7 @@
 #define SYSEMU_H
 /* Misc. things related to the system emulator.  */
 
-#include "qapi/qapi-types-run-state.h"
+#include <qapi/qapi-types-run-state.h>
 #include "qemu/queue.h"
 #include "qemu/timer.h"
 #include "qemu/notify.h"
include/sysemu/tpm.h +1 -1
index 9ae1ab6..def08d8 100644
@@ -12,7 +12,7 @@
 #ifndef QEMU_TPM_H
 #define QEMU_TPM_H
 
-#include "qapi/qapi-types-tpm.h"
+#include <qapi/qapi-types-tpm.h>
 #include "qom/object.h"
 
 int tpm_config_parse(QemuOptsList *opts_list, const char *optarg);
include/sysemu/watchdog.h +1 -1
index a08d163..2d019a1 100644
@@ -23,7 +23,7 @@
 #define QEMU_WATCHDOG_H
 
 #include "qemu/queue.h"
-#include "qapi/qapi-types-run-state.h"
+#include <qapi/qapi-types-run-state.h>
 
 struct WatchdogTimerModel {
     QLIST_ENTRY(WatchdogTimerModel) entry;
include/sysemu/whpx.h +1 -1
index 89592ae..8bcc22d 100644
@@ -13,7 +13,7 @@
 #ifndef QEMU_WHPX_H
 #define QEMU_WHPX_H
 
-#include "config-host.h"
+#include <config-host.h>
 #include "qemu-common.h"
 
 int whpx_init_vcpu(CPUState *cpu);
include/trace-tcg.h +1 -1
index da68608..23202d5 100644
@@ -1,6 +1,6 @@
 #ifndef TRACE_TCG_H
 #define TRACE_TCG_H
 
-#include "trace/generated-tcg-tracers.h"
+#include <trace/generated-tcg-tracers.h>
 
 #endif /* TRACE_TCG_H */
include/ui/console.h +1 -1
index 5fca9af..71a7388 100644
@@ -5,7 +5,7 @@
 #include "qom/object.h"
 #include "qemu/notify.h"
 #include "qemu/error-report.h"
-#include "qapi/qapi-types-ui.h"
+#include <qapi/qapi-types-ui.h>
 
 #ifdef CONFIG_OPENGL
 # include <epoxy/gl.h>
include/ui/input.h +1 -1
index 16395ab..31a9205 100644
@@ -1,7 +1,7 @@
 #ifndef INPUT_H
 #define INPUT_H
 
-#include "qapi/qapi-types-ui.h"
+#include <qapi/qapi-types-ui.h>
 
 #define INPUT_EVENT_MASK_KEY   (1<<INPUT_EVENT_KIND_KEY)
 #define INPUT_EVENT_MASK_BTN   (1<<INPUT_EVENT_KIND_BTN)
migration/migration.h +1 -1
index 08c5d2d..e97fa5a 100644
@@ -15,7 +15,7 @@
 #define QEMU_MIGRATION_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-migration.h"
+#include <qapi/qapi-types-migration.h>
 #include "qemu/thread.h"
 #include "exec/cpu-common.h"
 #include "qemu/coroutine_int.h"
migration/ram.h +1 -1
index 53f0021..2cd955b 100644
@@ -30,7 +30,7 @@
 #define QEMU_MIGRATION_RAM_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-migration.h"
+#include <qapi/qapi-types-migration.h>
 #include "exec/cpu-common.h"
 
 extern MigrationStats ram_counters;
net/tap_int.h +1 -1
index 9f931d5..17753d7 100644
@@ -27,7 +27,7 @@
 #define NET_TAP_INT_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-net.h"
+#include <qapi/qapi-types-net.h>
 
 int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
              int vnet_hdr_required, int mq_required, Error **errp);
qemu-options-wrapper.h +1 -1
index 13bfea0..ec4cb8c 100644
@@ -29,7 +29,7 @@
 #error "qemu-options-wrapper.h included with no option defined"
 #endif
 
-#include "qemu-options.def"
+#include <qemu-options.def>
 
 #undef DEF
 #undef DEFHEADING
replication.h +1 -1
index 8faefe0..764bb9e 100644
@@ -15,7 +15,7 @@
 #ifndef REPLICATION_H
 #define REPLICATION_H
 
-#include "qapi/qapi-types-block-core.h"
+#include <qapi/qapi-types-block-core.h>
 #include "qemu/queue.h"
 
 typedef struct ReplicationOps ReplicationOps;
target/s390x/cpu_models.h +1 -1
index 11cf538..0a3c43f 100644
@@ -14,7 +14,7 @@
 #define TARGET_S390X_CPU_MODELS_H
 
 #include "cpu_features.h"
-#include "gen-features.h"
+#include <gen-features.h>
 #include "qom/cpu.h"
 
 /* static CPU definition */
ui/vnc.h +1 -1
index 7b29def..02f67ba 100644
@@ -28,7 +28,7 @@
 #define QEMU_VNC_H
 
 #include "qemu-common.h"
-#include "qapi/qapi-types-ui.h"
+#include <qapi/qapi-types-ui.h>
 #include "qemu/queue.h"
 #include "qemu/thread.h"
 #include "ui/console.h"
accel/kvm/kvm-all.c +1 -1
index b91fcb7..692a3b0 100644
@@ -36,7 +36,7 @@
 #include "exec/ram_addr.h"
 #include "exec/address-spaces.h"
 #include "qemu/event_notifier.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/irq.h"
 
 #include "hw/boards.h"
accel/tcg/cpu-exec.c +1 -1
index 280200f..b7d9a37 100644
@@ -18,7 +18,7 @@
  */
 #include "qemu/osdep.h"
 #include "cpu.h"
-#include "trace.h"
+#include <trace.h>
 #include "disas/disas.h"
 #include "exec/exec-all.h"
 #include "tcg.h"
accel/tcg/translate-all.c +1 -1
index 67795cd..8db385a 100644
@@ -25,7 +25,7 @@
 #include "qemu-common.h"
 #define NO_CPU_IO_DEFS
 #include "cpu.h"
-#include "trace.h"
+#include <trace.h>
 #include "disas/disas.h"
 #include "exec/exec-all.h"
 #include "tcg.h"
arch_init.c +1 -1
index 6ee0747..86743f5 100644
@@ -28,7 +28,7 @@
 #include "sysemu/arch_init.h"
 #include "hw/pci/pci.h"
 #include "hw/audio/soundhw.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qemu/config-file.h"
 #include "qemu/error-report.h"
 #include "hw/acpi/acpi.h"
audio/alsaaudio.c +1 -1
index 362a227..385487a 100644
@@ -26,7 +26,7 @@
 #include "qemu-common.h"
 #include "qemu/main-loop.h"
 #include "audio.h"
-#include "trace.h"
+#include <trace.h>
 
 #if QEMU_GNUC_PREREQ(4, 3)
 #pragma GCC diagnostic ignored "-Waddress"
audio/ossaudio.c +1 -1
index 6c69622..34ab6eb 100644
@@ -28,7 +28,7 @@
 #include "qemu/main-loop.h"
 #include "qemu/host-utils.h"
 #include "audio.h"
-#include "trace.h"
+#include <trace.h>
 
 #define AUDIO_CAP "oss"
 #include "audio_int.h"
backends/hostmem.c +1 -1
index f610936..fad0dad 100644
@@ -14,7 +14,7 @@
 #include "sysemu/hostmem.h"
 #include "hw/boards.h"
 #include "qapi/error.h"
-#include "qapi/qapi-builtin-visit.h"
+#include <qapi/qapi-builtin-visit.h>
 #include "qapi/visitor.h"
 #include "qemu/config-file.h"
 #include "qom/object_interfaces.h"
balloon.c +2 -2
index 6bf0a96..af6952f 100644
@@ -29,9 +29,9 @@
 #include "exec/cpu-common.h"
 #include "sysemu/kvm.h"
 #include "sysemu/balloon.h"
-#include "trace-root.h"
+#include <trace-root.h>
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qapi/qmp/qerror.h"
 
 static QEMUBalloonEvent *balloon_event_fn;
block.c +3 -3
index 75a9fd4..ad550c7 100644
@@ -23,19 +23,19 @@
  */
 
 #include "qemu/osdep.h"
-#include "block/trace.h"
+#include <block/trace.h>
 #include "block/block_int.h"
 #include "block/blockjob.h"
 #include "block/nbd.h"
 #include "qemu/error-report.h"
-#include "module_block.h"
+#include <module_block.h>
 #include "qemu/module.h"
 #include "qapi/error.h"
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qjson.h"
 #include "qapi/qmp/qstring.h"
 #include "qapi/qobject-output-visitor.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-visit-block-core.h>
 #include "sysemu/block-backend.h"
 #include "sysemu/sysemu.h"
 #include "qemu/notify.h"
block/backup.c +1 -1
index 4a16a37..43350e9 100644
@@ -13,7 +13,7 @@
 
 #include "qemu/osdep.h"
 
-#include "trace.h"
+#include <trace.h>
 #include "block/block.h"
 #include "block/block_int.h"
 #include "block/blockjob_int.h"
block/block-backend.c +2 -2
index f2e0a85..910ea31 100644
@@ -18,10 +18,10 @@
 #include "sysemu/blockdev.h"
 #include "sysemu/sysemu.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-block.h"
+#include <qapi/qapi-events-block.h>
 #include "qemu/id.h"
 #include "qemu/option.h"
-#include "trace.h"
+#include <trace.h>
 #include "migration/misc.h"
 
 /* Number of coroutines to reserve per attached device model */
block/commit.c +1 -1
index 1943c9c..4fb7960 100644
@@ -14,7 +14,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/cutils.h"
-#include "trace.h"
+#include <trace.h>
 #include "block/block_int.h"
 #include "block/blockjob_int.h"
 #include "qapi/error.h"
block/create.c +1 -1
index 8bd8a03..26db81b 100644
@@ -24,7 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "block/block_int.h"
-#include "qapi/qapi-commands-block-core.h"
+#include <qapi/qapi-commands-block-core.h>
 #include "qapi/error.h"
 
 typedef struct BlockdevCreateCo {
block/crypto.c +1 -1
index e6095e7..b73be3e 100644
@@ -24,7 +24,7 @@
 #include "sysemu/block-backend.h"
 #include "crypto/block.h"
 #include "qapi/opts-visitor.h"
-#include "qapi/qapi-visit-crypto.h"
+#include <qapi/qapi-visit-crypto.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qobject-input-visitor.h"
 #include "qapi/error.h"
block/dirty-bitmap.c +1 -1
index 909f051..01b18cc 100644
@@ -24,7 +24,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu-common.h"
-#include "trace.h"
+#include <trace.h>
 #include "block/block_int.h"
 #include "block/blockjob.h"
 
block/file-posix.c +1 -1
index d7fb772..197d904 100644
@@ -29,7 +29,7 @@
 #include "block/block_int.h"
 #include "qemu/module.h"
 #include "qemu/option.h"
-#include "trace.h"
+#include <trace.h>
 #include "block/thread-pool.h"
 #include "qemu/iov.h"
 #include "block/raw-aio.h"
block/file-win32.c +1 -1
index 2e2f746..bf6a314 100644
@@ -29,7 +29,7 @@
 #include "qemu/module.h"
 #include "qemu/option.h"
 #include "block/raw-aio.h"
-#include "trace.h"
+#include <trace.h>
 #include "block/thread-pool.h"
 #include "qemu/iov.h"
 #include "qapi/qmp/qdict.h"
block/io.c +1 -1
index 2b09c65..ff77c7d 100644
@@ -23,7 +23,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "trace.h"
+#include <trace.h>
 #include "sysemu/block-backend.h"
 #include "block/aio-wait.h"
 #include "block/blockjob.h"
block/iscsi.c +1 -1
index a82170f..f133962 100644
@@ -38,7 +38,7 @@
 #include "qemu/option.h"
 #include "qemu/uuid.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qstring.h"
 #include "crypto/secret.h"
block/mirror.c +1 -1
index f5bf620..781db39 100644
@@ -13,7 +13,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/cutils.h"
-#include "trace.h"
+#include <trace.h>
 #include "block/blockjob_int.h"
 #include "block/block_int.h"
 #include "sysemu/block-backend.h"
block/nbd.c +1 -1
index d4e4172..4f4c6e7 100644
@@ -33,7 +33,7 @@
 #include "block/block_int.h"
 #include "qemu/module.h"
 #include "qemu/option.h"
-#include "qapi/qapi-visit-sockets.h"
+#include <qapi/qapi-visit-sockets.h>
 #include "qapi/qobject-input-visitor.h"
 #include "qapi/qobject-output-visitor.h"
 #include "qapi/qmp/qdict.h"
block/nfs.c +2 -2
index 2577df4..261c6cd 100644
@@ -29,13 +29,13 @@
 #include "qemu/error-report.h"
 #include "qapi/error.h"
 #include "block/block_int.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/iov.h"
 #include "qemu/option.h"
 #include "qemu/uri.h"
 #include "qemu/cutils.h"
 #include "sysemu/sysemu.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-visit-block-core.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qstring.h"
 #include "qapi/qobject-input-visitor.h"
block/nvme.c +1 -1
index 8bca57a..f7c170d 100644
@@ -21,7 +21,7 @@
 #include "qemu/option.h"
 #include "qemu/vfio-helpers.h"
 #include "block/block_int.h"
-#include "trace.h"
+#include <trace.h>
 
 #include "block/nvme.h"
 
block/qapi.c +2 -2
index 4c9923d..e479276 100644
@@ -28,9 +28,9 @@
 #include "block/throttle-groups.h"
 #include "block/write-threshold.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-block-core.h"
+#include <qapi/qapi-commands-block-core.h>
 #include "qapi/qobject-output-visitor.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-visit-block-core.h>
 #include "qapi/qmp/qbool.h"
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qlist.h"
block/qcow2-cache.c +1 -1
index d9dafa3..af1fcee 100644
@@ -26,7 +26,7 @@
 #include "block/block_int.h"
 #include "qemu-common.h"
 #include "qcow2.h"
-#include "trace.h"
+#include <trace.h>
 
 typedef struct Qcow2CachedTable {
     int64_t  offset;
block/qcow2-cluster.c +1 -1
index 1aee726..cb33eea 100644
@@ -30,7 +30,7 @@
 #include "block/block_int.h"
 #include "block/qcow2.h"
 #include "qemu/bswap.h"
-#include "trace.h"
+#include <trace.h>
 
 int qcow2_shrink_l1_table(BlockDriverState *bs, uint64_t exact_size)
 {
block/qcow2.c +3 -3
index 7472af6..7a3e8ce 100644
@@ -30,15 +30,15 @@
 #include "block/qcow2.h"
 #include "qemu/error-report.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-block-core.h"
+#include <qapi/qapi-events-block-core.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qstring.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/option_int.h"
 #include "qemu/cutils.h"
 #include "qemu/bswap.h"
 #include "qapi/qobject-input-visitor.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-visit-block-core.h>
 #include "block/crypto.h"
 
 /*
block/qed-l2-cache.c +1 -1
index b548362..01e211a 100644
@@ -51,7 +51,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "trace.h"
+#include <trace.h>
 #include "qed.h"
 
 /* Each L2 holds 2GB so this let's us fully cache a 100GB disk */
block/qed-table.c +1 -1
index 7df5680..e373e28 100644
@@ -13,7 +13,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/sockets.h" /* for EINPROGRESS on Windows */
 #include "qed.h"
 #include "qemu/bswap.h"
block/qed.c +1 -1
index 5e6a6bf..df987f4 100644
@@ -17,7 +17,7 @@
 #include "qemu/timer.h"
 #include "qemu/bswap.h"
 #include "qemu/option.h"
-#include "trace.h"
+#include <trace.h>
 #include "qed.h"
 #include "sysemu/block-backend.h"
 
block/quorum.c +1 -1
index 14333c1..6054f3c 100644
@@ -18,7 +18,7 @@
 #include "qemu/option.h"
 #include "block/block_int.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-block.h"
+#include <qapi/qapi-events-block.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qlist.h"
block/rbd.c +1 -1
index 294ed07..246f068 100644
@@ -25,7 +25,7 @@
 #include "qapi/qmp/qjson.h"
 #include "qapi/qmp/qlist.h"
 #include "qapi/qobject-input-visitor.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-visit-block-core.h>
 
 /*
  * When specifying the image filename use:
block/sheepdog.c +2 -2
index 8680b29..2e51e7f 100644
@@ -14,8 +14,8 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "qapi/qapi-visit-sockets.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-visit-sockets.h>
+#include <qapi/qapi-visit-block-core.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qobject-input-visitor.h"
 #include "qapi/qobject-output-visitor.h"
block/ssh.c +2 -2
index ab3acf0..396ac4a 100644
@@ -34,8 +34,8 @@
 #include "qemu/cutils.h"
 #include "qemu/sockets.h"
 #include "qemu/uri.h"
-#include "qapi/qapi-visit-sockets.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-visit-sockets.h>
+#include <qapi/qapi-visit-block-core.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qstring.h"
 #include "qapi/qobject-input-visitor.h"
block/stream.c +1 -1
index 499cdac..7817b12 100644
@@ -12,7 +12,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "trace.h"
+#include <trace.h>
 #include "block/block_int.h"
 #include "block/blockjob_int.h"
 #include "qapi/error.h"
block/throttle-groups.c +1 -1
index 36cc043..71240e7 100644
@@ -30,7 +30,7 @@
 #include "qemu/thread.h"
 #include "sysemu/qtest.h"
 #include "qapi/error.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-visit-block-core.h>
 #include "qom/object.h"
 #include "qom/object_interfaces.h"
 
block/vxhs.c +1 -1
index 75cc6c8..e47e7c0 100644
@@ -15,7 +15,7 @@
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qstring.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/uri.h"
 #include "qapi/error.h"
 #include "qemu/uuid.h"
block/write-threshold.c +2 -2
index 1d48fc2..f86b39d 100644
@@ -16,8 +16,8 @@
 #include "block/write-threshold.h"
 #include "qemu/notify.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-block-core.h"
-#include "qapi/qapi-events-block-core.h"
+#include <qapi/qapi-commands-block-core.h>
+#include <qapi/qapi-events-block-core.h>
 
 uint64_t bdrv_write_threshold_get(const BlockDriverState *bs)
 {
blockdev-nbd.c +1 -1
index 65a8473..ede5abc 100644
@@ -14,7 +14,7 @@
 #include "sysemu/block-backend.h"
 #include "hw/block/block.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-block.h"
+#include <qapi/qapi-commands-block.h>
 #include "sysemu/sysemu.h"
 #include "block/nbd.h"
 #include "io/channel-socket.h"
blockdev.c +4 -4
index 1fbfd3a..e22113a 100644
@@ -40,9 +40,9 @@
 #include "qemu/error-report.h"
 #include "qemu/option.h"
 #include "qemu/config-file.h"
-#include "qapi/qapi-commands-block.h"
-#include "qapi/qapi-commands-transaction.h"
-#include "qapi/qapi-visit-block-core.h"
+#include <qapi/qapi-commands-block.h>
+#include <qapi/qapi-commands-transaction.h>
+#include <qapi/qapi-visit-block-core.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qnum.h"
 #include "qapi/qmp/qstring.h"
@@ -53,7 +53,7 @@
 #include "sysemu/sysemu.h"
 #include "sysemu/iothread.h"
 #include "block/block_int.h"
-#include "block/trace.h"
+#include <block/trace.h>
 #include "sysemu/arch_init.h"
 #include "sysemu/qtest.h"
 #include "qemu/cutils.h"
blockjob.c +1 -1
index 801d29d..a03bd92 100644
@@ -30,7 +30,7 @@
 #include "block/block_int.h"
 #include "sysemu/block-backend.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-block-core.h"
+#include <qapi/qapi-events-block-core.h>
 #include "qapi/qmp/qerror.h"
 #include "qemu/coroutine.h"
 #include "qemu/id.h"
bsd-user/main.c +1 -1
index efef5ff..e743a19 100644
@@ -17,7 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "qemu/osdep.h"
-#include "qemu-version.h"
+#include <qemu-version.h>
 #include <machine/trap.h>
 
 #include "qapi/error.h"
chardev/char-ringbuf.c +1 -1
index 87832e2..397cd68 100644
@@ -25,7 +25,7 @@
 #include "qemu/osdep.h"
 #include "chardev/char.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-char.h"
+#include <qapi/qapi-commands-char.h>
 #include "qemu/base64.h"
 #include "qemu/option.h"
 
chardev/char-socket.c +1 -1
index a220803..6dcf4bd 100644
@@ -31,7 +31,7 @@
 #include "qemu/option.h"
 #include "qapi/error.h"
 #include "qapi/clone-visitor.h"
-#include "qapi/qapi-visit-sockets.h"
+#include <qapi/qapi-visit-sockets.h>
 
 #include "chardev/char-io.h"
 
chardev/char.c +1 -1
index 5d7b079..d6201ff 100644
@@ -30,7 +30,7 @@
 #include "qemu/error-report.h"
 #include "chardev/char.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-char.h"
+#include <qapi/qapi-commands-char.h>
 #include "qapi/qmp/qerror.h"
 #include "sysemu/replay.h"
 #include "qemu/help_option.h"
chardev/spice.c +1 -1
index e66e3ad..eb9ad77 100644
@@ -1,5 +1,5 @@
 #include "qemu/osdep.h"
-#include "trace.h"
+#include <trace.h>
 #include "ui/qemu-spice.h"
 #include "chardev/char.h"
 #include "qapi/error.h"
chardev/wctablet.c +1 -1
index 969d014..4cf594c 100644
@@ -31,7 +31,7 @@
 #include "chardev/char-serial.h"
 #include "ui/console.h"
 #include "ui/input.h"
-#include "trace.h"
+#include <trace.h>
 
 
 #define WC_OUTPUT_BUF_MAX_LEN 512
cpus.c +2 -2
index c652da8..2d000fa 100644
@@ -27,8 +27,8 @@
 #include "cpu.h"
 #include "monitor/monitor.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
-#include "qapi/qapi-events-run-state.h"
+#include <qapi/qapi-commands-misc.h>
+#include <qapi/qapi-events-run-state.h>
 #include "qapi/qmp/qerror.h"
 #include "qemu/error-report.h"
 #include "sysemu/sysemu.h"
crypto/secret.c +1 -1
index 388abd7..0c7034b 100644
@@ -24,7 +24,7 @@
 #include "qapi/error.h"
 #include "qom/object_interfaces.h"
 #include "qemu/base64.h"
-#include "trace.h"
+#include <trace.h>
 
 
 static void
crypto/tlscreds.c +1 -1
index 3cd4103..2643c72 100644
@@ -21,7 +21,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "crypto/tlscredspriv.h"
-#include "trace.h"
+#include <trace.h>
 
 #define DH_BITS 2048
 
crypto/tlscredsanon.c +1 -1
index 1464220..e946708 100644
@@ -23,7 +23,7 @@
 #include "crypto/tlscredspriv.h"
 #include "qapi/error.h"
 #include "qom/object_interfaces.h"
-#include "trace.h"
+#include <trace.h>
 
 
 #ifdef CONFIG_GNUTLS
crypto/tlscredsx509.c +1 -1
index 50eb54f..a32571a 100644
@@ -24,7 +24,7 @@
 #include "crypto/secret.h"
 #include "qapi/error.h"
 #include "qom/object_interfaces.h"
-#include "trace.h"
+#include <trace.h>
 
 
 #ifdef CONFIG_GNUTLS
crypto/tlssession.c +1 -1
index 96a02de..359050e 100644
@@ -24,7 +24,7 @@
 #include "crypto/tlscredsx509.h"
 #include "qapi/error.h"
 #include "qemu/acl.h"
-#include "trace.h"
+#include <trace.h>
 
 #ifdef CONFIG_GNUTLS
 
dma-helpers.c +1 -1
index 2d7e02d..0c3e1db 100644
@@ -10,7 +10,7 @@
 #include "qemu/osdep.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/dma.h"
-#include "trace-root.h"
+#include <trace-root.h>
 #include "qemu/thread.h"
 #include "qemu/main-loop.h"
 
dump.c +2 -2
index 097e60b..3f3aef4 100644
@@ -23,8 +23,8 @@
 #include "sysemu/memory_mapping.h"
 #include "sysemu/cpus.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
-#include "qapi/qapi-events-misc.h"
+#include <qapi/qapi-commands-misc.h>
+#include <qapi/qapi-events-misc.h>
 #include "qapi/qmp/qerror.h"
 #include "qemu/error-report.h"
 #include "hw/misc/vmcoreinfo.h"
exec.c +1 -1
index a9181e6..07ee7e6 100644
@@ -46,7 +46,7 @@
 #include "sysemu/hw_accel.h"
 #include "exec/address-spaces.h"
 #include "sysemu/xen-mapcache.h"
-#include "trace-root.h"
+#include <trace-root.h>
 
 #ifdef CONFIG_FALLOCATE_PUNCH_HOLE
 #include <linux/falloc.h>
gdbstub.c +1 -1
index f1d5148..4d1bfd8 100644
@@ -21,7 +21,7 @@
 #include "qemu/error-report.h"
 #include "qemu/cutils.h"
 #include "cpu.h"
-#include "trace-root.h"
+#include <trace-root.h>
 #ifdef CONFIG_USER_ONLY
 #include "qemu.h"
 #else
hmp.c +10 -10
index a277517..461436b 100644
@@ -28,16 +28,16 @@
 #include "monitor/qdev.h"
 #include "qapi/error.h"
 #include "qapi/opts-visitor.h"
-#include "qapi/qapi-builtin-visit.h"
-#include "qapi/qapi-commands-block.h"
-#include "qapi/qapi-commands-char.h"
-#include "qapi/qapi-commands-migration.h"
-#include "qapi/qapi-commands-misc.h"
-#include "qapi/qapi-commands-net.h"
-#include "qapi/qapi-commands-rocker.h"
-#include "qapi/qapi-commands-run-state.h"
-#include "qapi/qapi-commands-tpm.h"
-#include "qapi/qapi-commands-ui.h"
+#include <qapi/qapi-builtin-visit.h>
+#include <qapi/qapi-commands-block.h>
+#include <qapi/qapi-commands-char.h>
+#include <qapi/qapi-commands-migration.h>
+#include <qapi/qapi-commands-misc.h>
+#include <qapi/qapi-commands-net.h>
+#include <qapi/qapi-commands-rocker.h>
+#include <qapi/qapi-commands-run-state.h>
+#include <qapi/qapi-commands-tpm.h>
+#include <qapi/qapi-commands-ui.h>
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qerror.h"
 #include "qapi/string-input-visitor.h"
hw/9pfs/9p.c +1 -1
index 48fa48e..6337ea7 100644
@@ -22,7 +22,7 @@
 #include "fsdev/qemu-fsdev.h"
 #include "9p-xattr.h"
 #include "coth.h"
-#include "trace.h"
+#include <trace.h>
 #include "migration/blocker.h"
 #include "sysemu/qtest.h"
 
hw/acpi/core.c +2 -2
index b8d3901..0a60445 100644
@@ -27,8 +27,8 @@
 #include "qemu/config-file.h"
 #include "qapi/error.h"
 #include "qapi/opts-visitor.h"
-#include "qapi/qapi-events-run-state.h"
-#include "qapi/qapi-visit-misc.h"
+#include <qapi/qapi-events-run-state.h>
+#include <qapi/qapi-visit-misc.h>
 #include "qemu/error-report.h"
 #include "qemu/option.h"
 
hw/acpi/cpu.c +2 -2
index 5ae595e..9e5dabb 100644
@@ -2,8 +2,8 @@
 #include "hw/boards.h"
 #include "hw/acpi/cpu.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-misc.h"
-#include "trace.h"
+#include <qapi/qapi-events-misc.h>
+#include <trace.h>
 #include "sysemu/numa.h"
 
 #define ACPI_CPU_HOTPLUG_REG_LEN 12
hw/acpi/memory_hotplug.c +2 -2
index 0ff1712..b1c0934 100644
@@ -4,9 +4,9 @@
 #include "hw/mem/pc-dimm.h"
 #include "hw/boards.h"
 #include "hw/qdev-core.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
-#include "qapi/qapi-events-misc.h"
+#include <qapi/qapi-events-misc.h>
 
 #define MEMORY_SLOTS_NUMBER          "MDNR"
 #define MEMORY_HOTPLUG_IO_REGION     "HPMR"
hw/acpi/tco.c +1 -1
index a914396..9f3bdcd 100644
@@ -12,7 +12,7 @@
 #include "hw/i386/ich9.h"
 
 #include "hw/acpi/tco.h"
-#include "trace.h"
+#include <trace.h>
 
 //#define DEBUG
 
hw/acpi/vmgenid.c +1 -1
index d78b579..b84c109 100644
@@ -12,7 +12,7 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "hw/acpi/acpi.h"
 #include "hw/acpi/aml-build.h"
 #include "hw/acpi/vmgenid.h"
hw/alpha/pci.c +1 -1
index 8dde637..b6e7333 100644
@@ -11,7 +11,7 @@
 #include "alpha_sys.h"
 #include "qemu/log.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 
 /* Fallback for unassigned PCI I/O operations.  Avoids MCHK.  */
hw/arm/iotkit.c +1 -1
index c5f0a5b..1d9e2f9 100644
@@ -12,7 +12,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 #include "hw/registerfields.h"
 #include "hw/arm/iotkit.h"
hw/arm/virt-acpi-build.c +1 -1
index c7c6a57..4c34884 100644
@@ -30,7 +30,7 @@
 #include "qapi/error.h"
 #include "qemu-common.h"
 #include "qemu/bitmap.h"
-#include "trace.h"
+#include <trace.h>
 #include "qom/cpu.h"
 #include "target/arm/cpu.h"
 #include "hw/acpi/acpi-defs.h"
hw/audio/cs4231.c +1 -1
index 30690f9..7e69d44 100644
@@ -24,7 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 
 /*
  * In addition to Crystal CS4231 there is a DMA controller on Sparc.
hw/audio/milkymist-ac97.c +1 -1
index bc8db71..d98b862 100644
@@ -24,7 +24,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "audio/audio.h"
 #include "qemu/error-report.h"
 
hw/block/block.c +1 -1
index b91e2b6..9bd7d8f 100644
@@ -12,7 +12,7 @@
 #include "sysemu/block-backend.h"
 #include "hw/block/block.h"
 #include "qapi/error.h"
-#include "qapi/qapi-types-block.h"
+#include <qapi/qapi-types-block.h>
 #include "qemu/error-report.h"
 
 void blkconf_serial(BlockConf *conf, char **serial)
hw/block/dataplane/virtio-blk.c +1 -1
index 101f32c..ab2b088 100644
@@ -14,7 +14,7 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/iov.h"
 #include "qemu/thread.h"
 #include "qemu/error-report.h"
hw/block/hd-geometry.c +2 -2
index 79384a2..2c732ee 100644
@@ -32,10 +32,10 @@
 
 #include "qemu/osdep.h"
 #include "sysemu/block-backend.h"
-#include "qapi/qapi-types-block.h"
+#include <qapi/qapi-types-block.h>
 #include "qemu/bswap.h"
 #include "hw/block/block.h"
-#include "trace.h"
+#include <trace.h>
 
 struct partition {
         uint8_t boot_ind;           /* 0x80 - active */
hw/block/nvme.c +1 -1
index 85d2406..f48b1b9 100644
@@ -35,7 +35,7 @@
 #include "sysemu/block-backend.h"
 
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 #include "nvme.h"
 
 #define NVME_GUEST_ERR(trace, fmt, ...) \
hw/block/virtio-blk.c +1 -1
index b1532e4..4f6dda3 100644
@@ -16,7 +16,7 @@
 #include "qemu-common.h"
 #include "qemu/iov.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/block/block.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/blockdev.h"
hw/block/xen_disk.c +1 -1
index f74fcd4..5fcd119 100644
@@ -32,7 +32,7 @@
 #include "qapi/error.h"
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qstring.h"
-#include "trace.h"
+#include <trace.h>
 
 /* ------------------------------------------------------------- */
 
hw/char/cmsdk-apb-uart.c +1 -1
index 1ad1e14..b252129 100644
@@ -18,7 +18,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 #include "hw/registerfields.h"
 #include "chardev/char-fe.h"
hw/char/escc.c +1 -1
index 628f5f8..bb7dd14 100644
@@ -27,7 +27,7 @@
 #include "hw/sysbus.h"
 #include "hw/char/escc.h"
 #include "ui/console.h"
-#include "trace.h"
+#include <trace.h>
 
 /*
  * Chipset docs:
hw/char/grlib_apbuart.c +1 -1
index bac11be..c27c344 100644
@@ -26,7 +26,7 @@
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
 
-#include "trace.h"
+#include <trace.h>
 
 #define UART_REG_SIZE 20     /* Size of memory mapped registers */
 
hw/char/lm32_juart.c +1 -1
index d75c835..ca59c87 100644
@@ -20,7 +20,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "chardev/char-fe.h"
 
 #include "hw/char/lm32_juart.h"
hw/char/lm32_uart.c +1 -1
index c4a3b9b..91b175a 100644
@@ -25,7 +25,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "chardev/char-fe.h"
 #include "qemu/error-report.h"
 
hw/char/milkymist-uart.c +1 -1
index 548ee27..19e4072 100644
@@ -24,7 +24,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "chardev/char-fe.h"
 #include "qemu/error-report.h"
 
hw/char/pl011.c +1 -1
index 2aa277f..950adc5 100644
@@ -11,7 +11,7 @@
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_PL011 "pl011"
 #define PL011(obj) OBJECT_CHECK(PL011State, (obj), TYPE_PL011)
hw/char/virtio-console.c +2 -2
index 679a824..b738a71 100644
@@ -13,10 +13,10 @@
 #include "qemu/osdep.h"
 #include "chardev/char-fe.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/virtio/virtio-serial.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-char.h"
+#include <qapi/qapi-events-char.h>
 
 #define TYPE_VIRTIO_CONSOLE_SERIAL_PORT "virtserialport"
 #define VIRTIO_CONSOLE(obj) \
hw/char/virtio-serial-bus.c +1 -1
index 9470bd7..0fffd55 100644
@@ -25,7 +25,7 @@
 #include "qemu/error-report.h"
 #include "qemu/queue.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/virtio/virtio-serial.h"
 #include "hw/virtio/virtio-access.h"
 
hw/core/machine.c +1 -1
index 5e2bbcd..d998c0c 100644
@@ -13,7 +13,7 @@
 #include "qemu/osdep.h"
 #include "hw/boards.h"
 #include "qapi/error.h"
-#include "qapi/qapi-visit-common.h"
+#include <qapi/qapi-visit-common.h>
 #include "qapi/visitor.h"
 #include "hw/sysbus.h"
 #include "sysemu/sysemu.h"
hw/core/qdev.c +1 -1
index f6f9247..63561a4 100644
@@ -29,7 +29,7 @@
 #include "hw/qdev.h"
 #include "sysemu/sysemu.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-misc.h"
+#include <qapi/qapi-events-misc.h>
 #include "qapi/qmp/qerror.h"
 #include "qapi/visitor.h"
 #include "qemu/error-report.h"
hw/display/cirrus_vga.c +1 -1
index 138ae96..bcbffa5 100644
@@ -28,7 +28,7 @@
  */
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
 #include "ui/pixel_ops.h"
hw/display/g364fb.c +1 -1
index 3d75394..3b269d5 100644
@@ -22,7 +22,7 @@
 #include "qemu/error-report.h"
 #include "ui/console.h"
 #include "ui/pixel_ops.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 
 typedef struct G364State {
hw/display/jazz_led.c +1 -1
index 3c97d56..3fd5d25 100644
@@ -26,7 +26,7 @@
 #include "qemu-common.h"
 #include "ui/console.h"
 #include "ui/pixel_ops.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 
 typedef enum {
hw/display/milkymist-tmu2.c +1 -1
index 3ce44fd..4c35c6c 100644
@@ -27,7 +27,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 #include "qemu/error-report.h"
 #include "qapi/error.h"
hw/display/milkymist-vgafb.c +1 -1
index 177fdac..150aab8 100644
@@ -25,7 +25,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "ui/console.h"
 #include "framebuffer.h"
 #include "ui/pixel_ops.h"
hw/display/qxl-render.c +1 -1
index e7ac4f8..6717f74 100644
@@ -21,7 +21,7 @@
 
 #include "qemu/osdep.h"
 #include "qxl.h"
-#include "trace.h"
+#include <trace.h>
 
 static void qxl_blit(PCIQXLDevice *qxl, QXLRect *rect)
 {
hw/display/qxl.c +1 -1
index a71714c..86fbacc 100644
@@ -28,7 +28,7 @@
 #include "qemu/atomic.h"
 #include "sysemu/sysemu.h"
 #include "migration/blocker.h"
-#include "trace.h"
+#include <trace.h>
 
 #include "qxl.h"
 
hw/display/sii9022.c +1 -1
index eaf11a6..62d6645 100644
@@ -17,7 +17,7 @@
 #include "qemu-common.h"
 #include "hw/i2c/i2c.h"
 #include "hw/i2c/i2c-ddc.h"
-#include "trace.h"
+#include <trace.h>
 
 #define SII9022_SYS_CTRL_DATA 0x1a
 #define SII9022_SYS_CTRL_PWR_DWN 0x10
hw/display/vga.c +1 -1
index 7218133..295d62d 100644
@@ -31,7 +31,7 @@
 #include "ui/pixel_ops.h"
 #include "qemu/timer.h"
 #include "hw/xen/xen.h"
-#include "trace.h"
+#include <trace.h>
 
 //#define DEBUG_VGA_MEM
 //#define DEBUG_VGA_REG
hw/display/virtio-gpu-3d.c +1 -1
index 3558f38..9c24f4b 100644
@@ -14,7 +14,7 @@
 #include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu/iov.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/virtio/virtio.h"
 #include "hw/virtio/virtio-gpu.h"
 
hw/display/virtio-gpu.c +1 -1
index 2dd3c34..d4f0792 100644
@@ -15,7 +15,7 @@
 #include "qemu-common.h"
 #include "qemu/iov.h"
 #include "ui/console.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/virtio/virtio.h"
 #include "hw/virtio/virtio-gpu.h"
 #include "hw/virtio/virtio-bus.h"
hw/display/vmware_vga.c +1 -1
index bd3e8b3..66814b4 100644
@@ -25,7 +25,7 @@
 #include "qapi/error.h"
 #include "hw/hw.h"
 #include "hw/loader.h"
-#include "trace.h"
+#include <trace.h>
 #include "ui/vnc.h"
 #include "hw/pci/pci.h"
 
hw/display/xenfb.c +1 -1
index f5afcc0..2e89a6e 100644
@@ -36,7 +36,7 @@
 #include <xen/io/kbdif.h>
 #include <xen/io/protocols.h>
 
-#include "trace.h"
+#include <trace.h>
 
 #ifndef BTN_LEFT
 #define BTN_LEFT 0x110 /* from <linux/input.h> */
hw/dma/i8257.c +1 -1
index bd23e89..316beae 100644
@@ -26,7 +26,7 @@
 #include "hw/isa/isa.h"
 #include "hw/isa/i8257.h"
 #include "qemu/main-loop.h"
-#include "trace.h"
+#include <trace.h>
 
 #define I8257(obj) \
     OBJECT_CHECK(I8257State, (obj), TYPE_I8257)
hw/dma/rc4030.c +1 -1
index 5d4833e..02c2924 100644
@@ -29,7 +29,7 @@
 #include "qemu/timer.h"
 #include "qemu/log.h"
 #include "exec/address-spaces.h"
-#include "trace.h"
+#include <trace.h>
 
 /********************************************************/
 /* rc4030 emulation                                     */
hw/dma/sparc32_dma.c +1 -1
index 7b00a27..9ef6c23 100644
@@ -32,7 +32,7 @@
 #include "hw/sysbus.h"
 #include "sysemu/dma.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 
 /*
  * This is the DMA controller part of chip STP2000 (Master I/O), also
hw/hppa/pci.c +1 -1
index 7664202..268ed95 100644
@@ -8,7 +8,7 @@
 #include "hppa_sys.h"
 #include "qemu/log.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 
 /* Fallback for unassigned PCI I/O operations.  Avoids MCHK.  */
hw/i386/amd_iommu.c +1 -1
index 63d46ff..60418f3 100644
@@ -26,7 +26,7 @@
 #include "amd_iommu.h"
 #include "qapi/error.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 
 /* used AMD-Vi MMIO registers */
 const char *amdvi_mmio_low[] = {
hw/i386/intel_iommu.c +1 -1
index fb31de9..7409bf6 100644
@@ -35,7 +35,7 @@
 #include "sysemu/kvm.h"
 #include "hw/i386/apic_internal.h"
 #include "kvm_i386.h"
-#include "trace.h"
+#include <trace.h>
 
 static void vtd_define_quad(IntelIOMMUState *s, hwaddr addr, uint64_t val,
                             uint64_t wmask, uint64_t w1cmask)
hw/i386/pc.c +1 -1
index 35fcb6e..65d78e4 100644
@@ -67,7 +67,7 @@
 #include "acpi-build.h"
 #include "hw/mem/pc-dimm.h"
 #include "qapi/error.h"
-#include "qapi/qapi-visit-common.h"
+#include <qapi/qapi-visit-common.h>
 #include "qapi/visitor.h"
 #include "qom/cpu.h"
 #include "hw/nmi.h"
hw/i386/vmport.c +1 -1
index 116aa09..8c101c7 100644
@@ -28,7 +28,7 @@
 #include "sysemu/hw_accel.h"
 #include "hw/qdev.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 #define VMPORT_CMD_GETVERSION 0x0a
 #define VMPORT_CMD_GETRAMSIZE 0x14
hw/i386/x86-iommu.c +1 -1
index 8a01a2d..6ea86db 100644
@@ -24,7 +24,7 @@
 #include "hw/i386/pc.h"
 #include "qapi/error.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 
 void x86_iommu_iec_register_notifier(X86IOMMUState *iommu,
                                      iec_notify_fn fn, void *data)
hw/i386/xen/xen-hvm.c +2 -2
index f24b7d4..c163874 100644
@@ -17,11 +17,11 @@
 #include "hw/xen/xen_common.h"
 #include "hw/xen/xen_backend.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qemu/error-report.h"
 #include "qemu/range.h"
 #include "sysemu/xen-mapcache.h"
-#include "trace.h"
+#include <trace.h>
 #include "exec/address-spaces.h"
 
 #include <xen/hvm/ioreq.h>
hw/i386/xen/xen-mapcache.c +1 -1
index efa35dc..c71a23d 100644
@@ -20,7 +20,7 @@
 #include <xen/hvm/params.h>
 
 #include "sysemu/xen-mapcache.h"
-#include "trace.h"
+#include <trace.h>
 
 
 //#define MAPCACHE_DEBUG
hw/i386/xen/xen_platform.c +1 -1
index deb7a0c..2a8ffc5 100644
@@ -31,7 +31,7 @@
 #include "hw/irq.h"
 #include "hw/xen/xen_common.h"
 #include "hw/xen/xen_backend.h"
-#include "trace.h"
+#include <trace.h>
 #include "exec/address-spaces.h"
 #include "sysemu/block-backend.h"
 #include "qemu/error-report.h"
hw/i386/xen/xen_pvdevice.c +1 -1
index f748823..e36df94 100644
@@ -33,7 +33,7 @@
 #include "qapi/error.h"
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_XEN_PV_DEVICE  "xen-pvdevice"
 
hw/ide/ahci-allwinner.c +1 -1
index c3f1604..3d7ad33 100644
@@ -23,7 +23,7 @@
 #include "hw/ide/internal.h"
 #include "hw/ide/ahci_internal.h"
 
-#include "trace.h"
+#include <trace.h>
 
 #define ALLWINNER_AHCI_BISTAFR    ((0xa0 - ALLWINNER_AHCI_MMIO_OFF) / 4)
 #define ALLWINNER_AHCI_BISTCR     ((0xa4 - ALLWINNER_AHCI_MMIO_OFF) / 4)
hw/ide/ahci.c +1 -1
index e22d7be..aeb2e60 100644
@@ -33,7 +33,7 @@
 #include "hw/ide/pci.h"
 #include "hw/ide/ahci_internal.h"
 
-#include "trace.h"
+#include <trace.h>
 
 static void check_cmd(AHCIState *s, int port);
 static int handle_cmd(AHCIState *s, int port, uint8_t slot);
hw/ide/atapi.c +1 -1
index c0509c8..de901b1 100644
@@ -27,7 +27,7 @@
 #include "hw/ide/internal.h"
 #include "hw/scsi/scsi.h"
 #include "sysemu/block-backend.h"
-#include "trace.h"
+#include <trace.h>
 
 #define ATAPI_SECTOR_BITS (2 + BDRV_SECTOR_BITS)
 #define ATAPI_SECTOR_SIZE (1 << ATAPI_SECTOR_BITS)
hw/ide/cmd646.c +1 -1
index 65aff51..fbbf287 100644
@@ -31,7 +31,7 @@
 #include "sysemu/dma.h"
 
 #include "hw/ide/pci.h"
-#include "trace.h"
+#include <trace.h>
 
 /* CMD646 specific */
 #define CFR		0x50
hw/ide/core.c +1 -1
index 139c843..93fbefa 100644
@@ -38,7 +38,7 @@
 #include "qemu/cutils.h"
 
 #include "hw/ide/internal.h"
-#include "trace.h"
+#include <trace.h>
 
 /* These values were based on a Seagate ST3500418AS but have been modified
    to make more sense in QEMU */
hw/ide/pci.c +1 -1
index 1ab0a89..5dc2e05 100644
@@ -30,7 +30,7 @@
 #include "sysemu/dma.h"
 #include "qemu/error-report.h"
 #include "hw/ide/pci.h"
-#include "trace.h"
+#include <trace.h>
 
 #define BMDMA_PAGE_SIZE 4096
 
hw/ide/piix.c +1 -1
index a3afe1f..bb672f3 100644
@@ -33,7 +33,7 @@
 #include "sysemu/dma.h"
 
 #include "hw/ide/pci.h"
-#include "trace.h"
+#include <trace.h>
 
 static uint64_t bmdma_read(void *opaque, hwaddr addr, unsigned size)
 {
hw/ide/sii3112.c +1 -1
index e3896c6..858f1eb 100644
@@ -14,7 +14,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/ide/pci.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_SII3112_PCI "sii3112"
 #define SII3112_PCI(obj) OBJECT_CHECK(SiI3112PCIState, (obj), \
hw/ide/via.c +1 -1
index 117ac4d..ecc469f 100644
@@ -32,7 +32,7 @@
 #include "sysemu/dma.h"
 
 #include "hw/ide/pci.h"
-#include "trace.h"
+#include <trace.h>
 
 static uint64_t bmdma_read(void *opaque, hwaddr addr,
                            unsigned size)
hw/input/adb-kbd.c +1 -1
index 50b6271..6925bca 100644
@@ -27,7 +27,7 @@
 #include "hw/input/adb-keys.h"
 #include "sysemu/sysemu.h"
 #include "adb-internal.h"
-#include "trace.h"
+#include <trace.h>
 
 #define ADB_KEYBOARD(obj) OBJECT_CHECK(KBDState, (obj), TYPE_ADB_KEYBOARD)
 
hw/input/adb-mouse.c +1 -1
index 3ba6027..efea461 100644
@@ -25,7 +25,7 @@
 #include "ui/console.h"
 #include "hw/input/adb.h"
 #include "adb-internal.h"
-#include "trace.h"
+#include <trace.h>
 
 #define ADB_MOUSE(obj) OBJECT_CHECK(MouseState, (obj), TYPE_ADB_MOUSE)
 
hw/input/hid.c +1 -1
index aa4fb82..aa8e3c9 100644
@@ -27,7 +27,7 @@
 #include "ui/console.h"
 #include "qemu/timer.h"
 #include "hw/input/hid.h"
-#include "trace.h"
+#include <trace.h>
 
 #define HID_USAGE_ERROR_ROLLOVER        0x01
 #define HID_USAGE_POSTFAIL              0x02
hw/input/milkymist-softusb.c +1 -1
index ef8f47c..0542a5b 100644
@@ -25,7 +25,7 @@
 #include "qapi/error.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "ui/console.h"
 #include "hw/input/hid.h"
 #include "qemu/error-report.h"
hw/input/ps2.c +1 -1
index 06f5d2a..951e60f 100644
@@ -29,7 +29,7 @@
 #include "ui/input.h"
 #include "sysemu/sysemu.h"
 
-#include "trace.h"
+#include <trace.h>
 
 /* debug PC keyboard */
 //#define DEBUG_KBD
hw/input/virtio-input.c +1 -1
index 0e42f0d..e908555 100644
@@ -7,7 +7,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu/iov.h"
-#include "trace.h"
+#include <trace.h>
 
 #include "hw/qdev.h"
 #include "hw/virtio/virtio.h"
hw/intc/apic.c +1 -1
index 6fda52b..7f3fbf1 100644
@@ -25,7 +25,7 @@
 #include "hw/i386/ioapic.h"
 #include "hw/pci/msi.h"
 #include "qemu/host-utils.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/i386/pc.h"
 #include "hw/i386/apic-msidef.h"
 #include "qapi/error.h"
hw/intc/apic_common.c +1 -1
index 78903ea..b1d790c 100644
@@ -25,7 +25,7 @@
 #include "qapi/visitor.h"
 #include "hw/i386/apic.h"
 #include "hw/i386/apic_internal.h"
-#include "trace.h"
+#include <trace.h>
 #include "sysemu/hax.h"
 #include "sysemu/kvm.h"
 #include "hw/qdev.h"
hw/intc/arm_gic.c +1 -1
index ea0323f..d50f86a 100644
@@ -24,7 +24,7 @@
 #include "qapi/error.h"
 #include "qom/cpu.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 #include "sysemu/kvm.h"
 
 /* #define DEBUG_GIC */
hw/intc/arm_gicv3_cpuif.c +1 -1
index 5cbafaf..bf864df 100644
@@ -15,7 +15,7 @@
 #include "qemu/osdep.h"
 #include "qemu/bitops.h"
 #include "qemu/main-loop.h"
-#include "trace.h"
+#include <trace.h>
 #include "gicv3_internal.h"
 #include "cpu.h"
 
hw/intc/arm_gicv3_dist.c +1 -1
index 93fe936..4068ede 100644
@@ -11,7 +11,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 #include "gicv3_internal.h"
 
 /* The GICD_NSACR registers contain a two bit field for each interrupt which
hw/intc/arm_gicv3_redist.c +1 -1
index 8a8684d..b68ce70 100644
@@ -11,7 +11,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 #include "gicv3_internal.h"
 
 static uint32_t mask_group(GICv3CPUState *cs, MemTxAttrs attrs)
hw/intc/armv7m_nvic.c +1 -1
index c51151f..d8bebba 100644
@@ -21,7 +21,7 @@
 #include "target/arm/cpu.h"
 #include "exec/exec-all.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 /* IRQ number counting:
  *
hw/intc/aspeed_vic.c +1 -1
index 2370e74..0fa8972 100644
@@ -31,7 +31,7 @@
 #include "hw/intc/aspeed_vic.h"
 #include "qemu/bitops.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 #define AVIC_NEW_BASE_OFFSET 0x80
 
hw/intc/grlib_irqmp.c +1 -1
index d6f9cb3..724dfbf 100644
@@ -30,7 +30,7 @@
 
 #include "hw/sparc/grlib.h"
 
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 
 #define IRQMP_MAX_CPU 16
hw/intc/heathrow_pic.c +1 -1
index 393fdd7..4045601 100644
@@ -26,7 +26,7 @@
 #include "hw/hw.h"
 #include "hw/ppc/mac.h"
 #include "hw/intc/heathrow_pic.h"
-#include "trace.h"
+#include <trace.h>
 
 static inline int heathrow_check_irq(HeathrowPICState *pic)
 {
hw/intc/i8259.c +1 -1
index 76f3d87..da6388a 100644
@@ -28,7 +28,7 @@
 #include "qemu/timer.h"
 #include "qemu/log.h"
 #include "hw/isa/i8259_internal.h"
-#include "trace.h"
+#include <trace.h>
 
 /* debug PIC */
 //#define DEBUG_PIC
hw/intc/ioapic.c +1 -1
index 36139a4..a7b2f54 100644
@@ -33,7 +33,7 @@
 #include "target/i386/cpu.h"
 #include "hw/i386/apic-msidef.h"
 #include "hw/i386/x86-iommu.h"
-#include "trace.h"
+#include <trace.h>
 
 #define APIC_DELIVERY_MODE_SHIFT 8
 #define APIC_POLARITY_SHIFT 14
hw/intc/lm32_pic.c +1 -1
index db6c7af..5d09c42 100644
@@ -22,7 +22,7 @@
 #include "hw/hw.h"
 #include "monitor/monitor.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/lm32/lm32_pic.h"
 #include "hw/intc/intc.h"
 
hw/intc/s390_flic.c +1 -1
index 5f8168f..5ff864b 100644
@@ -16,7 +16,7 @@
 #include "hw/s390x/ioinst.h"
 #include "hw/s390x/s390_flic.h"
 #include "hw/s390x/css.h"
-#include "trace.h"
+#include <trace.h>
 #include "cpu.h"
 #include "hw/qdev.h"
 #include "qapi/error.h"
hw/intc/s390_flic_kvm.c +1 -1
index 3f804ad..4cf7be2 100644
@@ -22,7 +22,7 @@
 #include "hw/s390x/s390_flic.h"
 #include "hw/s390x/adapter.h"
 #include "hw/s390x/css.h"
-#include "trace.h"
+#include <trace.h>
 
 #define FLIC_SAVE_INITIAL_SIZE getpagesize()
 #define FLIC_FAILED (-1UL)
hw/intc/slavio_intctl.c +1 -1
index 817e026..042a1fa 100644
@@ -26,7 +26,7 @@
 #include "monitor/monitor.h"
 #include "hw/sysbus.h"
 #include "hw/intc/intc.h"
-#include "trace.h"
+#include <trace.h>
 
 //#define DEBUG_IRQ_COUNT
 
hw/intc/xics.c +1 -1
index e73e623..a249817 100644
@@ -30,7 +30,7 @@
 #include "qemu-common.h"
 #include "cpu.h"
 #include "hw/hw.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/timer.h"
 #include "hw/ppc/xics.h"
 #include "qemu/error-report.h"
hw/intc/xics_kvm.c +1 -1
index 89fb20e..4976b43 100644
@@ -30,7 +30,7 @@
 #include "qemu-common.h"
 #include "cpu.h"
 #include "hw/hw.h"
-#include "trace.h"
+#include <trace.h>
 #include "sysemu/kvm.h"
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/xics.h"
hw/intc/xics_spapr.c +1 -1
index 2e27b92..60e27a2 100644
@@ -28,7 +28,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "hw/hw.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/timer.h"
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/xics.h"
hw/ipmi/ipmi.c +1 -1
index 9be281f..fbb4e03 100644
@@ -28,7 +28,7 @@
 #include "sysemu/sysemu.h"
 #include "qom/object_interfaces.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qapi/visitor.h"
 
 static uint32_t ipmi_current_uuid = 1;
hw/isa/pc87312.c +1 -1
index 48b29e3..baad85f 100644
@@ -31,7 +31,7 @@
 #include "sysemu/blockdev.h"
 #include "sysemu/sysemu.h"
 #include "chardev/char.h"
-#include "trace.h"
+#include <trace.h>
 
 
 #define REG_FER 0
hw/mem/pc-dimm.c +1 -1
index 51350d9..7df17e5 100644
@@ -27,7 +27,7 @@
 #include "qemu/range.h"
 #include "sysemu/numa.h"
 #include "sysemu/kvm.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/virtio/vhost.h"
 
 typedef struct pc_dimms_capacity {
hw/misc/aspeed_scu.c +1 -1
index 5e6d574..1d76c59 100644
@@ -16,7 +16,7 @@
 #include "qapi/visitor.h"
 #include "qemu/bitops.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TO_REG(offset) ((offset) >> 2)
 
hw/misc/aspeed_sdmc.c +1 -1
index 0df008e..2f8d953 100644
@@ -14,7 +14,7 @@
 #include "hw/misc/aspeed_scu.h"
 #include "hw/qdev-properties.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 
 /* Protection Key Register */
 #define R_PROT            (0x00 / 4)
hw/misc/eccmemctl.c +1 -1
index bb7cc52..0661d93 100644
@@ -24,7 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 
 /* There are 3 versions of this chip used in SMP sun4m systems:
  * MCC (version 0, implementation 0) SS-600MP
hw/misc/imx7_gpr.c +1 -1
index c2a9df2..73e5013 100644
@@ -17,7 +17,7 @@
 #include "qemu/log.h"
 #include "sysemu/sysemu.h"
 
-#include "trace.h"
+#include <trace.h>
 
 enum IMX7GPRRegisters {
     IOMUXC_GPR0  = 0x00,
hw/misc/iotkit-secctl.c +1 -1
index ddd1584..5dfd605 100644
@@ -12,7 +12,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 #include "hw/registerfields.h"
 #include "hw/misc/iotkit-secctl.h"
hw/misc/macio/cuda.c +1 -1
index bd9b862..2320d66 100644
@@ -32,7 +32,7 @@
 #include "sysemu/sysemu.h"
 #include "qemu/cutils.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 /* Bits in B data register: all active low */
 #define TREQ            0x08    /* Transfer request (input) */
hw/misc/milkymist-hpdmc.c +1 -1
index e6140ee..d6fed5e 100644
@@ -24,7 +24,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/error-report.h"
 
 enum {
hw/misc/milkymist-pfpu.c +1 -1
index 86f5e38..d14d9af 100644
@@ -25,7 +25,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/log.h"
 #include "qemu/error-report.h"
 #include <math.h>
hw/misc/mmio_interface.c +1 -1
index 3b0e203..a45c971 100644
@@ -24,7 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/qdev-properties.h"
 #include "hw/misc/mmio_interface.h"
 #include "qapi/error.h"
hw/misc/mos6522.c +1 -1
index 8ad9fc8..37ed1ea 100644
@@ -31,7 +31,7 @@
 #include "sysemu/sysemu.h"
 #include "qemu/cutils.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 /* XXX: implement all timer modes */
 
hw/misc/mps2-fpgaio.c +1 -1
index 7394a05..56c89ac 100644
@@ -18,7 +18,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 #include "hw/registerfields.h"
 #include "hw/misc/mps2-fpgaio.h"
hw/misc/mps2-scc.c +1 -1
index 6a9d251..663f841 100644
@@ -19,7 +19,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 #include "hw/registerfields.h"
 #include "hw/misc/mps2-scc.h"
hw/misc/msf2-sysreg.c +1 -1
index 6eb5011..992282d 100644
@@ -17,7 +17,7 @@
 #include "qemu/log.h"
 #include "hw/misc/msf2-sysreg.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 
 static inline int msf2_divbits(uint32_t div)
 {
hw/misc/slavio_misc.c +1 -1
index 0b33cdc..b7e6d26 100644
@@ -25,7 +25,7 @@
 #include "qemu/osdep.h"
 #include "sysemu/sysemu.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 
 /*
  * This is the auxio port, chip control and system control part of
hw/misc/tz-ppc.c +1 -1
index 3dd045c..e28ccbf 100644
@@ -12,7 +12,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 #include "hw/registerfields.h"
 #include "hw/misc/tz-ppc.h"
hw/net/e1000e.c +1 -1
index 16a9417..866a8ae 100644
@@ -46,7 +46,7 @@
 #include "e1000x_common.h"
 #include "e1000e_core.h"
 
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 
 #define TYPE_E1000E "e1000e"
hw/net/e1000e_core.c +1 -1
index c93c466..e6226e0 100644
@@ -46,7 +46,7 @@
 #include "e1000x_common.h"
 #include "e1000e_core.h"
 
-#include "trace.h"
+#include <trace.h>
 
 #define E1000E_MIN_XITR     (500) /* No more then 7813 interrupts per
                                      second according to spec 10.2.4.2 */
hw/net/e1000x_common.c +1 -1
index eb0e097..ad5b54d 100644
@@ -29,7 +29,7 @@
 
 #include "e1000x_common.h"
 
-#include "trace.h"
+#include <trace.h>
 
 bool e1000x_rx_ready(PCIDevice *d, uint32_t *mac)
 {
hw/net/lance.c +1 -1
index a08d5ac..cc48b23 100644
@@ -39,7 +39,7 @@
 #include "qemu/timer.h"
 #include "hw/sparc/sparc32_dma.h"
 #include "hw/net/lance.h"
-#include "trace.h"
+#include <trace.h>
 #include "sysemu/sysemu.h"
 
 
hw/net/milkymist-minimac2.c +1 -1
index 3eaa19d..9d89e5b 100644
@@ -28,7 +28,7 @@
 #include "cpu.h" /* FIXME: why does this use TARGET_PAGE_ALIGN? */
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "net/net.h"
 #include "qemu/error-report.h"
 
hw/net/mipsnet.c +1 -1
index 5a63df7..2c767ad 100644
@@ -1,7 +1,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "net/net.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 
 /* MIPSnet register offsets */
hw/net/net_rx_pkt.c +1 -1
index 98a5030..02f5dff 100644
@@ -16,7 +16,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "trace.h"
+#include <trace.h>
 #include "net_rx_pkt.h"
 #include "net/checksum.h"
 #include "net/tap.h"
hw/net/opencores_eth.c +1 -1
index d42b79c..93b347b 100644
@@ -38,7 +38,7 @@
 #include "net/net.h"
 #include "net/eth.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 /* RECSMALL is not used because it breaks tap networking in linux:
  * incoming ARP responses are too short
hw/net/pcnet-pci.c +1 -1
index 70dc8b3..e86c4d3 100644
@@ -33,7 +33,7 @@
 #include "qemu/timer.h"
 #include "sysemu/dma.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 #include "pcnet.h"
 
hw/net/pcnet.c +1 -1
index 0c44554..3ef2607 100644
@@ -41,7 +41,7 @@
 #include "net/eth.h"
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 #include "pcnet.h"
 
hw/net/rocker/qmp-norocker.c +1 -1
index 0d60513..0ca6a1a 100644
@@ -18,7 +18,7 @@
 #include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-rocker.h"
+#include <qapi/qapi-commands-rocker.h>
 #include "qapi/qmp/qerror.h"
 
 RockerSwitch *qmp_query_rocker(const char *name, Error **errp)
hw/net/rocker/rocker.c +1 -1
index c02cbef..30391ca 100644
@@ -22,7 +22,7 @@
 #include "net/net.h"
 #include "net/eth.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-rocker.h"
+#include <qapi/qapi-commands-rocker.h>
 #include "qemu/iov.h"
 #include "qemu/bitops.h"
 
hw/net/rocker/rocker_fp.c +1 -1
index 27b17c8..a8030fc 100644
@@ -16,7 +16,7 @@
 
 #include "qemu/osdep.h"
 #include "net/clients.h"
-#include "qapi/qapi-types-rocker.h"
+#include <qapi/qapi-types-rocker.h>
 #include "rocker.h"
 #include "rocker_hw.h"
 #include "rocker_fp.h"
hw/net/rocker/rocker_of_dpa.c +1 -1
index 6004672..7ee02aa 100644
@@ -17,7 +17,7 @@
 #include "qemu/osdep.h"
 #include "net/eth.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-rocker.h"
+#include <qapi/qapi-commands-rocker.h>
 #include "qemu/iov.h"
 #include "qemu/timer.h"
 
hw/net/spapr_llan.c +1 -1
index d239e4b..e126198 100644
@@ -34,7 +34,7 @@
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/spapr_vio.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 #include <libfdt.h>
 
hw/net/sungem.c +1 -1
index 60f1e47..c07da11 100644
@@ -15,7 +15,7 @@
 #include "net/checksum.h"
 #include "hw/net/mii.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_SUNGEM "sungem"
 
hw/net/sunhme.c +1 -1
index 7558fca..c43397d 100644
@@ -30,7 +30,7 @@
 #include "net/checksum.h"
 #include "net/eth.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 #define HME_REG_SIZE                   0x8000
 
hw/net/virtio-net.c +1 -1
index 67ad38c..1ef0d97 100644
@@ -23,7 +23,7 @@
 #include "net/vhost_net.h"
 #include "hw/virtio/virtio-bus.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-net.h"
+#include <qapi/qapi-events-net.h>
 #include "hw/virtio/virtio-access.h"
 #include "migration/misc.h"
 #include "standard-headers/linux/ethtool.h"
hw/nvram/ds1225y.c +1 -1
index ad7345f..4dca86d 100644
@@ -24,7 +24,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 
 typedef struct {
     MemoryRegion iomem;
hw/nvram/fw_cfg.c +1 -1
index 2a0739d..003d3c2 100644
@@ -30,7 +30,7 @@
 #include "hw/isa/isa.h"
 #include "hw/nvram/fw_cfg.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/error-report.h"
 #include "qemu/option.h"
 #include "qemu/config-file.h"
hw/pci-host/grackle.c +1 -1
index 033588b..d42d973 100644
@@ -27,7 +27,7 @@
 #include "hw/pci/pci_host.h"
 #include "hw/ppc/mac.h"
 #include "hw/pci/pci.h"
-#include "trace.h"
+#include <trace.h>
 
 #define GRACKLE_PCI_HOST_BRIDGE(obj) \
     OBJECT_CHECK(GrackleState, (obj), TYPE_GRACKLE_PCI_HOST_BRIDGE)
hw/pci-host/sabre.c +1 -1
index e2f4ee4..14778a5 100644
@@ -35,7 +35,7 @@
 #include "sysemu/sysemu.h"
 #include "exec/address-spaces.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 /*
  * Chipset docs:
hw/pci-host/uninorth.c +1 -1
index 66991da..f6d1d7d 100644
@@ -26,7 +26,7 @@
 #include "hw/ppc/mac.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci_host.h"
-#include "trace.h"
+#include <trace.h>
 
 static const int unin_irq_line[] = { 0x1b, 0x1c, 0x1d, 0x1e };
 
hw/pci/msix.c +1 -1
index c944c02..afb6adf 100644
@@ -22,7 +22,7 @@
 #include "hw/xen/xen.h"
 #include "qemu/range.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 
 #define MSIX_CAP_LENGTH 12
 
hw/pci/pci-stub.c +1 -1
index b941a0e..bc4ab9c 100644
@@ -22,7 +22,7 @@
 #include "sysemu/sysemu.h"
 #include "monitor/monitor.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qapi/qmp/qerror.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/msi.h"
hw/pci/pci.c +2 -2
index f98efdc..803cc9d 100644
@@ -34,14 +34,14 @@
 #include "hw/loader.h"
 #include "qemu/error-report.h"
 #include "qemu/range.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/pci/msi.h"
 #include "hw/pci/msix.h"
 #include "exec/address-spaces.h"
 #include "hw/hotplug.h"
 #include "hw/boards.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qemu/cutils.h"
 
 //#define DEBUG_PCI
hw/pci/pci_host.c +1 -1
index 5eaa935..e12b003 100644
@@ -22,7 +22,7 @@
 #include "hw/pci/pci.h"
 #include "hw/pci/pci_host.h"
 #include "hw/pci/pci_bus.h"
-#include "trace.h"
+#include <trace.h>
 
 /* debug PCI */
 //#define DEBUG_PCI
hw/ppc/mac_newworld.c +1 -1
index a749e25..f13a1c4 100644
@@ -73,7 +73,7 @@
 #include "exec/address-spaces.h"
 #include "hw/sysbus.h"
 #include "qemu/cutils.h"
-#include "trace.h"
+#include <trace.h>
 
 #define MAX_IDE_BUS 2
 #define CFG_ADDR 0xf0000510
hw/ppc/ppc.c +1 -1
index ec4be25..7195afd 100644
@@ -36,7 +36,7 @@
 #include "hw/loader.h"
 #include "sysemu/kvm.h"
 #include "kvm_ppc.h"
-#include "trace.h"
+#include <trace.h>
 
 //#define PPC_DEBUG_IRQ
 //#define PPC_DEBUG_TB
hw/ppc/ppc440_pcix.c +1 -1
index ab2626a..2dfa815 100644
@@ -27,7 +27,7 @@
 #include "hw/pci/pci.h"
 #include "hw/pci/pci_host.h"
 #include "exec/address-spaces.h"
-#include "trace.h"
+#include <trace.h>
 
 struct PLBOutMap {
     uint64_t la;
hw/ppc/ppc4xx_pci.c +1 -1
index b7642ba..7191c24 100644
@@ -26,7 +26,7 @@
 #include "hw/pci/pci.h"
 #include "hw/pci/pci_host.h"
 #include "exec/address-spaces.h"
-#include "trace.h"
+#include <trace.h>
 
 struct PCIMasterMap {
     uint32_t la;
hw/ppc/prep.c +1 -1
index 096d4d4..39abb9c 100644
@@ -48,7 +48,7 @@
 #include "sysemu/kvm.h"
 #include "sysemu/qtest.h"
 #include "exec/address-spaces.h"
-#include "trace.h"
+#include <trace.h>
 #include "elf.h"
 #include "qemu/cutils.h"
 #include "kvm_ppc.h"
hw/ppc/prep_systemio.c +1 -1
index 50893ec..7477384 100644
@@ -28,7 +28,7 @@
 #include "qemu/error-report.h" /* for error_report() */
 #include "sysemu/sysemu.h" /* for vm_stop() */
 #include "cpu.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_PREP_SYSTEMIO "prep-systemio"
 #define PREP_SYSTEMIO(obj) \
hw/ppc/rs6000_mc.c +1 -1
index b613565..e4393af 100644
@@ -22,7 +22,7 @@
 #include "exec/address-spaces.h"
 #include "hw/boards.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_RS6000MC "rs6000-mc"
 #define RS6000MC_DEVICE(obj) \
hw/ppc/spapr.c +1 -1
index 44a0670..1924466 100644
@@ -67,7 +67,7 @@
 #include "hw/usb.h"
 #include "qemu/config-file.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/nmi.h"
 #include "hw/intc/intc.h"
 
hw/ppc/spapr_drc.c +1 -1
index aa25113..fddfd81 100644
@@ -22,7 +22,7 @@
 #include "qemu/error-report.h"
 #include "hw/ppc/spapr.h" /* for RTAS return codes */
 #include "hw/pci-host/spapr.h" /* spapr_phb_remove_pci_device_cb callback */
-#include "trace.h"
+#include <trace.h>
 
 #define DRC_CONTAINER_PATH "/dr-connector"
 #define DRC_INDEX_TYPE_SHIFT 28
hw/ppc/spapr_hcall.c +1 -1
index 16bccdd..64fe7ba 100644
@@ -10,7 +10,7 @@
 #include "hw/ppc/spapr.h"
 #include "mmu-hash64.h"
 #include "cpu-models.h"
-#include "trace.h"
+#include <trace.h>
 #include "kvm_ppc.h"
 #include "hw/ppc/spapr_ovec.h"
 #include "mmu-book3s-v3.h"
hw/ppc/spapr_iommu.c +1 -1
index aaa6010..272ffda 100644
@@ -25,7 +25,7 @@
 #include "kvm_ppc.h"
 #include "sysemu/dma.h"
 #include "exec/address-spaces.h"
-#include "trace.h"
+#include <trace.h>
 
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/spapr_vio.h"
hw/ppc/spapr_ovec.c +1 -1
index 41df4c3..0dcc38e 100644
@@ -16,7 +16,7 @@
 #include "qemu/bitmap.h"
 #include "exec/address-spaces.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 #include <libfdt.h>
 
 #define OV_MAXBYTES 256 /* not including length byte */
hw/ppc/spapr_pci.c +1 -1
index 39a1498..4bb353a 100644
@@ -37,7 +37,7 @@
 #include "exec/address-spaces.h"
 #include "exec/ram_addr.h"
 #include <libfdt.h>
-#include "trace.h"
+#include <trace.h>
 #include "qemu/error-report.h"
 #include "qapi/qmp/qerror.h"
 #include "hw/ppc/fdt.h"
hw/ppc/spapr_rtas.c +1 -1
index 0ec5fa4..2c9dc12 100644
@@ -43,7 +43,7 @@
 #include <libfdt.h>
 #include "hw/ppc/spapr_drc.h"
 #include "qemu/cutils.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/ppc/fdt.h"
 
 static void rtas_display_character(PowerPCCPU *cpu, sPAPRMachineState *spapr,
hw/ppc/spapr_rtas_ddw.c +1 -1
index 177dcff..ca8acc5 100644
@@ -22,7 +22,7 @@
 #include "qemu/error-report.h"
 #include "hw/ppc/spapr.h"
 #include "hw/pci-host/spapr.h"
-#include "trace.h"
+#include <trace.h>
 
 static int spapr_phb_get_active_win_num_cb(Object *child, void *opaque)
 {
hw/ppc/spapr_rtc.c +1 -1
index a373605..fa8400a 100644
@@ -31,7 +31,7 @@
 #include "sysemu/sysemu.h"
 #include "hw/ppc/spapr.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-misc.h"
+#include <qapi/qapi-events-misc.h>
 #include "qemu/cutils.h"
 
 void spapr_rtc_read(sPAPRRTCState *rtc, struct tm *tm, uint32_t *ns)
hw/ppc/spapr_vio.c +1 -1
index 472dd6f..aea65e3 100644
@@ -37,7 +37,7 @@
 #include "hw/ppc/spapr_vio.h"
 #include "hw/ppc/xics.h"
 #include "hw/ppc/fdt.h"
-#include "trace.h"
+#include <trace.h>
 
 #include <libfdt.h>
 
hw/rdma/rdma_backend.c +1 -1
index e306fba..5b268aa 100644
@@ -19,7 +19,7 @@
 
 #include <infiniband/verbs.h>
 
-#include "trace.h"
+#include <trace.h>
 #include "rdma_utils.h"
 #include "rdma_rm.h"
 #include "rdma_backend.h"
hw/rdma/vmw/pvrdma_main.c +1 -1
index 9978781..e68b0f0 100644
@@ -23,7 +23,7 @@
 #include <hw/qdev-core.h>
 #include <hw/qdev-properties.h>
 #include <cpu.h>
-#include "trace.h"
+#include <trace.h>
 
 #include "../rdma_rm.h"
 #include "../rdma_backend.h"
hw/s390x/css.c +1 -1
index 301bf17..7e92c96 100644
@@ -19,7 +19,7 @@
 #include "cpu.h"
 #include "hw/s390x/ioinst.h"
 #include "hw/s390x/css.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/s390x/s390_flic.h"
 #include "hw/s390x/s390-virtio-ccw.h"
 
hw/s390x/s390-skeys.c +1 -1
index 76241c2..5053c93 100644
@@ -13,7 +13,7 @@
 #include "hw/boards.h"
 #include "hw/s390x/storage-keys.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qapi/qmp/qdict.h"
 #include "qemu/error-report.h"
 #include "sysemu/kvm.h"
hw/s390x/virtio-ccw.c +1 -1
index e51fbef..02a7f29 100644
@@ -32,7 +32,7 @@
 #include "hw/s390x/ioinst.h"
 #include "hw/s390x/css.h"
 #include "virtio-ccw.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/s390x/css-bridge.h"
 #include "hw/s390x/s390-virtio-ccw.h"
 
hw/scsi/esp-pci.c +1 -1
index 419fc66..df39551 100644
@@ -27,7 +27,7 @@
 #include "hw/pci/pci.h"
 #include "hw/nvram/eeprom93xx.h"
 #include "hw/scsi/esp.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 #include "qemu/log.h"
 
hw/scsi/esp.c +1 -1
index 45975c2..6f95854 100644
@@ -26,7 +26,7 @@
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "hw/scsi/esp.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/log.h"
 
 /*
hw/scsi/megasas.c +1 -1
index ba1afa3..fed09be 100644
@@ -28,7 +28,7 @@
 #include "qemu/iov.h"
 #include "hw/scsi/scsi.h"
 #include "scsi/constants.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 #include "mfi.h"
 
hw/scsi/mptconfig.c +1 -1
index 87a416a..d794d5e 100644
@@ -22,7 +22,7 @@
 
 #include "mptsas.h"
 #include "mpi.h"
-#include "trace.h"
+#include <trace.h>
 
 /* Generic functions for marshaling and unmarshaling.  */
 
hw/scsi/mptendian.c +1 -1
index 3415229..0501649 100644
@@ -29,7 +29,7 @@
 #include "qemu/iov.h"
 #include "hw/scsi/scsi.h"
 #include "scsi/constants.h"
-#include "trace.h"
+#include <trace.h>
 
 #include "mptsas.h"
 #include "mpi.h"
hw/scsi/mptsas.c +1 -1
index 3f061f3..59608bb 100644
@@ -31,7 +31,7 @@
 #include "qemu/iov.h"
 #include "hw/scsi/scsi.h"
 #include "scsi/constants.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 #include "mptsas.h"
 #include "mpi.h"
hw/scsi/scsi-bus.c +1 -1
index 1eaeffc..0627ea4 100644
@@ -8,7 +8,7 @@
 #include "hw/qdev.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/blockdev.h"
-#include "trace.h"
+#include <trace.h>
 #include "sysemu/dma.h"
 #include "qemu/cutils.h"
 
hw/scsi/spapr_vscsi.c +1 -1
index a9e49c7..5f3870b 100644
@@ -42,7 +42,7 @@
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/spapr_vio.h"
 #include "viosrp.h"
-#include "trace.h"
+#include <trace.h>
 
 #include <libfdt.h>
 
hw/scsi/vmw_pvscsi.c +1 -1
index a3a019e..274c305 100644
@@ -31,7 +31,7 @@
 #include "scsi/constants.h"
 #include "hw/pci/msi.h"
 #include "vmw_pvscsi.h"
-#include "trace.h"
+#include <trace.h>
 
 
 #define PVSCSI_USE_64BIT         (true)
hw/sd/core.c +1 -1
index 3c6eae6..34ebccf 100644
@@ -23,7 +23,7 @@
 #include "hw/qdev-core.h"
 #include "sysemu/block-backend.h"
 #include "hw/sd/sd.h"
-#include "trace.h"
+#include <trace.h>
 
 static inline const char *sdbus_name(SDBus *sdbus)
 {
hw/sd/milkymist-memcard.c +1 -1
index 5570c1e..8f6b4ba 100644
@@ -26,7 +26,7 @@
 #include "hw/hw.h"
 #include "hw/sysbus.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 #include "include/qapi/error.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/blockdev.h"
hw/sd/pxa2xx_mmci.c +1 -1
index 82f8ec0..338064b 100644
@@ -20,7 +20,7 @@
 #include "hw/qdev-properties.h"
 #include "qemu/error-report.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_PXA2XX_MMCI "pxa2xx-mmci"
 #define PXA2XX_MMCI(obj) OBJECT_CHECK(PXA2xxMMCIState, (obj), TYPE_PXA2XX_MMCI)
hw/sd/sd.c +1 -1
index 235e051..59f92f3 100644
@@ -43,7 +43,7 @@
 #include "qemu/timer.h"
 #include "qemu/log.h"
 #include "sdmmc-internal.h"
-#include "trace.h"
+#include <trace.h>
 
 //#define DEBUG_SD 1
 
hw/sd/sdhci.c +1 -1
index 1b828b1..2fe808e 100644
@@ -35,7 +35,7 @@
 #include "sdhci-internal.h"
 #include "qemu/log.h"
 #include "qemu/cutils.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_SDHCI_BUS "sdhci-bus"
 #define SDHCI_BUS(obj) OBJECT_CHECK(SDBus, (obj), TYPE_SDHCI_BUS)
hw/sparc/leon3.c +1 -1
index bba3aa3..53b6987 100644
@@ -34,7 +34,7 @@
 #include "hw/boards.h"
 #include "hw/loader.h"
 #include "elf.h"
-#include "trace.h"
+#include <trace.h>
 #include "exec/address-spaces.h"
 
 #include "hw/sparc/grlib.h"
hw/sparc/sun4m.c +1 -1
index 0f5804b..9dfc825 100644
@@ -45,7 +45,7 @@
 #include "hw/loader.h"
 #include "elf.h"
 #include "sysemu/block-backend.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/cutils.h"
 
 /*
hw/sparc/sun4m_iommu.c +1 -1
index b677601..48cab0f 100644
@@ -26,7 +26,7 @@
 #include "hw/sparc/sun4m_iommu.h"
 #include "hw/sysbus.h"
 #include "exec/address-spaces.h"
-#include "trace.h"
+#include <trace.h>
 
 /*
  * I/O MMU used by Sun4m systems
hw/sparc64/sparc64.c +1 -1
index 4083889..fa985dd 100644
@@ -28,7 +28,7 @@
 #include "hw/char/serial.h"
 #include "hw/sparc/sparc64.h"
 #include "qemu/timer.h"
-#include "trace.h"
+#include <trace.h>
 
 
 #define TICK_MAX             0x7fffffffffffffffULL
hw/sparc64/sun4u.c +1 -1
index da28ab9..5ed362e 100644
@@ -49,7 +49,7 @@
 #include "hw/ide/pci.h"
 #include "hw/loader.h"
 #include "elf.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/cutils.h"
 
 #define KERNEL_LOAD_ADDR     0x00404000
hw/sparc64/sun4u_iommu.c +1 -1
index eb3aaa8..90dc404 100644
@@ -29,7 +29,7 @@
 #include "hw/sparc/sun4u_iommu.h"
 #include "exec/address-spaces.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 
 #define IOMMU_PAGE_SIZE_8K      (1ULL << 13)
hw/timer/armv7m_systick.c +1 -1
index df8d280..cd88f67 100644
@@ -15,7 +15,7 @@
 #include "hw/sysbus.h"
 #include "qemu/timer.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 /* qemu timers run at 1GHz.   We want something closer to 1MHz.  */
 #define SYSTICK_SCALE 1000ULL
hw/timer/aspeed_timer.c +1 -1
index 50acbf5..a296082 100644
@@ -16,7 +16,7 @@
 #include "qemu/bitops.h"
 #include "qemu/timer.h"
 #include "qemu/log.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TIMER_NR_REGS 4
 
hw/timer/cmsdk-apb-timer.c +1 -1
index 9878746..480f11e 100644
@@ -31,7 +31,7 @@
 #include "qemu/log.h"
 #include "qemu/main-loop.h"
 #include "qapi/error.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/sysbus.h"
 #include "hw/registerfields.h"
 #include "hw/timer/cmsdk-apb-timer.h"
hw/timer/grlib_gptimer.c +1 -1
index 4ed96e9..0c5f99a 100644
@@ -28,7 +28,7 @@
 #include "hw/ptimer.h"
 #include "qemu/main-loop.h"
 
-#include "trace.h"
+#include <trace.h>
 
 #define UNIT_REG_SIZE    16     /* Size of memory mapped regs for the unit */
 #define GPTIMER_REG_SIZE 16     /* Size of memory mapped regs for a GPTimer */
hw/timer/lm32_timer.c +1 -1
index 2a07b59..6f8a358 100644
@@ -24,7 +24,7 @@
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/timer.h"
 #include "hw/ptimer.h"
 #include "qemu/error-report.h"
hw/timer/mc146818rtc.c +2 -2
index 6f1f723..cb9319f 100644
@@ -31,8 +31,8 @@
 #include "sysemu/replay.h"
 #include "hw/timer/mc146818rtc.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
-#include "qapi/qapi-events-misc.h"
+#include <qapi/qapi-commands-misc.h>
+#include <qapi/qapi-events-misc.h>
 #include "qapi/visitor.h"
 
 #ifdef TARGET_I386
hw/timer/milkymist-sysctl.c +1 -1
index 93bc6e17..7ab12bb 100644
@@ -25,7 +25,7 @@
 #include "hw/hw.h"
 #include "hw/sysbus.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/timer.h"
 #include "hw/ptimer.h"
 #include "qemu/error-report.h"
hw/timer/slavio_timer.c +1 -1
index 4694b65..52b9e96 100644
@@ -26,7 +26,7 @@
 #include "qemu/timer.h"
 #include "hw/ptimer.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/main-loop.h"
 
 /*
hw/timer/xlnx-zynqmp-rtc.c +1 -1
index c98dc3d..66472dd 100644
@@ -32,7 +32,7 @@
 #include "hw/ptimer.h"
 #include "qemu/cutils.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/timer/xlnx-zynqmp-rtc.h"
 
 #ifndef XLNX_ZYNQMP_RTC_ERR_DEBUG
hw/tpm/tpm_crb.c +1 -1
index d8917cb..6603512 100644
@@ -29,7 +29,7 @@
 #include "sysemu/reset.h"
 #include "tpm_int.h"
 #include "tpm_util.h"
-#include "trace.h"
+#include <trace.h>
 
 typedef struct CRBState {
     DeviceState parent_obj;
hw/tpm/tpm_emulator.c +2 -2
index 6418ef0..7450668 100644
@@ -38,9 +38,9 @@
 #include "migration/blocker.h"
 #include "qapi/error.h"
 #include "qapi/clone-visitor.h"
-#include "qapi/qapi-visit-tpm.h"
+#include <qapi/qapi-visit-tpm.h>
 #include "chardev/char-fe.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_TPM_EMULATOR "tpm-emulator"
 #define TPM_EMULATOR(obj) \
hw/tpm/tpm_passthrough.c +2 -2
index 479317e..f43fe12 100644
@@ -30,9 +30,9 @@
 #include "tpm_int.h"
 #include "hw/hw.h"
 #include "qapi/clone-visitor.h"
-#include "qapi/qapi-visit-tpm.h"
+#include <qapi/qapi-visit-tpm.h>
 #include "tpm_util.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TYPE_TPM_PASSTHROUGH "tpm-passthrough"
 #define TPM_PASSTHROUGH(obj) \
hw/tpm/tpm_tis.c +1 -1
index 2ac7e74..4e16734 100644
@@ -31,7 +31,7 @@
 #include "sysemu/tpm_backend.h"
 #include "tpm_int.h"
 #include "tpm_util.h"
-#include "trace.h"
+#include <trace.h>
 
 #define TPM_TIS_NUM_LOCALITIES      5     /* per spec */
 #define TPM_TIS_LOCALITY_SHIFT      12
hw/tpm/tpm_util.c +1 -1
index ee41757..672ffa0 100644
@@ -28,7 +28,7 @@
 #include "exec/memory.h"
 #include "sysemu/tpm_backend.h"
 #include "hw/qdev.h"
-#include "trace.h"
+#include <trace.h>
 
 /* tpm backend property */
 
hw/usb/bus.c +1 -1
index 11f7720..dc4a6bb7 100644
@@ -6,7 +6,7 @@
 #include "qemu/error-report.h"
 #include "sysemu/sysemu.h"
 #include "monitor/monitor.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/cutils.h"
 
 static void usb_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent);
hw/usb/combined-packet.c +1 -1
index 48cac87..e1168dd 100644
@@ -23,7 +23,7 @@
 #include "qemu-common.h"
 #include "hw/usb.h"
 #include "qemu/iov.h"
-#include "trace.h"
+#include <trace.h>
 
 static void usb_combined_packet_add(USBCombinedPacket *combined, USBPacket *p)
 {
hw/usb/core.c +1 -1
index 241ae66..a2c320c 100644
@@ -27,7 +27,7 @@
 #include "qemu-common.h"
 #include "hw/usb.h"
 #include "qemu/iov.h"
-#include "trace.h"
+#include <trace.h>
 
 void usb_pick_speed(USBPort *port)
 {
hw/usb/desc.c +1 -1
index 85c15ad..7994523 100644
@@ -2,7 +2,7 @@
 
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
-#include "trace.h"
+#include <trace.h>
 
 /* ------------------------------------------------------------------ */
 
hw/usb/dev-hub.c +1 -1
index 752e30c..5288ff1 100644
@@ -24,7 +24,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qemu-common.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
 #include "qemu/error-report.h"
hw/usb/dev-mtp.c +1 -1
index 6ecf70a..c861ef9 100644
@@ -22,7 +22,7 @@
 
 #include "qemu-common.h"
 #include "qemu/iov.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/usb.h"
 #include "hw/usb/desc.h"
 
hw/usb/dev-uas.c +1 -1
index c218b53..5812b52 100644
@@ -13,7 +13,7 @@
 #include "qemu-common.h"
 #include "qemu/option.h"
 #include "qemu/config-file.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/error-report.h"
 
 #include "hw/usb.h"
hw/usb/hcd-ehci.c +1 -1
index 01342326..6719c06 100644
@@ -31,7 +31,7 @@
 #include "qapi/error.h"
 #include "hw/usb/ehci-regs.h"
 #include "hw/usb/hcd-ehci.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/error-report.h"
 
 #define FRAME_TIMER_FREQ 1000
hw/usb/hcd-ohci.c +1 -1
index d4c0293..cf9d20f 100644
@@ -33,7 +33,7 @@
 #include "hw/pci/pci.h"
 #include "hw/sysbus.h"
 #include "hw/qdev-dma.h"
-#include "trace.h"
+#include <trace.h>
 
 /* This causes frames to occur 1000x slower */
 //#define OHCI_TIME_WARP 1
hw/usb/hcd-uhci.c +1 -1
index 836b11f..b08c5ec 100644
@@ -34,7 +34,7 @@
 #include "qemu/timer.h"
 #include "qemu/iov.h"
 #include "sysemu/dma.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/main-loop.h"
 
 #define FRAME_TIMER_FREQ 1000
hw/usb/hcd-xhci.c +1 -1
index 721beb5..f8d4448 100644
@@ -26,7 +26,7 @@
 #include "hw/pci/pci.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/msix.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 
 #include "hcd-xhci.h"
hw/usb/host-libusb.c +1 -1
index 1b0be07..3f99184 100644
@@ -44,7 +44,7 @@
 #include "monitor/monitor.h"
 #include "qemu/error-report.h"
 #include "sysemu/sysemu.h"
-#include "trace.h"
+#include <trace.h>
 
 #include "hw/usb.h"
 
hw/vfio/common.c +1 -1
index f895e3c..f6b7de5 100644
@@ -33,7 +33,7 @@
 #include "qemu/error-report.h"
 #include "qemu/range.h"
 #include "sysemu/kvm.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 
 struct vfio_group_head vfio_group_list =
hw/vfio/pci-quirks.c +1 -1
index e5779a7..e366c5b 100644
@@ -17,7 +17,7 @@
 #include "qapi/visitor.h"
 #include "hw/nvram/fw_cfg.h"
 #include "pci.h"
-#include "trace.h"
+#include <trace.h>
 
 /* Use uin32_t for vendor & device so PCI_ANY_ID expands and cannot match hw */
 static bool vfio_pci_is(VFIOPCIDevice *vdev, uint32_t vendor, uint32_t device)
hw/vfio/pci.c +1 -1
index 3ba3cbc..6723b94 100644
@@ -31,7 +31,7 @@
 #include "sysemu/kvm.h"
 #include "sysemu/sysemu.h"
 #include "pci.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 
 #define MSIX_CAP_LENGTH 12
hw/vfio/platform.c +1 -1
index 5c921c2..fa200e6 100644
@@ -26,7 +26,7 @@
 #include "exec/memory.h"
 #include "qemu/queue.h"
 #include "hw/sysbus.h"
-#include "trace.h"
+#include <trace.h>
 #include "hw/platform-bus.h"
 #include "sysemu/kvm.h"
 
hw/vfio/spapr.c +1 -1
index 259397c..fddf654 100644
@@ -16,7 +16,7 @@
 #include "hw/vfio/vfio-common.h"
 #include "hw/hw.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 
 static bool vfio_prereg_listener_skipped_section(MemoryRegionSection *section)
 {
hw/virtio/vhost.c +1 -1
index d8d0ef9..b554016 100644
@@ -27,7 +27,7 @@
 #include "hw/virtio/virtio-access.h"
 #include "migration/blocker.h"
 #include "sysemu/dma.h"
-#include "trace.h"
+#include <trace.h>
 
 /* enabled until disconnected backend stabilizes */
 #define _VHOST_DEBUG 1
hw/virtio/virtio-balloon.c +2 -2
index f456cea..88f2cd5 100644
@@ -24,9 +24,9 @@
 #include "sysemu/kvm.h"
 #include "exec/address-spaces.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-misc.h"
+#include <qapi/qapi-events-misc.h>
 #include "qapi/visitor.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/error-report.h"
 
 #include "hw/virtio/virtio-bus.h"
hw/virtio/virtio-rng.c +1 -1
index 289bbca..c813bdf 100644
@@ -17,7 +17,7 @@
 #include "hw/virtio/virtio-rng.h"
 #include "sysemu/rng.h"
 #include "qom/object_interfaces.h"
-#include "trace.h"
+#include <trace.h>
 
 static bool is_guest_ready(VirtIORNG *vrng)
 {
hw/virtio/virtio.c +1 -1
index 006d3d1..631da76 100644
@@ -15,7 +15,7 @@
 #include "qapi/error.h"
 #include "qemu-common.h"
 #include "cpu.h"
-#include "trace.h"
+#include <trace.h>
 #include "exec/address-spaces.h"
 #include "qemu/error-report.h"
 #include "hw/virtio/virtio.h"
hw/watchdog/watchdog.c +2 -2
index 6e8ba06..06077bb 100644
@@ -24,8 +24,8 @@
 #include "qemu/config-file.h"
 #include "qemu/queue.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-run-state.h"
-#include "qapi/qapi-events-run-state.h"
+#include <qapi/qapi-commands-run-state.h>
+#include <qapi/qapi-events-run-state.h>
 #include "sysemu/sysemu.h"
 #include "sysemu/watchdog.h"
 #include "hw/nmi.h"
io/channel-buffer.c +1 -1
index 43d7959..0fce761 100644
@@ -22,7 +22,7 @@
 #include "io/channel-buffer.h"
 #include "io/channel-watch.h"
 #include "qemu/sockets.h"
-#include "trace.h"
+#include <trace.h>
 
 QIOChannelBuffer *
 qio_channel_buffer_new(size_t capacity)
io/channel-command.c +1 -1
index 3e7eb17..3c12c56 100644
@@ -23,7 +23,7 @@
 #include "io/channel-watch.h"
 #include "qapi/error.h"
 #include "qemu/sockets.h"
-#include "trace.h"
+#include <trace.h>
 
 
 QIOChannelCommand *
io/channel-file.c +1 -1
index db948ab..86a0bb6 100644
@@ -23,7 +23,7 @@
 #include "io/channel-watch.h"
 #include "qapi/error.h"
 #include "qemu/sockets.h"
-#include "trace.h"
+#include <trace.h>
 
 QIOChannelFile *
 qio_channel_file_new_fd(int fd)
io/channel-socket.c +2 -2
index 57cfb4d..5aeeb13 100644
@@ -20,10 +20,10 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "qapi/qapi-visit-sockets.h"
+#include <qapi/qapi-visit-sockets.h>
 #include "io/channel-socket.h"
 #include "io/channel-watch.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/clone-visitor.h"
 
 #define SOCKET_MAX_FDS 16
io/channel-tls.c +1 -1
index 9628e6f..a5867a3 100644
@@ -21,7 +21,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "io/channel-tls.h"
-#include "trace.h"
+#include <trace.h>
 
 
 static ssize_t qio_channel_tls_write_handler(const char *buf,
io/channel-websock.c +1 -1
index ec48a30..645c657 100644
@@ -23,7 +23,7 @@
 #include "qemu/bswap.h"
 #include "io/channel-websock.h"
 #include "crypto/hash.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/iov.h"
 
 /* Max amount to allow in rawinput/encoutput buffers */
io/dns-resolver.c +1 -1
index 187f725..2fa1cb8 100644
@@ -21,7 +21,7 @@
 #include "qemu/osdep.h"
 #include "io/dns-resolver.h"
 #include "qapi/clone-visitor.h"
-#include "qapi/qapi-visit-sockets.h"
+#include <qapi/qapi-visit-sockets.h>
 #include "qemu/sockets.h"
 #include "qapi/error.h"
 #include "qemu/cutils.h"
io/task.c +1 -1
index 2886a2c..524892d 100644
@@ -22,7 +22,7 @@
 #include "io/task.h"
 #include "qapi/error.h"
 #include "qemu/thread.h"
-#include "trace.h"
+#include <trace.h>
 
 struct QIOTask {
     Object *source;
ioport.c +1 -1
index 1a65add..84137a6 100644
@@ -29,7 +29,7 @@
 #include "qemu-common.h"
 #include "cpu.h"
 #include "exec/ioport.h"
-#include "trace-root.h"
+#include <trace-root.h>
 #include "exec/memory.h"
 #include "exec/address-spaces.h"
 
iothread.c +1 -1
index 1b3463c..2f3e639 100644
@@ -19,7 +19,7 @@
 #include "block/block.h"
 #include "sysemu/iothread.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-misc.h>
 #include "qemu/error-report.h"
 #include "qemu/rcu.h"
 #include "qemu/main-loop.h"
linux-user/main.c +1 -1
index 7bc9bc7..4f86b8f 100644
@@ -17,7 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "qemu/osdep.h"
-#include "qemu-version.h"
+#include <qemu-version.h>
 #include <sys/syscall.h>
 #include <sys/resource.h>
 
linux-user/signal.c +1 -1
index 2ce5d7a..00a12ae 100644
@@ -24,7 +24,7 @@
 #include "qemu.h"
 #include "qemu-common.h"
 #include "target_signal.h"
-#include "trace.h"
+#include <trace.h>
 
 static struct target_sigaltstack target_sigaltstack_used = {
     .ss_sp = 0,
memory.c +1 -1
index e70b64b..1cc8ead 100644
@@ -24,7 +24,7 @@
 #include "qemu/bitops.h"
 #include "qemu/error-report.h"
 #include "qom/object.h"
-#include "trace-root.h"
+#include <trace-root.h>
 
 #include "exec/memory-internal.h"
 #include "exec/ram_addr.h"
migration/channel.c +1 -1
index c5eaf0f..7d48f04 100644
@@ -15,7 +15,7 @@
 #include "tls.h"
 #include "migration.h"
 #include "qemu-file-channel.h"
-#include "trace.h"
+#include <trace.h>
 #include "qapi/error.h"
 #include "io/channel-tls.h"
 
migration/colo-comm.c +1 -1
index df26e4d..bcbc6f3 100644
@@ -15,7 +15,7 @@
 #include "migration.h"
 #include "migration/colo.h"
 #include "migration/vmstate.h"
-#include "trace.h"
+#include <trace.h>
 
 typedef struct {
      bool colo_requested;
migration/colo-failover.c +2 -2
index 0ae0c41..e00362f 100644
@@ -16,10 +16,10 @@
 #include "qemu/main-loop.h"
 #include "migration.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-migration.h"
+#include <qapi/qapi-commands-migration.h>
 #include "qapi/qmp/qerror.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 
 static QEMUBH *failover_bh;
 static FailoverStatus failover_state;
migration/colo.c +2 -2
index 4381067..b0aca63 100644
@@ -13,7 +13,7 @@
 #include "qemu/osdep.h"
 #include "sysemu/sysemu.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-migration.h"
+#include <qapi/qapi-commands-migration.h>
 #include "qemu-file-channel.h"
 #include "migration.h"
 #include "qemu-file.h"
@@ -21,7 +21,7 @@
 #include "migration/colo.h"
 #include "block.h"
 #include "io/channel-buffer.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/error-report.h"
 #include "migration/failover.h"
 #include "replication.h"
migration/exec.c +1 -1
index 0bc5a42..34f6e1a 100644
@@ -21,7 +21,7 @@
 #include "channel.h"
 #include "exec.h"
 #include "io/channel-command.h"
-#include "trace.h"
+#include <trace.h>
 
 
 void exec_start_outgoing_migration(MigrationState *s, const char *command, Error **errp)
migration/fd.c +1 -1
index cd06182..59d4e1d 100644
@@ -19,7 +19,7 @@
 #include "fd.h"
 #include "monitor/monitor.h"
 #include "io/channel-util.h"
-#include "trace.h"
+#include <trace.h>
 
 
 void fd_start_outgoing_migration(MigrationState *s, const char *fdname, Error **errp)
migration/global_state.c +1 -1
index 8e8ab5c..71f311e 100644
@@ -17,7 +17,7 @@
 #include "migration.h"
 #include "migration/global_state.h"
 #include "migration/vmstate.h"
-#include "trace.h"
+#include <trace.h>
 
 typedef struct {
     uint32_t size;
migration/migration.c +3 -3
index 6a4780e..66e8c82 100644
@@ -31,15 +31,15 @@
 #include "migration/vmstate.h"
 #include "block/block.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-migration.h"
-#include "qapi/qapi-events-migration.h"
+#include <qapi/qapi-commands-migration.h>
+#include <qapi/qapi-events-migration.h>
 #include "qapi/qmp/qerror.h"
 #include "qapi/qmp/qnull.h"
 #include "qemu/rcu.h"
 #include "block.h"
 #include "postcopy-ram.h"
 #include "qemu/thread.h"
-#include "trace.h"
+#include <trace.h>
 #include "exec/target_page.h"
 #include "io/channel-buffer.h"
 #include "migration/colo.h"
migration/postcopy-ram.c +1 -1
index 032abfb..ad9182d 100644
@@ -26,7 +26,7 @@
 #include "sysemu/sysemu.h"
 #include "sysemu/balloon.h"
 #include "qemu/error-report.h"
-#include "trace.h"
+#include <trace.h>
 
 /* Arbitrary limit on size of each discard command,
  * keeps them around ~200 bytes
migration/qemu-file.c +1 -1
index 2ab2bf3..1fedf61 100644
@@ -28,7 +28,7 @@
 #include "qemu/iov.h"
 #include "migration.h"
 #include "qemu-file.h"
-#include "trace.h"
+#include <trace.h>
 
 #define IO_BUF_SIZE 32768
 #define MAX_IOV_SIZE MIN(IOV_MAX, 64)
migration/ram.c +2 -2
index 7266351..7a54437 100644
@@ -43,9 +43,9 @@
 #include "migration/page_cache.h"
 #include "qemu/error-report.h"
 #include "qapi/error.h"
-#include "qapi/qapi-events-migration.h"
+#include <qapi/qapi-events-migration.h>
 #include "qapi/qmp/qerror.h"
-#include "trace.h"
+#include <trace.h>
 #include "exec/ram_addr.h"
 #include "exec/target_page.h"
 #include "qemu/rcu_queue.h"
migration/rdma.c +1 -1
index da474fc..e33e139 100644
@@ -31,7 +31,7 @@
 #include <netdb.h>
 #include <arpa/inet.h>
 #include <rdma/rdma_cma.h>
-#include "trace.h"
+#include <trace.h>
 
 /*
  * Print and error on both the Monitor and the Log file.
migration/savevm.c +3 -3
index 358c5b5..3f51184 100644
@@ -41,14 +41,14 @@
 #include "savevm.h"
 #include "postcopy-ram.h"
 #include "qapi/error.h"
-#include "qapi/qapi-commands-migration.h"
-#include "qapi/qapi-commands-misc.h"
+#include <qapi/qapi-commands-migration.h>
+#include <qapi/qapi-commands-misc.h>
 #include "qapi/qmp/qerror.h"
 #include "qemu/error-report.h"
 #include "sysemu/cpus.h"
 #include "exec/memory.h"
 #include "exec/target_page.h"
-#include "trace.h"
+#include <trace.h>
 #include "qemu/iov.h"
 #include "block/snapshot.h"
 #include "qemu/cutils.h"
migration/socket.c +1 -1
index 8a93fb1..f35afff 100644
@@ -24,7 +24,7 @@
 #include "migration.h"
 #include "qemu-file.h"
 #include "io/channel-socket.h"
-#include "trace.h"
+#include <trace.h>
 
 
 static SocketAddress *tcp_build_address(const char *host_port, Error **errp)
migration/tls.c +1 -1
index 3b9e8c9..548afc3 100644
@@ -26,7 +26,7 @@
 #include "crypto/tlscreds.h"
 #include "qemu/error-report.h"
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

migration/vmstate-types.c +1 -1
index 48184c3..a3fa8a5 100644

Lines of this file are not shown. View the raw message.

migration/vmstate.c +1 -1
index 0b3282c..d92b673 100644

Lines of this file are not shown. View the raw message.

monitor.c +6 -6
index a4417f2..a4b3bcc 100644

Lines of this file are not shown. View the raw message.

nbd/client.c +1 -1
index dcad23a..cbd304f 100644

Lines of this file are not shown. View the raw message.

nbd/common.c +1 -1
index 8c95c1d..b172777 100644

Lines of this file are not shown. View the raw message.

nbd/server.c +1 -1
index e714bfe..dff47dc 100644

Lines of this file are not shown. View the raw message.

net/colo-compare.c +1 -1
index 23b2d2c..f945ab4 100644

Lines of this file are not shown. View the raw message.

net/colo.c +1 -1
index 8426265..424f8a4 100644

Lines of this file are not shown. View the raw message.

net/filter-buffer.c +1 -1
index f7265c5..51f3b80 100644

Lines of this file are not shown. View the raw message.

net/filter-mirror.c +1 -1
index 3a61cf2..4e9aec0 100644

Lines of this file are not shown. View the raw message.

net/filter-rewriter.c +1 -1
index 62dad2d..bb5e35a 100644

Lines of this file are not shown. View the raw message.

net/net.c +2 -2
index 5222e45..0f65ee2 100644

Lines of this file are not shown. View the raw message.

net/vhost-user.c +2 -2
index e0f16c8..6e78b4c 100644

Lines of this file are not shown. View the raw message.

numa.c +2 -2
index 1116c90..2794bea 100644

Lines of this file are not shown. View the raw message.

qapi/qapi-visit-core.c +1 -1
index d9a1137..02288ca 100644

Lines of this file are not shown. View the raw message.

qdev-monitor.c +1 -1
index b7e3291..db20513 100644

Lines of this file are not shown. View the raw message.

qemu-img.c +4 -4
index 088d890..7c0a4d7 100644

Lines of this file are not shown. View the raw message.

qemu-io.c +1 -1
index 160fb2a..2698e80 100644

Lines of this file are not shown. View the raw message.

qemu-nbd.c +1 -1
index ed5d9b5..ecf172e 100644

Lines of this file are not shown. View the raw message.

qga/main.c +1 -1
index f9c8305..b070621 100644

Lines of this file are not shown. View the raw message.

qmp.c +4 -4
index 4b2517d..1122ceb 100644

Lines of this file are not shown. View the raw message.

qom/cpu.c +1 -1
index e42d9a7..53a5719 100644

Lines of this file are not shown. View the raw message.

qom/object.c +2 -2
index 755ad03..804b7da 100644

Lines of this file are not shown. View the raw message.

replay/replay-input.c +1 -1
index 6ee8b5f..bc2bfca 100644

Lines of this file are not shown. View the raw message.

scsi/pr-manager.c +1 -1
index 87c45db..176286a 100644

Lines of this file are not shown. View the raw message.

scsi/qemu-pr-helper.c +1 -1
index 9fe615c..5e2b70b 100644

Lines of this file are not shown. View the raw message.

stubs/tpm.c +1 -1
index 6729bc8..c1657c4 100644

Lines of this file are not shown. View the raw message.

stubs/uuid.c +1 -1
index a802e98..1167269 100644

Lines of this file are not shown. View the raw message.

stubs/vmgenid.c +1 -1
index 568e42b..fee4fe1 100644

Lines of this file are not shown. View the raw message.

stubs/xen-hvm.c +1 -1
index 0067bcc..a812402 100644

Lines of this file are not shown. View the raw message.

target/arm/helper.c +1 -1
index 09893e3..41759d3 100644

Lines of this file are not shown. View the raw message.

target/arm/monitor.c +1 -1
index 4cdd267..93d34e1 100644

Lines of this file are not shown. View the raw message.

target/i386/cpu.c +2 -2
index ec1efd3..8b70413 100644

Lines of this file are not shown. View the raw message.

target/i386/kvm.c +1 -1
index d996cca..5d79011 100644

Lines of this file are not shown. View the raw message.

target/mips/translate.c +1 -1
index d05ee67..dc3c4af 100644

Lines of this file are not shown. View the raw message.

target/ppc/kvm.c +1 -1
index 79a436a..0ba3480 100644

Lines of this file are not shown. View the raw message.

target/s390x/cpu.c +3 -3
index c2b775f..73329be 100644

Lines of this file are not shown. View the raw message.

target/s390x/cpu_features.c +1 -1
index 3b9e274..b5d6327 100644

Lines of this file are not shown. View the raw message.

target/s390x/ioinst.c +1 -1
index 83c164a..a0b58fb 100644

Lines of this file are not shown. View the raw message.

target/s390x/kvm.c +1 -1
index f570896..24da3ec 100644

Lines of this file are not shown. View the raw message.

target/s390x/mmu_helper.c +1 -1
index 1deeb6e..93858b0 100644

Lines of this file are not shown. View the raw message.

target/s390x/sigp.c +2 -2
index aff1530..c5940ab 100644

Lines of this file are not shown. View the raw message.

target/sparc/int32_helper.c +1 -1
index c772492..bb4c1fb 100644

Lines of this file are not shown. View the raw message.

target/sparc/int64_helper.c +1 -1
index f3e7f32..a3d53ac 100644

Lines of this file are not shown. View the raw message.

target/sparc/mmu_helper.c +1 -1
index f8886ae..c7fbc26 100644

Lines of this file are not shown. View the raw message.

target/sparc/win_helper.c +1 -1
index 8290a21..0c9626f 100644

Lines of this file are not shown. View the raw message.

tests/qmp-test.c +2 -2
index 22445d9..f19a283 100644

Lines of this file are not shown. View the raw message.

tests/tcg/test_path.c +1 -1
index 1c29bce..159cf5a 100644

Lines of this file are not shown. View the raw message.

tests/test-char.c +1 -1
index b3a77af..c748fb8 100644

Lines of this file are not shown. View the raw message.

tests/test-qmp-cmds.c +3 -3
index 5b1cee6..307117a 100644

Lines of this file are not shown. View the raw message.

tests/test-qmp-event.c +1 -1
index 31f35b3..8398587 100644

Lines of this file are not shown. View the raw message.

tests/test-qobject-input-visitor.c +3 -3
index 79b1a8c..875dd8e 100644

Lines of this file are not shown. View the raw message.

tpm.c +1 -1
index 9303172..6b159d0 100644

Lines of this file are not shown. View the raw message.

trace/control-target.c +1 -1
index 706b2ce..cc784f1 100644

Lines of this file are not shown. View the raw message.

trace/control.c +2 -2
index e40cfca..6f839e6 100644

Lines of this file are not shown. View the raw message.

trace/ftrace.c +1 -1
index 61692a8..5e8cedf 100644

Lines of this file are not shown. View the raw message.

trace/qmp.c +1 -1
index 756086c..cbb8c48 100644

Lines of this file are not shown. View the raw message.

ui/console.c +2 -2
index a8868fc..fc05eb5 100644

Lines of this file are not shown. View the raw message.

ui/gtk-egl.c +1 -1
index 9390c67..2c4fb0b 100644

Lines of this file are not shown. View the raw message.

ui/gtk-gl-area.c +1 -1
index 147ad6f..6a3147e 100644

Lines of this file are not shown. View the raw message.

ui/gtk.c +2 -2
index ef5bc42..289f316 100644

Lines of this file are not shown. View the raw message.

ui/input-keymap.c +16 -16
index 3d4e66b..92e04ec 100644

Lines of this file are not shown. View the raw message.

ui/input-legacy.c +1 -1
index e5d4db1..ba2971b 100644

Lines of this file are not shown. View the raw message.

ui/input.c +2 -2
index 51b1019..ce1f1bf 100644

Lines of this file are not shown. View the raw message.

ui/keymaps.c +1 -1
index 43fe604..2fe3550 100644

Lines of this file are not shown. View the raw message.

ui/spice-core.c +2 -2
index ae8921a..e019ef7 100644

Lines of this file are not shown. View the raw message.

ui/spice-display.c +1 -1
index fe73482..c95ec1f 100644

Lines of this file are not shown. View the raw message.

ui/vnc-auth-sasl.c +1 -1
index 3751a77..a8a05bc 100644

Lines of this file are not shown. View the raw message.

ui/vnc-auth-vencrypt.c +1 -1
index d99ea36..c1eae2d 100644

Lines of this file are not shown. View the raw message.

ui/vnc-ws.c +1 -1
index 950f1cd..ce87f01 100644

Lines of this file are not shown. View the raw message.

ui/vnc.c +3 -3
index e164eb7..5031c19 100644

Lines of this file are not shown. View the raw message.

ui/x_keymap.c +1 -1
index 22e0e77..09152ba 100644

Lines of this file are not shown. View the raw message.

util/aio-posix.c +1 -1
index d8f0cb4..6f6d16b 100644

Lines of this file are not shown. View the raw message.

util/async.c +1 -1
index 4dd9d95..7f6e182 100644

Lines of this file are not shown. View the raw message.

util/buffer.c +1 -1
index d8bb874..d758af7 100644

Lines of this file are not shown. View the raw message.

util/hbitmap.c +1 -1
index 58a2c93..a98c9c8 100644

Lines of this file are not shown. View the raw message.

util/lockcnt.c +1 -1
index 4f88dcf..79bed0d 100644

Lines of this file are not shown. View the raw message.

util/oslib-posix.c +1 -1
index 13b6f8d..c0a81e2 100644

Lines of this file are not shown. View the raw message.

util/oslib-win32.c +1 -1
index bb5ad28..82a5c5a 100644

Lines of this file are not shown. View the raw message.

util/qemu-config.c +1 -1
index c651c48..96dd98a 100644

Lines of this file are not shown. View the raw message.

util/qemu-coroutine-lock.c +1 -1
index 5a80c10..85a8c27 100644

Lines of this file are not shown. View the raw message.

util/qemu-coroutine.c +1 -1
index 9eff7fd..ddd6efa 100644

Lines of this file are not shown. View the raw message.

util/qemu-sockets.c +1 -1
index 7f13e8a..3f43b40 100644

Lines of this file are not shown. View the raw message.

util/qemu-thread-posix.c +1 -1
index b789cf3..fa9dded 100644

Lines of this file are not shown. View the raw message.

util/qemu-thread-win32.c +1 -1
index ab60c0d..07f938c 100644

Lines of this file are not shown. View the raw message.

util/thread-pool.c +1 -1
index 610646d..38a28aa 100644

Lines of this file are not shown. View the raw message.

util/vfio-helpers.c +2 -2
index 006674c..5ac8c50 100644

Lines of this file are not shown. View the raw message.

vl.c +7 -7
index 3ef04ce..31678ed 100644

Lines of this file are not shown. View the raw message.

scripts/qapi/types.py +3 -3
index 64d9c0f..35c206c 100644

Lines of this file are not shown. View the raw message.

scripts/qapi/visit.py +3 -3
index 5d72d89..1fdeabd 100644

Lines of this file are not shown. View the raw message.

scripts/tracetool/backend/ftrace.py +1 -1
index 92f71b2..4db92af 100644

Lines of this file are not shown. View the raw message.

scripts/tracetool/backend/log.py +1 -1
index 78933d0..819299c 100644

Lines of this file are not shown. View the raw message.

trace-events +1 -1
index 855b0ab..af0edf6 100644

Lines of this file are not shown. View the raw message.

ui/cocoa.m +2 -2
index 18de0bb..96a96e3 100644

Lines of this file are not shown. View the raw message.

version.rc +1 -1
index d8e1569..cbca012 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Part of the diff is not shown here. View the raw message.

#1 lore raw

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Quoted 5 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

I agree there is a problem with stale files. But linux, for instance, asks for a "make mrproper" to avoid this.

Quoted 10 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

I think your idea conflicts with what Markus has started to do:

commit d8e39b70625d4ba1e998439d1a077b4b978930e7

Author: Markus Armbruster <[email protected]>
Date:   Thu Feb 1 12:18:28 2018 +0100

Use #include "..." for our own headers, <...> for others

System headers should be included with <...>, our own headers with "...". Offenders tracked down with an ugly, brittle and probably buggy Perl script. Previous iteration was commit a9c94277f0.

Delete inclusions of "string.h" and "strings.h" instead of fixing them to <string.h> and <strings.h>, because we always include these via osdep.h.

Put the cleaned up system header includes first.

While there, separate #include from file comment with exactly one blank line.

commit a9c94277f07d19d3eb14f199c3e93491aa3eae0e

Author: Markus Armbruster <[email protected]>
Date:   Wed Jun 22 19:11:19 2016 +0200

Use #include "..." for our own headers, <...> for others

Tracked down with an ugly, brittle and probably buggy Perl script.

Also move includes converted to <...> up so they get included before ours where that's obviously okay.

Thanks,
Laurent

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 30 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Quoted 8 lines
Quoted 5 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

I agree there is a problem with stale files. But linux, for instance, asks for a "make mrproper" to avoid this.

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

Quoted 5 lines
Quoted 5 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Quoted 7 lines
Quoted 5 lines

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

I think your idea conflicts with what Markus has started to do:

Yes, I don't think we should revert what Markus started. Both ways of
referencing QEMU headers have downsides, but I think "..." has fewer downsides that "<....">.

The problem Michael is tackling should be pretty rare, because moist developers aren't frequently switching between srcdir==builddir and srcdir!=biulddir setups - they have their preference for which to use and stick with it. As long as we get ./configure to warn about the dirty srcdir it should be good enough

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#3 lore raw
Quoted 4 lines · Daniel P. Berrangé

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

We already do this in our makefile...it just doesn't check every single generated file.

thanks
-- PMM

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw
Quoted 8 lines · Peter Maydell
Quoted 4 lines · Daniel P. Berrangé

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

We already do this in our makefile...it just doesn't check every single generated file.

Ah yes, indeed:

$ make
Makefile:59: *** This is an out of tree build but your source tree
(/home/berrange/src/virt/qemu) seems to have been used for an in-tree
build. You can fix this by running "make distclean && rm -rf *-linux-user
 *-softmmu" in your source tree.  Stop.

It is checking for existance of config-host.mak.

We have a convenient list of generated files in $(GENERATED_FILES), so I wonder if there's a practical way to check all of those too.

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#5 lore raw
Quoted 19 lines · Daniel P. Berrangé
Quoted 8 lines · Peter Maydell
Quoted 4 lines · Daniel P. Berrangé

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

We already do this in our makefile...it just doesn't check every single generated file.

Ah yes, indeed:

$ make
Makefile:59: *** This is an out of tree build but your source tree
(/home/berrange/src/virt/qemu) seems to have been used for an in-tree
build. You can fix this by running "make distclean && rm -rf *-linux-user
 *-softmmu" in your source tree.  Stop.
Quoted 7 lines

It is checking for existance of config-host.mak.

We have a convenient list of generated files in $(GENERATED_FILES), so I wonder if there's a practical way to check all of those too.

Regards,
Daniel

With my patch presence of these files mostly stops being an issue.

Quoted 4 lines
Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#21 lore raw
In reply to Laurent Vivier
Quoted 8 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Are you sure? I just tested and that is not the case with either gcc or clang.

Quoted 5 lines
Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Quoted 8 lines

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

This is exactly what we do.

Quoted 6 lines

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Since we do not use -iquote, "" just adds the current directory.

Quoted 8 lines
Quoted 5 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

I agree there is a problem with stale files. But linux, for instance, asks for a "make mrproper" to avoid this.

Using <> we avoid the problem completely and create slightly less work for the preprocessor.

Quoted 38 lines
Quoted 10 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

I think your idea conflicts with what Markus has started to do:

commit d8e39b70625d4ba1e998439d1a077b4b978930e7

Author: Markus Armbruster <[email protected]>
Date:   Thu Feb 1 12:18:28 2018 +0100

Use #include "..." for our own headers, <...> for others

System headers should be included with <...>, our own headers with "...". Offenders tracked down with an ugly, brittle and probably buggy Perl script. Previous iteration was commit a9c94277f0.

Delete inclusions of "string.h" and "strings.h" instead of fixing them to <string.h> and <strings.h>, because we always include these via osdep.h.

Put the cleaned up system header includes first.

While there, separate #include from file comment with exactly one blank line.

commit a9c94277f07d19d3eb14f199c3e93491aa3eae0e

Author: Markus Armbruster <[email protected]>
Date:   Wed Jun 22 19:11:19 2016 +0200

Use #include "..." for our own headers, <...> for others

Quoted 7 lines

Tracked down with an ugly, brittle and probably buggy Perl script.

Also move includes converted to <...> up so they get included before ours where that's obviously okay.

Thanks,
Laurent

I suspect we previously actually did have headers in the same directory as source so it was somewhat helpful. They all have been moved out to include now.

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#6 lore raw
In reply to Daniel P. Berrangé
Quoted 54 lines · Daniel P. Berrangé
Quoted 30 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Quoted 8 lines
Quoted 5 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

I agree there is a problem with stale files. But linux, for instance, asks for a "make mrproper" to avoid this.

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

Quoted 9 lines
Quoted 9 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

I think your idea conflicts with what Markus has started to do:

Yes, I don't think we should revert what Markus started. Both ways of
referencing QEMU headers have downsides, but I think "..." has fewer downsides that "<....">.

Could you please explain what the advantage of "" is? It seems to be gone since we moved headers away from source.

Quoted 6 lines

The problem Michael is tackling should be pretty rare, because moist developers aren't frequently switching between srcdir==builddir and srcdir!=biulddir setups - they have their preference for which to use and stick with it. As long as we get ./configure to warn about the dirty srcdir it should be good enough

Quoted 6 lines

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#7 lore raw
Quoted 59 lines · Michael S. Tsirkin
Quoted 58 lines · Daniel P. Berrangé
Quoted 30 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Quoted 8 lines
Quoted 5 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

I agree there is a problem with stale files. But linux, for instance, asks for a "make mrproper" to avoid this.

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

Quoted 12 lines
Quoted 10 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

I think your idea conflicts with what Markus has started to do:

Quoted 7 lines
Quoted 3 lines

Yes, I don't think we should revert what Markus started. Both ways of
referencing QEMU headers have downsides, but I think "..." has fewer downsides that "<....">.

Could you please explain what the advantage of "" is? It seems to be gone since we moved headers away from source.

We moved *some* headers into the include/ directory tree.

I still count 650+ headers which are alongside the .c files.

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#8 lore raw
Quoted 68 lines · Daniel P. Berrangé
Quoted 59 lines · Michael S. Tsirkin
Quoted 58 lines · Daniel P. Berrangé
Quoted 30 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Quoted 8 lines
Quoted 5 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

I agree there is a problem with stale files. But linux, for instance, asks for a "make mrproper" to avoid this.

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

Quoted 12 lines
Quoted 10 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

I think your idea conflicts with what Markus has started to do:

Quoted 7 lines
Quoted 3 lines

Yes, I don't think we should revert what Markus started. Both ways of
referencing QEMU headers have downsides, but I think "..." has fewer downsides that "<....">.

Could you please explain what the advantage of "" is? It seems to be gone since we moved headers away from source.

Quoted 6 lines

We moved *some* headers into the include/ directory tree.

I still count 650+ headers which are alongside the .c files.

Regards,
Daniel

So for these, we should use "". None of these are generated files though.

Quoted 4 lines
Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#9 lore raw
Quoted 69 lines · Michael S. Tsirkin
Quoted 68 lines · Daniel P. Berrangé
Quoted 66 lines · Michael S. Tsirkin
Quoted 54 lines · Daniel P. Berrangé
Quoted 30 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Quoted 8 lines
Quoted 5 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

I agree there is a problem with stale files. But linux, for instance, asks for a "make mrproper" to avoid this.

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

Quoted 9 lines
Quoted 9 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

I think your idea conflicts with what Markus has started to do:

Yes, I don't think we should revert what Markus started. Both ways of
referencing QEMU headers have downsides, but I think "..." has fewer downsides that "<....">.

Could you please explain what the advantage of "" is? It seems to be gone since we moved headers away from source.

Quoted 5 lines
Quoted 3 lines

We moved *some* headers into the include/ directory tree.

I still count 650+ headers which are alongside the .c files.

So for these, we should use "". None of these are generated files though.

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "". Having a consistent message for developers is one of the key reasons why Markus submitted the patches to standardize on the use of "" for QEMU header files, leaving <> for system headers & external dependancies.

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#10 lore raw
Quoted 76 lines · Daniel P. Berrangé
Quoted 69 lines · Michael S. Tsirkin
Quoted 68 lines · Daniel P. Berrangé
Quoted 66 lines · Michael S. Tsirkin
Quoted 54 lines · Daniel P. Berrangé
Quoted 30 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Quoted 8 lines
Quoted 5 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

I agree there is a problem with stale files. But linux, for instance, asks for a "make mrproper" to avoid this.

We can follow what autoconf does, and add a check to configure to see if there are generated files left in the source dir, when configuring with builddir != srcdir, and exit with error, telling user to clean their src dir first.

Quoted 9 lines
Quoted 9 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

I think your idea conflicts with what Markus has started to do:

Yes, I don't think we should revert what Markus started. Both ways of
referencing QEMU headers have downsides, but I think "..." has fewer downsides that "<....">.

Could you please explain what the advantage of "" is? It seems to be gone since we moved headers away from source.

Quoted 5 lines
Quoted 3 lines

We moved *some* headers into the include/ directory tree.

I still count 650+ headers which are alongside the .c files.

So for these, we should use "". None of these are generated files though.

Quoted 8 lines

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "". Having a consistent message for developers is one of the key reasons why Markus submitted the patches to standardize on the use of "" for QEMU header files, leaving <> for system headers & external dependancies.

Regards,
Daniel

I guess it's in the eye of the beholder. The simple rule since days of K&R is that "" looks in the current directory of the source. Whoever learned C knows this.

So use "" if your header is in the same directory as the source.

This will guarantee that whoever violates the rule will get a patch that does not build. Having our own rules without any good technical reason that are not enforced by the build system just leads to small patches from new contributors getting up to v23.

Quoted 4 lines
Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#30 lore raw
In reply to Michael S. Tsirkin
Quoted 21 lines · Michael S. Tsirkin

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Quoted 5 lines

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

For the record, the stated advantage is that one can have a header file that happens to match the system header.

To put it bluntly that does not work as designed.

For example, if a system header foo.h somewhere has #include <trace.h> then the compiler will happily pull in our own version (since that is in the -I path) and completely ignore the system one, breaking things in the process.

When does it make sense to use include ""? When the header is a directory-specific one, located with the source. This approach would both be enforced by the compiler and help people know where to find the header.

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#31 lore raw
In reply to Michael S. Tsirkin
Quoted 16 lines · Michael S. Tsirkin

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

Quoted 8 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

Stale header files are a pain. I often do make distclean before checking out a radically different QEMU version to avoid the problem.

This patch trades off the stale header file issue for a new approach to using <> vs "", which will be hard to use consistently in the future since it is unconventional.

Is the build time improvement worth it (please post numbers)?

Stefan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#32 lore raw
Quoted 26 lines · Stefan Hajnoczi
Quoted 16 lines · Michael S. Tsirkin

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

As generated files are not in the search directory (unless the build directory happens to match the source directory), it does not make sense to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

Quoted 8 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

Quoted 5 lines

Stale header files are a pain. I often do make distclean before checking out a radically different QEMU version to avoid the problem.

This patch trades off the stale header file issue for a new approach to using <> vs "", which will be hard to use consistently

The proposed rule is to use <> everywhere except if the file is in the source directory. It will be very easy to use consistently for the simple reason that compiler will enforce it. If you use <> for a header in the current directory build fails. So you are forced to use "".

Quoted 2 lines

in the future
since it is unconventional.

All compilers I know without exception implement
include <> meaning look in -I search path, and
include "" meaning look in current directory then
in -I search path.

Looks conventional to me.

Quoted 3 lines

Is the build time improvement worth it (please post numbers)?

Stefan

Haven't tested it frankly. Will it convince anyone if it's marginally faster?

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#11 lore raw
In reply to Daniel P. Berrangé

Hi,

Quoted 4 lines
Quoted 1 line

So for these, we should use "". None of these are generated files though.

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "".

The rules are pretty simple though:

(1) Headers which are generated use <>.
(2) Headers which are in include/ use <>.
(3) Headers sitting in the same directory as the source files use "".

Other cases should not exist (when headers from another source directory are included they should most likely be moved to include/).

cheers,
Gerd

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#12 lore raw
Quoted 4 lines · Gerd Hoffmann

Hi,

Quoted 2 lines
Quoted 1 line

So for these, we should use "". None of these are generated files though.

Quoted 8 lines
Quoted 2 lines

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "".

The rules are pretty simple though:

(1) Headers which are generated use <>.
(2) Headers which are in include/ use <>.
(3) Headers sitting in the same directory as the source files use "".

We have 1200 header files in QEMU - a developer might just reasonably remember which header file is a QEMU header, vs which is a 3rd party system header. Expecting devs to remember which of those 3 buckets each QEMU header falls under is unreasonable IMHO.

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#19 lore raw
In reply to Gerd Hoffmann
Quoted 4 lines · Gerd Hoffmann

Hi,

Quoted 2 lines
Quoted 1 line

So for these, we should use "". None of these are generated files though.

Quoted 8 lines
Quoted 2 lines

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "".

The rules are pretty simple though:

(1) Headers which are generated use <>.
(2) Headers which are in include/ use <>.
(3) Headers sitting in the same directory as the source files use "".

Ugh, no. Please don't. The normal way of including header files in QEMU is to use "" - also for headers that are not in the same directory. For example just do a

grep -r '^#include.*hw/' hw/

from the top directory and you'll see what I mean. Changing that rule is crazy. So please, let's just fix the configure script to detect some more stale files in the source tree, and we're done.

Thomas

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#13 lore raw
In reply to Daniel P. Berrangé
Quoted 14 lines · Daniel P. Berrangé
Quoted 4 lines · Gerd Hoffmann

Hi,

Quoted 2 lines
Quoted 1 line

So for these, we should use "". None of these are generated files though.

Quoted 8 lines
Quoted 2 lines

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "".

The rules are pretty simple though:

(1) Headers which are generated use <>.
(2) Headers which are in include/ use <>.
(3) Headers sitting in the same directory as the source files use "".

Quoted 7 lines

We have 1200 header files in QEMU - a developer might just reasonably remember which header file is a QEMU header, vs which is a 3rd party system header. Expecting devs to remember which of those 3 buckets each QEMU header falls under is unreasonable IMHO.

Regards,
Daniel

That's the C language for you though. For better or worse, these are the rules that K&R came up with.

Quoted 4 lines
Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#20 lore raw
In reply to Thomas Huth
Quoted 8 lines · Thomas Huth
Quoted 7 lines · Gerd Hoffmann

Hi,

Quoted 4 lines
Quoted 1 line

So for these, we should use "". None of these are generated files though.

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "".

Quoted 7 lines
Quoted 5 lines

The rules are pretty simple though:

(1) Headers which are generated use <>.
(2) Headers which are in include/ use <>.
(3) Headers sitting in the same directory as the source files use "".

Ugh, no. Please don't. The normal way of including header files in QEMU

Stress on "in QEMU".

Quoted 11 lines

is to use "" - also for headers that are not in the same directory. For example just do a

grep -r '^#include.*hw/' hw/

from the top directory and you'll see what I mean. Changing that rule is crazy.
So please, let's just fix the configure script to detect some more stale files in the source tree, and we're done.

Thomas

The rule probably served a useful purpose when all headers where in the same directory as the source. we moved them out so that is no longer the case.

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#16 lore raw
In reply to Daniel P. Berrangé
Quoted 10 lines · Daniel P. Berrangé
Quoted 9 lines · Gerd Hoffmann

Hi,

Quoted 4 lines
Quoted 1 line

So for these, we should use "". None of these are generated files though.

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "".

The rules are pretty simple though:

Quoted 8 lines
Quoted 3 lines

(1) Headers which are generated use <>.
(2) Headers which are in include/ use <>.
(3) Headers sitting in the same directory as the source files use "".

We have 1200 header files in QEMU - a developer might just reasonably remember which header file is a QEMU header, vs which is a 3rd party system header. Expecting devs to remember which of those 3 buckets each QEMU header falls under is unreasonable IMHO.

I agree with this in principle, but I don't find it unreasonable for someone to look up whether a header file exists in the same directory. I find that much simpler than to look up whether it is a system header, actually.

And I have to agree with Michael that his rule when to use "" (if the file is in the same directory) and when to use <> (otherwise) is actually what every C developer might do by instinct. (I guess it's also easier to check in a script than the original guideline?)

However, I also think that if any problem arises because "" was used for a generated file and that then uses a stale file, the bug is somewhere else. And I think that while Michael's proposal is the more intuitive
(C) way, it is a tiny bit more complicated to explain than 'Use "" for qemu headers, <> for everything else'.

But I guess the main advantage with using this rule I see is that it's better for people reading the code. It's just nice to know whether a file belongs to qemu or not by just looking at the #include statement. (Note that this implies that it is indeed more difficult to determine whether a header belongs to qemu than whether it sits in the same directory as the C file, though!) So I think the old (current) rule is better for reading code, Michael's rule would be better for writing code. I think reading code is what should be easier.

But since that may be eaten up by build breakages due to stale files, I don't have a strong opinion either way. I just wanted to chime in because in my opinion 'Use "" for headers in the same directory, <> for everything else' is by no means an unreasonably complicated rule for people writing code.

Max

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#14 lore raw
In reply to Michael S. Tsirkin
Quoted 15 lines · Michael S. Tsirkin
Quoted 14 lines · Daniel P. Berrangé
Quoted 12 lines · Gerd Hoffmann

Hi,

Quoted 4 lines
Quoted 1 line

So for these, we should use "". None of these are generated files though.

That leads to crazy inconsistent message for developers where 50% of QEMU header files must use <> and the other 50% of header files must use "".

The rules are pretty simple though:

(1) Headers which are generated use <>.
(2) Headers which are in include/ use <>.
(3) Headers sitting in the same directory as the source files use "".

Quoted 7 lines
Quoted 4 lines

We have 1200 header files in QEMU - a developer might just reasonably remember which header file is a QEMU header, vs which is a 3rd party system header. Expecting devs to remember which of those 3 buckets each QEMU header falls under is unreasonable IMHO.

That's the C language for you though. For better or worse, these are the rules that K&R came up with.

No one seriously tries to keep compliance with original K&R C these days, things have moved on massively since then.

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#15 lore raw
Quoted 5 lines · Daniel P. Berrangé
Quoted 2 lines

That's the C language for you though. For better or worse, these are the rules that K&R came up with.

No one seriously tries to keep compliance with original K&R C these days, things have moved on massively since then.

Not where the preprocessor is involved.

Quoted 6 lines

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#33 lore raw
In reply to Michael S. Tsirkin
Quoted 2 lines · Michael S. Tsirkin

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h".

[I'm replying without having read the rest of the thread, so bear with me if I repeat some of the other comments that have already been made]

And Markus even just did a cleanup along those lines.

Quoted 7 lines

However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

It's also nice when "file" means file belonging to our project, and <file> means 3rd-party file. So we have to choose which semantics are easier; perhaps better Makefile rules that prevent us from seeing stale files is a better solution than figuring out which files are generated.

Quoted 3 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory),

Why can't we fix Makefile to include BOTH the build and the source directories (to pick up generated files first, and then version-controlled files), and possibly include logic to simplify to a single -I instead of two when doing in-tree builds?

Quoted 5 lines

it does not make sense
to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

Quoted 8 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

I'm not sure I'm a fan of this patch yet, if there may be other alternatives that solve the real issue of stale generated files breaking incremental builds.

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
#37 lore raw
In reply to Michael S. Tsirkin
Quoted 2 lines · Michael S. Tsirkin

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h".

[I'm replying without having read the rest of the thread, so bear with me if I repeat some of the other comments that have already been made]

And Markus even just did a cleanup along those lines.

Quoted 7 lines

However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

It's also nice when "file" means file belonging to our project, and <file> means 3rd-party file. So we have to choose which semantics are easier; perhaps better Makefile rules that prevent us from seeing stale files is a better solution than figuring out which files are generated.

Quoted 3 lines

As generated files are not in the search directory (unless the build directory happens to match the source directory),

Why can't we fix Makefile to include BOTH the build and the source directories (to pick up generated files first, and then version-controlled files), and possibly include logic to simplify to a single -I instead of two when doing in-tree builds?

Quoted 5 lines

it does not make sense
to include them with "" - doing so is merely more work for preprocessor and a source or errors if a stale file happens to exist in the source directory.

Quoted 8 lines

This changes include directives for all generated files, across the tree. The idea is to avoid sending a huge amount of email. But when merging, the changes will be split with one commit per file, e.g. for ease of bisect in case of build failures, and to ease merging.

Note that should some generated files be missed by this tree-wide refactoring, it isn't a big deal - this merely maintains the status quo, and this can be addressed by a separate patch on top.

I'm not sure I'm a fan of this patch yet, if there may be other alternatives that solve the real issue of stale generated files breaking incremental builds.

Signature · 8 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#38 lore raw
In reply to Michael S. Tsirkin

Am 20.03.2018 um 02:54 schrieb Michael S. Tsirkin:

Quoted 9 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Hello Michael,

the compiler (or to be more precise the preprocessor) works as you describe it, so technically all include files which are only found by searching the include paths would be found faster with <> than with "":
the unsuccessful search relative to the source file directory would be omitted. Practically this will not save much build time because of caching effects. So the suggested change is not required to get faster build speed.

Using <> for system include files and "" for local include files is a convention, and as far as I know most projects adhere to that convention. So does QEMU currently. Such conventions are not only important for humans, but also for tools. There are more tools than the C preprocessor which handle <> and "" differently. For example the GNU compiler uses -MD or -MMD to automatically generate dependency rules for make. While -MD generates dependencies to all include files, -MMD does so only for user include files, but not for system include files. "user" and "system" means the different forms how include statements are written. QEMU still seems to use -MMD:

rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d

Other tools like static code analysers could restrict their warning and error messages to user include files and ignore problems in system include files.

Very large projects often split in sub projects, maybe one of them describing the API. Then that API headers are similar to system headers and can be included using <>, although they still belong to the same larger project. Do we have a stable QEMU API described in a (small) number of include files which typically do not change? If yes, then those include files could be included using <> because we don't need them in dependency lists or in static code analysis reports.

For all other QEMU include files, I'd stick to using "".

Regards
Stefan

#45 lore raw
In reply to Michael S. Tsirkin

Am 20.03.2018 um 02:54 schrieb Michael S. Tsirkin:

Quoted 9 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Hello Michael,

the compiler (or to be more precise the preprocessor) works as you describe it, so technically all include files which are only found by searching the include paths would be found faster with <> than with "":
the unsuccessful search relative to the source file directory would be omitted. Practically this will not save much build time because of caching effects. So the suggested change is not required to get faster build speed.

Using <> for system include files and "" for local include files is a convention, and as far as I know most projects adhere to that convention. So does QEMU currently. Such conventions are not only important for humans, but also for tools. There are more tools than the C preprocessor which handle <> and "" differently. For example the GNU compiler uses -MD or -MMD to automatically generate dependency rules for make. While -MD generates dependencies to all include files, -MMD does so only for user include files, but not for system include files. "user" and "system" means the different forms how include statements are written. QEMU still seems to use -MMD:

rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d

Other tools like static code analysers could restrict their warning and error messages to user include files and ignore problems in system include files.

Very large projects often split in sub projects, maybe one of them describing the API. Then that API headers are similar to system headers and can be included using <>, although they still belong to the same larger project. Do we have a stable QEMU API described in a (small) number of include files which typically do not change? If yes, then those include files could be included using <> because we don't need them in dependency lists or in static code analysis reports.

For all other QEMU include files, I'd stick to using "".

Regards
Stefan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#34 lore raw
In reply to Eric Blake
Quoted 17 lines · Eric Blake
Quoted 2 lines · Michael S. Tsirkin

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h".

[I'm replying without having read the rest of the thread, so bear with me if I repeat some of the other comments that have already been made]

And Markus even just did a cleanup along those lines.

Quoted 7 lines

However this rule actually does not make sense and creates issues for when the included file is generated.

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Quoted 4 lines

It's also nice when "file" means file belonging to our project, and <file> means 3rd-party file. So we have to choose which semantics are easier; perhaps better Makefile rules that prevent us from seeing stale files is a better solution than figuring out which files are generated.

That's what I've attempted here:

https://lists.gnu.org/archive/html/qemu-devel/2018-03/msg05421.html

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#35 lore raw
In reply to Eric Blake
Quoted 5 lines · Eric Blake

Why can't we fix Makefile to include BOTH the build and the source directories (to pick up generated files first, and then version-controlled files), and possibly include logic to simplify to a single -I instead of two when doing in-tree builds?

That's the issue. Whatever you do, #include "" pulls in the current directory first.

Signature · 1 line
MST
#36 lore raw
In reply to Eric Blake
Quoted 5 lines · Eric Blake

Why can't we fix Makefile to include BOTH the build and the source directories (to pick up generated files first, and then version-controlled files), and possibly include logic to simplify to a single -I instead of two when doing in-tree builds?

That's the issue. Whatever you do, #include "" pulls in the current directory first.

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#39 lore raw
In reply to Stefan Weil
Quoted 11 lines · Stefan Weil

Using <> for system include files and "" for local include files is a convention, and as far as I know most projects adhere to that convention. So does QEMU currently. Such conventions are not only important for humans, but also for tools. There are more tools than the C preprocessor which handle <> and "" differently. For example the GNU compiler uses -MD or -MMD to automatically generate dependency rules for make. While -MD generates dependencies to all include files, -MMD does so only for user include files, but not for system include files. "user" and "system" means the different forms how include statements are written. QEMU still seems to use -MMD:

Quoted 1 line

rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d

To my knowledge, and according to my limited testing, system headers in this context means
the default ones not supplied with -I.

If I had to guess, that is the definition most other tools are likely to use.

Quoted 4 lines

Other tools like static code analysers could restrict their warning and error messages to user include files and ignore problems in system include files.

Could you give some exacmples of tools like that?

IMHO they would not work correctly if they did not treat include directives the way compiler does.

C standard is pretty explicit that the only difference is extra directories searched:

A preprocessing directive of the form

# include "q-char-sequence" new-line
causes the replacement of that directive by the entire contents of the source file identified
by the specified sequence between the " delimiters. The named source file is searched
for in an implementation-defined manner. If this search is not supported, or if the search
fails, the directive is reprocessed as if it read
# include <h-char-sequence> new-line
with the identical contained sequence (including > characters, if any) from the original
directive.
Quoted 8 lines

Very large projects often split in sub projects, maybe one of them describing the API. Then that API headers are similar to system headers and can be included using <>, although they still belong to the same larger project. Do we have a stable QEMU API described in a (small) number of include files which typically do not change? If yes, then those include files could be included using <> because we don't need them in dependency lists or in static code analysis reports.

Quoted 4 lines

For all other QEMU include files, I'd stick to using "".

Regards
Stefan

Most people know that system headers are the ones in /usr/include The distinction that they are pulled in with include "" is a QEMU construct.

If we want to be able to distinguish between internal and external headers, the standard way to do it
in C is by prefixing the names with qemu/ qemu- or qemu_.

In fact we kind of already do this - if you see a name with a slash in there you can be pretty sure it's internal to qemu.

Exceptions are elf.h glib-compat.h and the generated trace.h.

Let's
mv include/* include/qemu/ ?

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#17 lore raw
In reply to Max Reitz
Quoted 8 lines · Max Reitz

But I guess the main advantage with using this rule I see is that it's better for people reading the code. It's just nice to know whether a file belongs to qemu or not by just looking at the #include statement. (Note that this implies that it is indeed more difficult to determine whether a header belongs to qemu than whether it sits in the same directory as the C file, though!) So I think the old (current) rule is better for reading code, Michael's rule would be better for writing code. I think reading code is what should be easier.

How about prefixing all internal headers with qemu/ ?

That's a way to avoid namespace collisions that is actually standard.

Signature · 1 line
MST 
#18 lore raw
In reply to Max Reitz
Quoted 8 lines · Max Reitz

But I guess the main advantage with using this rule I see is that it's better for people reading the code. It's just nice to know whether a file belongs to qemu or not by just looking at the #include statement. (Note that this implies that it is indeed more difficult to determine whether a header belongs to qemu than whether it sits in the same directory as the C file, though!) So I think the old (current) rule is better for reading code, Michael's rule would be better for writing code. I think reading code is what should be easier.

How about prefixing all internal headers with qemu/ ?

That's a way to avoid namespace collisions that is actually standard.

Signature · 6 lines
MST 

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#40 lore raw
In reply to Michael S. Tsirkin
Quoted 12 lines · Michael S. Tsirkin
Quoted 11 lines · Stefan Weil

Using <> for system include files and "" for local include files is a convention, and as far as I know most projects adhere to that convention. So does QEMU currently. Such conventions are not only important for humans, but also for tools. There are more tools than the C preprocessor which handle <> and "" differently. For example the GNU compiler uses -MD or -MMD to automatically generate dependency rules for make. While -MD generates dependencies to all include files, -MMD does so only for user include files, but not for system include files. "user" and "system" means the different forms how include statements are written. QEMU still seems to use -MMD:

Quoted 5 lines
Quoted 1 line

rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d

To my knowledge, and according to my limited testing, system headers in this context means
the default ones not supplied with -I.

GCC's definition of system header is here:

https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#43 lore raw
In reply to Michael S. Tsirkin
Quoted 12 lines · Michael S. Tsirkin
Quoted 11 lines · Stefan Weil

Using <> for system include files and "" for local include files is a convention, and as far as I know most projects adhere to that convention. So does QEMU currently. Such conventions are not only important for humans, but also for tools. There are more tools than the C preprocessor which handle <> and "" differently. For example the GNU compiler uses -MD or -MMD to automatically generate dependency rules for make. While -MD generates dependencies to all include files, -MMD does so only for user include files, but not for system include files. "user" and "system" means the different forms how include statements are written. QEMU still seems to use -MMD:

Quoted 5 lines
Quoted 1 line

rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d

To my knowledge, and according to my limited testing, system headers in this context means
the default ones not supplied with -I.

GCC's definition of system header is here:

https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#44 lore raw
In reply to Stefan Weil
Quoted 8 lines · Stefan Weil

Very large projects often split in sub projects, maybe one of them describing the API. Then that API headers are similar to system headers and can be included using <>, although they still belong to the same larger project. Do we have a stable QEMU API described in a (small) number of include files which typically do not change? If yes, then those include files could be included using <> because we don't need them in dependency lists or in static code analysis reports.

QEMU doesn't have anything we'd call a stable API at the source level, anything is subject to change at any time, and often does.

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#41 lore raw
In reply to Daniel P. Berrangé
Quoted 19 lines · Daniel P. Berrangé
Quoted 12 lines · Michael S. Tsirkin
Quoted 11 lines · Stefan Weil

Using <> for system include files and "" for local include files is a convention, and as far as I know most projects adhere to that convention. So does QEMU currently. Such conventions are not only important for humans, but also for tools. There are more tools than the C preprocessor which handle <> and "" differently. For example the GNU compiler uses -MD or -MMD to automatically generate dependency rules for make. While -MD generates dependencies to all include files, -MMD does so only for user include files, but not for system include files. "user" and "system" means the different forms how include statements are written. QEMU still seems to use -MMD:

Quoted 5 lines
Quoted 1 line

rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d

To my knowledge, and according to my limited testing, system headers in this context means
the default ones not supplied with -I.

Quoted 7 lines

GCC's definition of system header is here:

https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html

Regards,
Daniel

Proves my point, does it not? You will note that it does not refer to include <> anywhere.

2.8 System Headers
The header files declaring interfaces to the operating system and runtime libraries often cannot be written in strictly conforming C. Therefore, GCC gives code found in system headers special treatment. All warnings, other than those generated by ‘#warning’ (see Diagnostics), are suppressed while GCC is processing a system header. Macros defined in a system header are immune to a few warnings wherever they are expanded. This immunity is granted on an ad-hoc basis, when we find that a warning generates lots of false positives because of code in macros defined in system headers.

Normally, only the headers found in specific directories are considered system headers. These directories are determined when GCC is compiled. There are, however, two ways to make normal headers into system headers:

Header files found in directories added to the search path with the -isystem and -idirafter command-line options are treated as system headers for the purposes of diagnostics.
There is also a directive, #pragma GCC system_header, which tells GCC to consider the rest of the current include file a system header, no matter where it was found. Code that comes before the ‘#pragma’ in the file is not affected. #pragma GCC system_header has no effect in the primary source file.

Conclusion: #include <> is ignored for purposes of determining whether a header is a system one or not.

Quoted 4 lines
Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#42 lore raw
In reply to Daniel P. Berrangé
Quoted 19 lines · Daniel P. Berrangé
Quoted 12 lines · Michael S. Tsirkin
Quoted 11 lines · Stefan Weil

Using <> for system include files and "" for local include files is a convention, and as far as I know most projects adhere to that convention. So does QEMU currently. Such conventions are not only important for humans, but also for tools. There are more tools than the C preprocessor which handle <> and "" differently. For example the GNU compiler uses -MD or -MMD to automatically generate dependency rules for make. While -MD generates dependencies to all include files, -MMD does so only for user include files, but not for system include files. "user" and "system" means the different forms how include statements are written. QEMU still seems to use -MMD:

Quoted 5 lines
Quoted 1 line

rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d

To my knowledge, and according to my limited testing, system headers in this context means
the default ones not supplied with -I.

Quoted 7 lines

GCC's definition of system header is here:

https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html

Regards,
Daniel

Proves my point, does it not? You will note that it does not refer to include <> anywhere.

2.8 System Headers
The header files declaring interfaces to the operating system and runtime libraries often cannot be written in strictly conforming C. Therefore, GCC gives code found in system headers special treatment. All warnings, other than those generated by ‘#warning’ (see Diagnostics), are suppressed while GCC is processing a system header. Macros defined in a system header are immune to a few warnings wherever they are expanded. This immunity is granted on an ad-hoc basis, when we find that a warning generates lots of false positives because of code in macros defined in system headers.

Normally, only the headers found in specific directories are considered system headers. These directories are determined when GCC is compiled. There are, however, two ways to make normal headers into system headers:

Header files found in directories added to the search path with the -isystem and -idirafter command-line options are treated as system headers for the purposes of diagnostics.
There is also a directive, #pragma GCC system_header, which tells GCC to consider the rest of the current include file a system header, no matter where it was found. Code that comes before the ‘#pragma’ in the file is not affected. #pragma GCC system_header has no effect in the primary source file.

Conclusion: #include <> is ignored for purposes of determining whether a header is a system one or not.

Quoted 4 lines
Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#22 lore raw
In reply to Michael S. Tsirkin
Quoted 29 lines · Michael S. Tsirkin
Quoted 8 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Are you sure? I just tested and that is not the case with either gcc or clang.

Quoted 5 lines
Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Quoted 8 lines

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

This is exactly what we do.

Quoted 8 lines
Quoted 6 lines

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Since we do not use -iquote, "" just adds the current directory.

So why don't we simply switch to use -iquote instead of -I for adding search paths for our own headers? We then would get a clean separation of QEMU headers from system headers.

Thomas

#29 lore raw
In reply to Michael S. Tsirkin
Quoted 29 lines · Michael S. Tsirkin
Quoted 8 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Are you sure? I just tested and that is not the case with either gcc or clang.

Quoted 5 lines
Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Quoted 8 lines

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

This is exactly what we do.

Quoted 8 lines
Quoted 6 lines

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Since we do not use -iquote, "" just adds the current directory.

So why don't we simply switch to use -iquote instead of -I for adding search paths for our own headers? We then would get a clean separation of QEMU headers from system headers.

Thomas

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#23 lore raw
In reply to Thomas Huth
Quoted 37 lines · Thomas Huth
Quoted 36 lines · Michael S. Tsirkin
Quoted 8 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Are you sure? I just tested and that is not the case with either gcc or clang.

Quoted 5 lines
Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Quoted 8 lines

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

This is exactly what we do.

Quoted 6 lines

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Quoted 7 lines
Quoted 1 line

Since we do not use -iquote, "" just adds the current directory.

So why don't we simply switch to use -iquote instead of -I for adding search paths for our own headers? We then would get a clean separation of QEMU headers from system headers.

Thomas

It still leaves us with a host of problems e.g. the problem of stale headers in the source directory.

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#24 lore raw

Am 21.03.2018 um 14:08 schrieb Michael S. Tsirkin:

Quoted 2 lines

It still leaves us with a host of problems e.g. the problem of stale headers in the source directory.

There have already been suggestions in the past to forbid in-tree builds. Would it help if configure would refuse to run from the root source directory? At least .gitignore could be much smaller then.

Stefan

#26 lore raw
In reply to Michael S. Tsirkin

Am 21.03.2018 um 14:08 schrieb Michael S. Tsirkin:

Quoted 2 lines

It still leaves us with a host of problems e.g. the problem of stale headers in the source directory.

There have already been suggestions in the past to forbid in-tree builds. Would it help if configure would refuse to run from the root source directory? At least .gitignore could be much smaller then.

Stefan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#25 lore raw
In reply to Stefan Weil
Quoted 9 lines · Stefan Weil

Am 21.03.2018 um 14:08 schrieb Michael S. Tsirkin:

Quoted 2 lines

It still leaves us with a host of problems e.g. the problem of stale headers in the source directory.

There have already been suggestions in the past to forbid in-tree builds. Would it help if configure would refuse to run from the root source directory? At least .gitignore could be much smaller then.

Stefan

I think I have a better idea, not relying on external tools. Will post a proposal shortly.

Signature · 6 lines
MST

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#27 lore raw
In reply to Michael S. Tsirkin
Quoted 40 lines · Michael S. Tsirkin
Quoted 39 lines · Thomas Huth
Quoted 37 lines · Michael S. Tsirkin
Quoted 8 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Are you sure? I just tested and that is not the case with either gcc or clang.

Quoted 5 lines
Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Quoted 8 lines

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

This is exactly what we do.

Quoted 6 lines

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Since we do not use -iquote, "" just adds the current directory.

Quoted 8 lines
Quoted 5 lines

So why don't we simply switch to use -iquote instead of -I for adding search paths for our own headers? We then would get a clean separation of QEMU headers from system headers.

Thomas

It still leaves us with a host of problems e.g. the problem of stale headers in the source directory.

We have a patch on list which effectively solves the problem of stale generated files in source directory, so that's largely a non-issue at this point IMHO.

Regards,
Daniel

Signature · 8 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#28 lore raw
Quoted 50 lines · Daniel P. Berrangé
Quoted 40 lines · Michael S. Tsirkin
Quoted 39 lines · Thomas Huth
Quoted 37 lines · Michael S. Tsirkin
Quoted 8 lines · Laurent Vivier

Le 20/03/2018 à 02:54, Michael S. Tsirkin a écrit :

Quoted 4 lines

QEMU coding style at the moment asks for all non-system include files to be used with #include "foo.h". However this rule actually does not make sense and creates issues for when the included file is generated.

If you change that, we can have issue when a system include has the same name as our local include. With "<FILE>", system header are taken first.

Are you sure? I just tested and that is not the case with either gcc or clang.

Quoted 5 lines
Quoted 4 lines

In C, include "file" means look in current directory, then on include search path. Current directory here means the source file directory.
By comparison include <file> means look on include search path.

Quoted 8 lines

Not exactly, there is the notion of "system header" too.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include <file>
This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation).

This is exactly what we do.

Quoted 6 lines

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option.

Since we do not use -iquote, "" just adds the current directory.

Quoted 8 lines
Quoted 5 lines

So why don't we simply switch to use -iquote instead of -I for adding search paths for our own headers? We then would get a clean separation of QEMU headers from system headers.

Thomas

It still leaves us with a host of problems e.g. the problem of stale headers in the source directory.

Quoted 6 lines

We have a patch on list which effectively solves the problem of stale generated files in source directory, so that's largely a non-issue at this point IMHO.

Regards,
Daniel

That was just one, and the solution is just to fail build.
I think we can strive to address at least some of the following:
- make sure that an incorrect use of a header fails to build
- make it easier for new developers to understand the codebase
- build correctly rather than fail in as many configurations as possible
- actually support a mix of in and out of tree builds

I think my patch under discussion does not address all issues here. I'll post a new proposal now.

Quoted 4 lines
Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel