Skip to content

Commit bb6b369

Browse files
seehearfeelacmel
authored andcommitted
perf test record+probe_libc_inet_pton.sh: Use "grep -F" instead of obsolescent "fgrep"
There exists the following warning when executing 'perf test record+probe_libc_inet_pton.sh': fgrep: warning: fgrep is obsolescent; using grep -F This is tested on Fedora 38, the version of grep is 3.8, the latest version of grep claims the fgrep is obsolete, use "grep -F" instead of "fgrep" to silence the warning. Signed-off-by: Tiezhu Yang <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 5752c20 commit bb6b369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/perf/tests/shell/record+probe_libc_inet_pton.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
. "$(dirname "$0")/lib/probe_vfs_getname.sh"
1515

1616
libc=$(grep -w libc /proc/self/maps | head -1 | sed -r 's/.*[[:space:]](\/.*)/\1/g')
17-
nm -Dg $libc 2>/dev/null | fgrep -q inet_pton || exit 254
17+
nm -Dg $libc 2>/dev/null | grep -F -q inet_pton || exit 254
1818

1919
event_pattern='probe_libc:inet_pton(\_[[:digit:]]+)?'
2020

@@ -94,7 +94,7 @@ delete_libc_inet_pton_event() {
9494
}
9595

9696
# Check for IPv6 interface existence
97-
ip a sh lo | fgrep -q inet6 || exit 2
97+
ip a sh lo | grep -F -q inet6 || exit 2
9898

9999
skip_if_no_perf_probe && \
100100
add_libc_inet_pton_event && \

0 commit comments

Comments
 (0)