aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDiederik de Haas <[email protected]>2023-02-01 22:49:44 +0100
committerArnaldo Carvalho de Melo <[email protected]>2023-02-02 16:32:19 -0300
commit5b420cf003da4da34955dfd95c5334bec0815114 (patch)
treeb08fe709f648124acdeb7e3d5eedd67bcba85667 /tools/perf/scripts/python/stackcollapse.py
parentdd15480a3d67b9cf04a1f6f5d60f1c0dc018e22f (diff)
perf test: Replace 'grep | wc -l' with 'grep -c'
To count the number of results from grep, use the '-c' parameter instead of piping it to 'wc'. See also https://www.shellcheck.net/wiki/SC2126 Signed-off-by: Diederik de Haas <[email protected]> Acked-by: Carsten Haitzler <[email protected]> Cc: Alexander Shishkin <[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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions