perf thread-stack: Allocate an array of thread stacks
commit139f42f3b3b495e61bb2cfef40e1dd5e845e3052
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 21 Dec 2018 12:06:18 +0000 (21 14:06 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 2 Jan 2019 13:55:55 +0000 (2 10:55 -0300)
tree5431e14d34d6c15e8ba4fe23743296c2846aeec1
parent2e9e8688763ff80f032d9a78c3b4b951fb6dd7a4
perf thread-stack: Allocate an array of thread stacks

In preparation for fixing thread stack processing for the idle task,
allocate an array of thread stacks.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20181221120620.9659-7-adrian.hunter@intel.com
[ No need to check for NULL when calling zfree(), noticed by Jiri Olsa ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/thread-stack.c