]> git.baikalelectronics.ru Git - kernel.git/commit
perf trace: Fixup thread refcounting
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 24 Mar 2017 18:03:19 +0000 (15:03 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 24 Mar 2017 19:05:31 +0000 (16:05 -0300)
commit3fb1ae2a475f769a9691ef4632bf8402e6761002
tree308c81e8496062feaea5af9641d5fef6f8023bce
parent5ece98462b153f1df7c50594dbdcd81cc70f28e9
perf trace: Fixup thread refcounting

In trace__vfs_getname() and when checking if a thread is filtered in
trace__process_sample() we were not dropping the reference obtained via
machine__findnew_thread(), fix it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-9gc470phavxwxv5d9w7ck8ev@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c