Blame SOURCES/0118-types-skip-field-lines-that-start-with-comments.patch

c5cada
From b0a361c0a9095b396ff7100203c767ec9ffd2cfa Mon Sep 17 00:00:00 2001
c5cada
From: "Dmitry V. Levin" <ldv@altlinux.org>
c5cada
Date: Tue, 16 Jun 2020 08:00:00 +0000
c5cada
Subject: [PATCH] types: skip field lines that start with comments
c5cada
c5cada
This allows to exclude certain fields from type checks by placing
c5cada
comments at the beginning of the corresponding lines.
c5cada
c5cada
* types/find_last_type_fields.awk: Skip lines starting with spaces
c5cada
followed by "/".
c5cada
---
c5cada
 types/find_last_type_fields.awk | 2 +-
c5cada
 1 file changed, 1 insertion(+), 1 deletion(-)
c5cada
c5cada
Index: strace-5.7/types/find_last_type_fields.awk
c5cada
===================================================================
c5cada
--- strace-5.7.orig/types/find_last_type_fields.awk	2020-01-21 19:02:38.000000000 +0100
c5cada
+++ strace-5.7/types/find_last_type_fields.awk	2020-11-09 04:47:06.976785148 +0100
c5cada
@@ -17,7 +17,7 @@
c5cada
 		print a[1] "." last_field
c5cada
 		next
c5cada
 	}
c5cada
-	if (match($0, /^[[:space:]]+[^];:[]+[[:space:]]+([^][:space:];:[]+)(\[[^];:[]*\])?;.*$/, a)) {
c5cada
+	if (match($0, /^[[:space:]]+[^];[:space:]:\/[][^];:[]*[[:space:]]+([^][:space:];:[]+)(\[[^];:[]*\])?;.*$/, a)) {
c5cada
 		last_field = a[1]
c5cada
 		next
c5cada
 	}
c5cada
Index: strace-5.7/types/check-io_uring.c
c5cada
===================================================================
c5cada
--- strace-5.7.orig/types/check-io_uring.c	2020-11-09 04:47:06.977785139 +0100
c5cada
+++ strace-5.7/types/check-io_uring.c	2020-11-09 04:49:10.033732186 +0100
c5cada
@@ -14,13 +14,13 @@
c5cada
 #endif /* HAVE_STRUCT_IO_SQRING_OFFSETS */
c5cada
 
c5cada
 #ifdef HAVE_STRUCT_IO_CQRING_OFFSETS
c5cada
-# ifdef HAVE_STRUCT_IO_CQRING_OFFSETS_RESV
c5cada
+# ifdef HAVE_STRUCT_IO_CQRING_OFFSETS_CQES
c5cada
 static_assert(sizeof(struct io_cqring_offsets) == sizeof(struct_io_cqring_offsets),
c5cada
       "struct io_cqring_offsets size mismatch, please update the decoder or fix the kernel");
c5cada
 # else
c5cada
-static_assert(sizeof(struct io_cqring_offsets) <= offsetof(struct_io_cqring_offsets, resv),
c5cada
+static_assert(sizeof(struct io_cqring_offsets) <= offsetof(struct_io_cqring_offsets, cqes),
c5cada
 "struct io_cqring_offsets size mismatch, please update the decoder or fix the kernel");
c5cada
-# endif /* HAVE_STRUCT_IO_CQRING_OFFSETS_RESV */
c5cada
+# endif /* HAVE_STRUCT_IO_CQRING_OFFSETS_CQES */
c5cada
 #endif /* HAVE_STRUCT_IO_CQRING_OFFSETS */
c5cada
 
c5cada
 #ifdef HAVE_STRUCT_IO_URING_PARAMS
c5cada
Index: strace-5.7/config.h.in
c5cada
===================================================================
c5cada
--- strace-5.7.orig/config.h.in	2020-11-09 04:47:06.980785114 +0100
c5cada
+++ strace-5.7/config.h.in	2020-11-09 04:50:11.871203054 +0100
c5cada
@@ -2596,8 +2596,8 @@
c5cada
 /* Define to 1 if the system has the type `struct io_cqring_offsets'. */
c5cada
 #undef HAVE_STRUCT_IO_CQRING_OFFSETS
c5cada
 
c5cada
-/* Define to 1 if `resv' is a member of `struct io_cqring_offsets'. */
c5cada
-#undef HAVE_STRUCT_IO_CQRING_OFFSETS_RESV
c5cada
+/* Define to 1 if `cqes' is a member of `struct io_cqring_offsets'. */
c5cada
+#undef HAVE_STRUCT_IO_CQRING_OFFSETS_CQES
c5cada
 
c5cada
 /* Define to 1 if the system has the type `struct io_sqring_offsets'. */
c5cada
 #undef HAVE_STRUCT_IO_SQRING_OFFSETS
c5cada
Index: strace-5.7/configure
c5cada
===================================================================
c5cada
--- strace-5.7.orig/configure	2020-11-09 04:47:06.988785045 +0100
c5cada
+++ strace-5.7/configure	2020-11-09 04:51:12.500684263 +0100
c5cada
@@ -13475,13 +13475,13 @@
c5cada
 #define HAVE_STRUCT_IO_CQRING_OFFSETS 1
c5cada
 _ACEOF
c5cada
 
c5cada
-ac_fn_c_check_member "$LINENO" "struct io_cqring_offsets" "resv" "ac_cv_member_struct_io_cqring_offsets_resv" "$ac_includes_default
c5cada
+ac_fn_c_check_member "$LINENO" "struct io_cqring_offsets" "cqes" "ac_cv_member_struct_io_cqring_offsets_cqes" "$ac_includes_default
c5cada
 #include <linux/io_uring.h>
c5cada
 "
c5cada
-if test "x$ac_cv_member_struct_io_cqring_offsets_resv" = xyes; then :
c5cada
+if test "x$ac_cv_member_struct_io_cqring_offsets_cqes" = xyes; then :
c5cada
 
c5cada
 cat >>confdefs.h <<_ACEOF
c5cada
-#define HAVE_STRUCT_IO_CQRING_OFFSETS_RESV 1
c5cada
+#define HAVE_STRUCT_IO_CQRING_OFFSETS_CQES 1
c5cada
 _ACEOF
c5cada
 
c5cada