2 # SPDX-License-Identifier: LGPL-2.1
5 beauty_uapi_linux_dir
=tools
/perf
/trace
/beauty
/include
/uapi
/linux
/
7 beauty_uapi_linux_dir
=$1
10 linux_mount
=${beauty_uapi_linux_dir}/mount.h
12 printf "static const char *move_mount_flags[] = {\n"
13 regex
='^[[:space:]]*#[[:space:]]*define[[:space:]]+MOVE_MOUNT_([^_]+[[:alnum:]_]+)[[:space:]]+(0x[[:xdigit:]]+)[[:space:]]*.*'
14 grep -E $regex ${linux_mount} | \
15 sed -r "s/$regex/\2 \1/g" | \
16 xargs printf "\t[ilog2(%s) + 1] = \"%s\",\n"