diff options
author | Yanteng Si <[email protected]> | 2023-08-25 19:28:04 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-08-29 14:15:21 -0300 |
commit | f703073efff531c58d59fbc971598edb18933c66 (patch) | |
tree | 83cd822d4c67c2163f03060acdd795baac093eb9 /scripts/gdb/linux/utils.py | |
parent | 49cf0bf6379d95fc4124adf5a5eef22ff2e1795e (diff) |
perf beauty mmap_flags: Use "test -f" instead of "[-f FILE]"
"[" is part of the shell builtin test (and a synonym for it),
not a link to the external command /usr/bin/test.
Using the "test" is simpler because it avoids a lot of "[]".
Suggested-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Yanteng Si <[email protected]>
Acked-by: Huacai Chen <[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: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/c50bc0a92dce0ff0fa6504c1a52fb53e2ac007bf.1692962043.git.siyanteng@loongson.cn
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions