trace: switch position of headers to what Meson requires
Meson doesn't enjoy the same flexibility we have with Make in choosing
the include path. In particular the tracing headers are using
$(build_root)/$(<D).
In order to keep the include directives unchanged,
the simplest solution is to generate headers with patterns like
"trace/trace-audio.h" and place forwarding headers in the source tree
such that for example "audio/trace.h" includes "trace/trace-audio.h".
This patch is too ugly to be applied to the Makefiles now. It's only
a way to separate the changes to the tracing header files from the
Meson rewrite of the tracing logic.
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- .gitignore 0 additions, 1 deletion.gitignore
- Makefile 28 additions, 18 deletionsMakefile
- Makefile.objs 0 additions, 1 deletionMakefile.objs
- accel/kvm/trace.h 1 addition, 0 deletionsaccel/kvm/trace.h
- accel/tcg/cputlb.c 1 addition, 1 deletionaccel/tcg/cputlb.c
- accel/tcg/trace.h 1 addition, 0 deletionsaccel/tcg/trace.h
- accel/tcg/user-exec.c 1 addition, 1 deletionaccel/tcg/user-exec.c
- audio/trace.h 1 addition, 0 deletionsaudio/trace.h
- authz/trace.h 1 addition, 0 deletionsauthz/trace.h
- backends/tpm/trace.h 1 addition, 0 deletionsbackends/tpm/trace.h
- backends/trace.h 1 addition, 0 deletionsbackends/trace.h
- block/trace.h 1 addition, 0 deletionsblock/trace.h
- chardev/trace.h 1 addition, 0 deletionschardev/trace.h
- crypto/trace.h 1 addition, 0 deletionscrypto/trace.h
- dma-helpers.c 1 addition, 1 deletiondma-helpers.c
- exec.c 1 addition, 1 deletionexec.c
- gdbstub.c 1 addition, 1 deletiongdbstub.c
- hw/9pfs/trace.h 1 addition, 0 deletionshw/9pfs/trace.h
- hw/acpi/trace.h 1 addition, 0 deletionshw/acpi/trace.h
- hw/alpha/trace.h 1 addition, 0 deletionshw/alpha/trace.h
Loading
Please register or sign in to comment