perf beauty socket/prctl_option: Cope with extended regexp complaint by grep
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Oct 2023 19:14:54 +0000 (16:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 31 Oct 2023 15:31:19 +0000 (12:31 -0300)
commit1715b6359c1ae37f24d6774f0bcd73b6bf839eaa
tree26fee78f52032c6be03e8ce5dd243a8d14064d3f
parentfed3a1be6433e15833068c701bfde7b422d8b988
perf beauty socket/prctl_option: Cope with extended regexp complaint by grep

Noticed on fedora 38, the extended regexp that so far was ok for both
grep and sed now gets complaints by grep, that says '/' doesn't need to
be escaped with '\'.

So stop using '/' in sed, use '%' instead and remove the \ before / in
the common extended regexp.

Link: https://x.com/SMT_Solvers/status/1710380010098344192?s=20
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZUEddFPTJHVLhH%2F6@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/prctl_option.sh
tools/perf/trace/beauty/socket.sh