]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/uefi: Create and use trace.h wrapper header
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Jul 2025 14:24:12 +0000 (15:24 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 13 Jul 2025 09:08:07 +0000 (12:08 +0300)
The documentation of the trace subsystem (docs/devel/tracing.rst)
says that each subdirectory which uses trace events should create a
wrapper trace.h file which includes the trace/trace-foo.h generated
header, and that .c files then #include "trace.h".

We didn't follow this pattern in hw/uefi/.  Correct this by creating
and using the trace.h wrapper header.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/uefi/trace.h [new file with mode: 0644]
hw/uefi/var-service-core.c
hw/uefi/var-service-policy.c
hw/uefi/var-service-utils.c
hw/uefi/var-service-vars.c

diff --git a/hw/uefi/trace.h b/hw/uefi/trace.h
new file mode 100644 (file)
index 0000000..6aa1c93
--- /dev/null
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+#include "trace/trace-hw_uefi.h"
index 4836a0cb811674f1406d8abea7e2d75e69930292..feec5a59583b536568de3b26853cc81702d8121f 100644 (file)
@@ -12,7 +12,7 @@
 #include "hw/uefi/var-service-api.h"
 #include "hw/uefi/var-service-edk2.h"
 
-#include "trace/trace-hw_uefi.h"
+#include "trace.h"
 
 static int uefi_vars_pre_load(void *opaque)
 {
index 3b1155fe4ea1439bcc23bbc211e6290fb09f20ae..58da4adbebafe85c5e5fc461a00a556827424a12 100644 (file)
@@ -14,7 +14,7 @@
 #include "hw/uefi/var-service-api.h"
 #include "hw/uefi/var-service-edk2.h"
 
-#include "trace/trace-hw_uefi.h"
+#include "trace.h"
 
 static void calc_policy(uefi_var_policy *pol);
 
index c9ef46570f489790172824a2f8124e951fe81f65..258013f436afdd35fc1754054dee99dae2cd2ad0 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "hw/uefi/var-service.h"
 
-#include "trace/trace-hw_uefi.h"
+#include "trace.h"
 
 /* ------------------------------------------------------------------ */
 
index 7f98d77a38d13559f2d851650f76f0ea86ecedef..37d05b71cf702ed06ba1a9f207d0cdbb9adb542d 100644 (file)
@@ -12,7 +12,7 @@
 #include "hw/uefi/var-service-api.h"
 #include "hw/uefi/var-service-edk2.h"
 
-#include "trace/trace-hw_uefi.h"
+#include "trace.h"
 
 #define EFI_VARIABLE_ATTRIBUTE_SUPPORTED                                \
     (EFI_VARIABLE_NON_VOLATILE |                                        \