[PATCH 0/3] trace: Minor cleanups to trace header includes

Peter Maydell posted 3 patches 2 weeks, 1 day ago
target/arm/hvf/trace.h | 1 +
system/dma-helpers.c   | 2 +-
target/arm/hvf/hvf.c   | 2 +-
trace/control-target.c | 1 -
trace/control.c        | 1 -
system/trace-events    | 7 +++++++
trace-events           | 7 -------
7 files changed, 10 insertions(+), 11 deletions(-)
create mode 100644 target/arm/hvf/trace.h
[PATCH 0/3] trace: Minor cleanups to trace header includes
Posted by Peter Maydell 2 weeks, 1 day ago
This series does some minor cleanups which deal with cases where some
C file is including a "trace/trace-<subdir>.h" file directly. Our
documentation in docs/devel/tracing.rst says that that should
generally not be done; instead there is a trace.h file which indirects
to the generated trace-<subdir>.h header.  The only exception is that
source files in the root directory include trace/trace-root.h.

The three exceptions fixed here are:
 * system/dma-helpers.c defined its trace events in the
   root trace-events file, not the system/trace-events file
 * we forgot to create the indirection trace.h for target/arm/hvf
 * a couple of source files in trace/ include trace-root.h when
   they don't use anything defined in it

thanks
-- PMM

Peter Maydell (3):
  system/dma-helpers.c: Move trace events to system/trace-events
  target/arm/hvf: Add trace.h header
  trace: Don't include trace-root.h in control.c or control-target.c

 target/arm/hvf/trace.h | 1 +
 system/dma-helpers.c   | 2 +-
 target/arm/hvf/hvf.c   | 2 +-
 trace/control-target.c | 1 -
 trace/control.c        | 1 -
 system/trace-events    | 7 +++++++
 trace-events           | 7 -------
 7 files changed, 10 insertions(+), 11 deletions(-)
 create mode 100644 target/arm/hvf/trace.h

-- 
2.34.1
Re: [PATCH 0/3] trace: Minor cleanups to trace header includes
Posted by Richard Henderson 1 week, 6 days ago
On 11/8/24 08:29, Peter Maydell wrote:
> Peter Maydell (3):
>    system/dma-helpers.c: Move trace events to system/trace-events
>    target/arm/hvf: Add trace.h header
>    trace: Don't include trace-root.h in control.c or control-target.c

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~