perf tools: Use "grep -E" instead of "egrep"
authorTiezhu Yang <yangtiezhu@loongson.cn>
Fri, 18 Nov 2022 09:16:39 +0000 (17:16 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Dec 2022 18:28:19 +0000 (15:28 -0300)
commit818448e9cf92e5c6b3c10320372eefcbe4174e4f
tree07236af54c411c66dedee1fe75947048d8492f30
parentc587e77e100fa40eb6af10e00497c67acf493f33
perf tools: Use "grep -E" instead of "egrep"

The latest version of grep claims the egrep is now obsolete so the build
now contains warnings that look like:

egrep: warning: egrep is obsolescent; using grep -E

fix this up by moving the related file to use "grep -E" instead.

  sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/perf`

Here are the steps to install the latest grep:

  wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz
  tar xf grep-3.8.tar.gz
  cd grep-3.8 && ./configure && make
  sudo make install
  export PATH=/usr/local/bin:$PATH

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/1668762999-9297-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
38 files changed:
tools/perf/Makefile
tools/perf/builtin-trace.c
tools/perf/tests/make
tools/perf/tests/shell/lib/probe_vfs_getname.sh
tools/perf/tests/shell/record+probe_libc_inet_pton.sh
tools/perf/tests/shell/record+script_probe_vfs_getname.sh
tools/perf/tests/shell/record_offcpu.sh
tools/perf/tests/shell/stat.sh
tools/perf/tests/shell/test_arm_coresight.sh
tools/perf/tests/shell/test_arm_spe.sh
tools/perf/tests/shell/test_arm_spe_fork.sh
tools/perf/tests/shell/test_brstack.sh
tools/perf/tests/shell/test_data_symbol.sh
tools/perf/tests/shell/test_java_symbol.sh
tools/perf/tests/shell/trace+probe_vfs_getname.sh
tools/perf/trace/beauty/fadvise.sh
tools/perf/trace/beauty/fsmount.sh
tools/perf/trace/beauty/fspick.sh
tools/perf/trace/beauty/kcmp_type.sh
tools/perf/trace/beauty/kvm_ioctl.sh
tools/perf/trace/beauty/madvise_behavior.sh
tools/perf/trace/beauty/mmap_flags.sh
tools/perf/trace/beauty/mmap_prot.sh
tools/perf/trace/beauty/mount_flags.sh
tools/perf/trace/beauty/move_mount_flags.sh
tools/perf/trace/beauty/mremap_flags.sh
tools/perf/trace/beauty/perf_ioctl.sh
tools/perf/trace/beauty/pkey_alloc_access_rights.sh
tools/perf/trace/beauty/prctl_option.sh
tools/perf/trace/beauty/rename_flags.sh
tools/perf/trace/beauty/sockaddr.sh
tools/perf/trace/beauty/socket.sh
tools/perf/trace/beauty/sync_file_range.sh
tools/perf/trace/beauty/tracepoints/x86_irq_vectors.sh
tools/perf/trace/beauty/tracepoints/x86_msr.sh
tools/perf/trace/beauty/usbdevfs_ioctl.sh
tools/perf/trace/beauty/vhost_virtio_ioctl.sh
tools/perf/trace/beauty/x86_arch_prctl.sh