]> git.baikalelectronics.ru Git - kernel.git/commit
perf timechart: Fix off-by-one error in 'record' argv handling
authorRamkumar Ramachandra <artagnon@gmail.com>
Sun, 16 Mar 2014 16:06:05 +0000 (12:06 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Mar 2014 21:16:47 +0000 (18:16 -0300)
commit2aaff79b0b6d382e37fc8e323be82d1fe26ba3a8
tree571f9dd38c03a4458fa98e1b0e1cd1c4b722097f
parent1818eeef51f475b7eb0884109280b85b04afa3ee
perf timechart: Fix off-by-one error in 'record' argv handling

Since 9ff17f7 (perf timechart: Add support for -P and -T in timechart
recording, 2013-11-01), the 'perf timechart record' command stopped
working:

  $ perf timechart record -- git status
  Workload failed: No such file or directory

This happens because of an off-by-one error while preparing the argv for
cmd_record(): it attempts to execute the command 'status' and complains
that it doesn't exist. Fix this error.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Acked-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stanislav Fomichev <stfomichev@yandex-team.ru>
Link: http://lkml.kernel.org/r/1394985965-2332-1-git-send-email-artagnon@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-timechart.c