perf tools: Reference count struct thread
We need to do that to stop accumulating entries in the dead_threads linked list, i.e. we were keeping references to threads in struct hists that continue to exist even after a thread exited and was removed from the machine threads rbtree. We still keep the dead_threads list, but just for debugging, allowing us to iterate at any given point over the threads that still are referenced by things like struct hist_entry. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-3ejvfyed0r7ue61dkurzjux4@git.kernel.org Signed-off-by:Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-sched.c 1 addition, 1 deletiontools/perf/builtin-sched.c
- tools/perf/builtin-trace.c 6 additions, 1 deletiontools/perf/builtin-trace.c
- tools/perf/ui/browsers/hists.c 3 additions, 3 deletionstools/perf/ui/browsers/hists.c
- tools/perf/util/build-id.c 3 additions, 2 deletionstools/perf/util/build-id.c
- tools/perf/util/hist.c 2 additions, 0 deletionstools/perf/util/hist.c
- tools/perf/util/hist.h 1 addition, 1 deletiontools/perf/util/hist.h
- tools/perf/util/machine.c 23 additions, 21 deletionstools/perf/util/machine.c
- tools/perf/util/machine.h 0 additions, 1 deletiontools/perf/util/machine.h
- tools/perf/util/session.c 0 additions, 6 deletionstools/perf/util/session.c
- tools/perf/util/thread.c 14 additions, 0 deletionstools/perf/util/thread.c
- tools/perf/util/thread.h 13 additions, 0 deletionstools/perf/util/thread.h
Loading
Please register or sign in to comment