]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita334c7ac98309f8abc8eb0b160cda036d0f71ece
tree1fdaaf514ed20dfd1f3657693a55ab1547f1a656
parentbc278aa9eb54392a0c445042a2be0a64a7d48551
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