From: Dmitry V. Levin Date: Tue, 12 Mar 2019 11:17:20 +0000 (+0000) Subject: bpf: exclude bit fields from the check X-Git-Tag: v5.0~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=579f27020c59c426a8fef8b970da9907f59809f8;p=strace 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. --- diff --git a/gen_bpf_attr_check.sh b/gen_bpf_attr_check.sh index 686027e9..f3b440ea 100755 --- a/gen_bpf_attr_check.sh +++ b/gen_bpf_attr_check.sh @@ -32,7 +32,7 @@ for struct in $(sed -n 's/^struct \([^[:space:]]\+_struct\) .*/\1/p' < "$input") 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 <