From: Eugene Syromyatnikov Date: Sun, 8 Apr 2018 18:09:06 +0000 (+0200) Subject: bpf: add support for array fields X-Git-Tag: v4.23~360 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3509bac24a01d0d46c142821b520f2e63e96163;p=strace bpf: add support for array fields * gen_bpf_attr_check.sh: Ignore field array size definition. * m4/gen_bpf_attr_m4.sh (filter_entries): Likewise. Co-Authored-by: Dmitry V. Levin --- diff --git a/gen_bpf_attr_check.sh b/gen_bpf_attr_check.sh index 9da75ad9..1a52c217 100755 --- a/gen_bpf_attr_check.sh +++ b/gen_bpf_attr_check.sh @@ -44,7 +44,7 @@ for struct in $(sed -n 's/^struct \(BPF_[^[:space:]]\+_struct\) .*/\1/p' < "$inp 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 <