mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-08 01:29:06 +08:00
sync: use bpf_doc.py
In the latest bpf-next bpf_helpers_doc.py has been renamed to bpf_doc.py. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
This commit is contained in:
committed by
Andrii Nakryiko
parent
092a606856
commit
8c2c7e5bcf
@@ -266,12 +266,12 @@ for patch in $(ls -1 ${TMP_DIR}/patches | tail -n +2); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Generate bpf_helper_defs.h and commit, if anything changed
|
# Generate bpf_helper_defs.h and commit, if anything changed
|
||||||
# restore Linux tip to use bpf_helpers_doc.py
|
# restore Linux tip to use bpf_doc.py
|
||||||
cd_to ${LINUX_REPO}
|
cd_to ${LINUX_REPO}
|
||||||
git checkout ${TIP_TAG}
|
git checkout ${TIP_TAG}
|
||||||
# re-generate bpf_helper_defs.h
|
# re-generate bpf_helper_defs.h
|
||||||
cd_to ${LIBBPF_REPO}
|
cd_to ${LIBBPF_REPO}
|
||||||
"${LINUX_ABS_DIR}/scripts/bpf_helpers_doc.py" --header \
|
"${LINUX_ABS_DIR}/scripts/bpf_doc.py" --header \
|
||||||
--file include/uapi/linux/bpf.h > src/bpf_helper_defs.h
|
--file include/uapi/linux/bpf.h > src/bpf_helper_defs.h
|
||||||
# if anything changed, commit it
|
# if anything changed, commit it
|
||||||
helpers_changes=$(git status --porcelain src/bpf_helper_defs.h | wc -l)
|
helpers_changes=$(git status --porcelain src/bpf_helper_defs.h | wc -l)
|
||||||
|
|||||||
Reference in New Issue
Block a user