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)
commitef65e96e0762cb98d9abeb6737c721ca840f8092
tree308c81e8496062feaea5af9641d5fef6f8023bce
parentc04dfafa6033ca2eddc56fe188017d9ae50414c9
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