]>
Commit | Line | Data |
---|---|---|
ba3b9a67 JB |
1 | --- linux-5.3/tools/perf/trace/beauty/usbdevfs_ioctl.sh.orig 2019-09-15 23:19:32.000000000 +0200 |
2 | +++ linux-5.3/tools/perf/trace/beauty/usbdevfs_ioctl.sh 2019-09-24 18:22:01.021863039 +0200 | |
3 | @@ -15,7 +15,7 @@ | |
388d18e6 JR |
4 | printf "#if 0\n" |
5 | printf "static const char *usbdevfs_ioctl_32_cmds[] = {\n" | |
ba3b9a67 JB |
6 | regex="^#[[:space:]]*define[[:space:]]+USBDEVFS_(\w+)[[:space:]]+_IO[WR]{0,2}\([[:space:]]*'U'[[:space:]]*,[[:space:]]*([[:digit:]]+).*" |
7 | -egrep $regex ${header_dir}/usbdevice_fs.h | egrep 'USBDEVFS_\w+32[[:space:]]' | \ | |
8 | +egrep "$regex" ${header_dir}/usbdevice_fs.h | egrep 'USBDEVFS_\w+32[[:space:]]' | \ | |
388d18e6 JR |
9 | sed -r "s/$regex/\2 \1/g" | \ |
10 | sort | xargs printf "\t[%s] = \"%s\",\n" | |
ba3b9a67 | 11 | printf "};\n" |