perf sched: No need to keep the session around
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 3 Mar 2015 01:28:41 +0000 (22:28 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 3 Mar 2015 03:17:12 +0000 (00:17 -0300)
commitae536acfacb65a4a9858c32b12361e09f84f4157
tree1fdaaf514ed20dfd1f3657693a55ab1547f1a656
parentf3b623b8490af7a9b819cbcf2d99ab4597ece94b
perf sched: No need to keep the session around

We were keeping the session around just because we kept pointers to
struct thread instances, but now we reference count them, so no need
for deferring the perf_session__delete call to after we traverse the
work_list entries.

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-9agtck6jdr3rebdp39z1lo0e@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-sched.c