Commit c5c17472 authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1646 from pchaigno/check-helpers-list-virtual_bpf.h

scripts: check virtual_list.h's list of helpers
parents 19e33729 253691ad
......@@ -18,6 +18,14 @@ if [ $? -ne 0 ]; then
((ret++))
fi
virtual=$(grep -oP "(?<=^\sFN\()\w+" src/cc/compat/linux/virtual_bpf.h | tail -n +2 | sort -u)
dif=$(diff <(echo "$compat") <(echo "$virtual"))
if [ $? -ne 0 ]; then
echo "The lists of helpers in src/cc/compat/linux/bpf.h and src/cc/compat/linux/virtual_bpf.h differ:"
echo "$dif"
((ret++))
fi
export=$(grep -oP "(?<=BPF_FUNC_)\w+" src/cc/export/helpers.h | sort -u)
dif=$(diff <(echo "$compat") <(echo "$export"))
if [ $? -ne 0 ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment