Blame SOURCES/0046-bpf-exclude-bit-fields-from-the-check.patch

b484ca
From 579f27020c59c426a8fef8b970da9907f59809f8 Mon Sep 17 00:00:00 2001
b484ca
From: "Dmitry V. Levin" <ldv@altlinux.org>
b484ca
Date: Tue, 12 Mar 2019 11:17:20 +0000
b484ca
Subject: [PATCH] bpf: exclude bit fields from the check
b484ca
b484ca
Currently we have no instruments to check the size and offsets
b484ca
of bit fields.
b484ca
b484ca
* gen_bpf_attr_check.sh: Do not print bit fields.
b484ca
* m4/gen_bpf_attr_m4.awk: Likewise.
b484ca
---
b484ca
 gen_bpf_attr_check.sh  | 2 +-
b484ca
 m4/gen_bpf_attr_m4.awk | 2 +-
b484ca
 2 files changed, 2 insertions(+), 2 deletions(-)
b484ca
b484ca
Index: strace-4.24/gen_bpf_attr_check.sh
b484ca
===================================================================
b484ca
--- strace-4.24.orig/gen_bpf_attr_check.sh	2020-01-30 13:18:02.606944355 +0100
b484ca
+++ strace-4.24/gen_bpf_attr_check.sh	2020-01-30 13:31:03.710562191 +0100
b484ca
@@ -30,7 +30,7 @@
b484ca
 	enum="$enum${enum:+.}"
b484ca
 	ENUM="$ENUM${ENUM:+_}"
b484ca
 	sed -n '/^struct '"$struct"' [^{]*{/,/^};$/p' < "$input" |
b484ca
-	sed -n 's/^[[:space:]]\+[^][;]*[[:space:]]\([^][[:space:];]\+\)\(\[[^;]*\]\)\?;$/\1/p' |
b484ca
+	sed -n 's/^[[:space:]]\+[^][;:]*[[:space:]]\([^][[:space:];:]\+\)\(\[[^;:]*\]\)\?;$/\1/p' |
b484ca
 	while read field; do
b484ca
 		FIELD="$(printf %s "$field" |tr '[:lower:]' '[:upper:]')"
b484ca
 		cat <