perf annotate: Fix storing per line sym_hist_entry
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Jul 2017 15:49:02 +0000 (12:49 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Jul 2017 15:53:05 +0000 (12:53 -0300)
commit48cc33085253d607706e68a67ac98fe2a6abdd3d
tree07188372412d676ea9cb620b9b1406de68416c0e
parentce9ee4a2de20062a97ad50ecc11ebda7e7618fd1
perf annotate: Fix storing per line sym_hist_entry

The existing loop incremented the offset while using it as the array
index, when we went to an array of sym_hist_entry instances, we
should've moved the increment to outside of the array element reference,
oops, fix it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Taeung Song <treeze.taeung@gmail.com>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes: 461c17f00f40 ("perf annotate: Store the sample period in each histogram bucket")
Link: http://lkml.kernel.org/n/tip-s3dm6uyrazlpag3f0psfia07@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c