drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / tools / perf / trace / beauty / fsconfig.sh
blob09cee79de00ca35d3b6e14d823ad7ceea3d38ea8
1 #!/bin/sh
2 # SPDX-License-Identifier: LGPL-2.1
4 if [ $# -ne 1 ] ; then
5 beauty_uapi_linux_dir=tools/perf/trace/beauty/include/uapi/linux/
6 else
7 beauty_uapi_linux_dir=$1
8 fi
10 linux_mount=${beauty_uapi_linux_dir}/mount.h
12 printf "static const char *fsconfig_cmds[] = {\n"
13 ms='[[:space:]]*'
14 sed -nr "s/^${ms}FSCONFIG_([[:alnum:]_]+)${ms}=${ms}([[:digit:]]+)${ms},.*/\t[\2] = \"\1\",/p" \
15 ${linux_mount}
16 printf "};\n"