Skip to content

Commit

Permalink
perf tests record_offcpu.sh: Fix redirection of stderr to stdin
Browse files Browse the repository at this point in the history
[ Upstream commit 9835b74 ]

It's not 2&>1, the correct is 2>&1

Fixes: ade1d03 ("perf offcpu: Update offcpu test for child process")
Signed-off-by: Patrice Duroux <patrice.duroux@gmail.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20230303193058.21274-1-patrice.duroux@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
peutch authored and gregkh committed May 17, 2023
1 parent 6d20672 commit 4406061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/tests/shell/record_offcpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test_offcpu_child() {

# perf bench sched messaging creates 400 processes
if ! perf record --off-cpu -e dummy -o ${perfdata} -- \
perf bench sched messaging -g 10 > /dev/null 2&>1
perf bench sched messaging -g 10 > /dev/null 2>&1
then
echo "Child task off-cpu test [Failed record]"
err=1
Expand Down

0 comments on commit 4406061

Please sign in to comment.