perf callchain: Make callchain cursors TLS
perf top -G has a race on callchain cursor between main thread and display thread. Since the callchain cursors are used locally make them thread-local data would solve the problem. Signed-off-by:Namhyung Kim <namhyung.kim@lge.com> Reported-by:
Sunjin Yang <fan4326@gmail.com> Suggested-by:
Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Cc: Ingo Molnar <mingo@redhat.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Sunjin Yang <fan4326@gmail.com> Link: http://lkml.kernel.org/r/1338443007-24857-1-git-send-email-namhyung.kim@lge.com Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-report.c 1 addition, 1 deletiontools/perf/builtin-report.c
- tools/perf/builtin-top.c 1 addition, 1 deletiontools/perf/builtin-top.c
- tools/perf/util/callchain.c 2 additions, 0 deletionstools/perf/util/callchain.c
- tools/perf/util/callchain.h 2 additions, 0 deletionstools/perf/util/callchain.h
- tools/perf/util/hist.c 4 additions, 3 deletionstools/perf/util/hist.c
- tools/perf/util/hist.h 0 additions, 2 deletionstools/perf/util/hist.h
- tools/perf/util/session.c 7 additions, 7 deletionstools/perf/util/session.c
Loading
Please register or sign in to comment