perf tools: Add dedicated unwind addr_space member into thread struct
Milian reported issue with thread::priv, which was double booked by perf trace and DWARF unwind code. So using those together is impossible at the moment. Moving DWARF unwind private data into separate variable so perf trace can keep using thread::priv. Reported-and-Tested-by: Milian Wolff <milian.wolff@kdab.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Andreas Hollmann <hollmann@in.tum.de> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1460013073-18444-2-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
7d6a7e7825
commit
e583d70c54
@@ -9,6 +9,9 @@
|
||||
#include "symbol.h"
|
||||
#include <strlist.h>
|
||||
#include <intlist.h>
|
||||
#ifdef HAVE_LIBUNWIND_SUPPORT
|
||||
#include <libunwind.h>
|
||||
#endif
|
||||
|
||||
struct thread_stack;
|
||||
|
||||
@@ -32,6 +35,9 @@ struct thread {
|
||||
|
||||
void *priv;
|
||||
struct thread_stack *ts;
|
||||
#ifdef HAVE_LIBUNWIND_SUPPORT
|
||||
unw_addr_space_t addr_space;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct machine;
|
||||
|
Reference in New Issue
Block a user