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