]> git.pld-linux.org Git - packages/kernel-tools.git/blob - regex.patch
- added binutils2.35 patch (adjust Makefile for nm output change); release 3
[packages/kernel-tools.git] / regex.patch
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 @@
4  printf "#if 0\n"
5  printf "static const char *usbdevfs_ioctl_32_cmds[] = {\n"
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:]]' | \
9         sed -r "s/$regex/\2 \1/g"       | \
10         sort | xargs printf "\t[%s] = \"%s\",\n"
11  printf "};\n"
This page took 0.024585 seconds and 3 git commands to generate.