perf thread-stack: Avoid direct reference to the thread's stack
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 21 Dec 2018 12:06:15 +0000 (14:06 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 2 Jan 2019 13:48:18 +0000 (10:48 -0300)
commitbd8e68ace110941f375f5d566b0cd99fe80634b8
tree8295b3c05deb026ddf9213dc258e791f4455a7a0
parente0b8951190c11797971864c845e0909561525621
perf thread-stack: Avoid direct reference to the thread's stack

In preparation for fixing thread stack processing for the idle task,
avoid direct reference to the thread's stack. The thread stack will
change to an array of thread stacks, at which point the meaning of the
direct reference will change.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20181221120620.9659-4-adrian.hunter@intel.com
[ Rename thread_stack__ts() to thread__stack() since this operates on a 'thread' struct ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/thread-stack.c