From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756303AbbJAHNj (ORCPT ); Thu, 1 Oct 2015 03:13:39 -0400 Received: from terminus.zytor.com ([198.137.202.10]:44450 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbbJAHNh (ORCPT ); Thu, 1 Oct 2015 03:13:37 -0400 Date: Thu, 1 Oct 2015 00:13:21 -0700 From: tip-bot for Masami Hiramatsu Message-ID: Cc: acme@redhat.com, namhyung@kernel.org, jolsa@kernel.org, hpa@zytor.com, wangnan0@huawei.com, linux-kernel@vger.kernel.org, masami.hiramatsu.pt@hitachi.com, tglx@linutronix.de, mingo@kernel.org Reply-To: namhyung@kernel.org, acme@redhat.com, masami.hiramatsu.pt@hitachi.com, wangnan0@huawei.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, jolsa@kernel.org, hpa@zytor.com In-Reply-To: <20150930164128.3733.59876.stgit@localhost.localdomain> References: <20150930164128.3733.59876.stgit@localhost.localdomain> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf probe: Begin and end libdwfl report session correctly Git-Commit-ID: 9135949ddd9d0d8d73a2f441912508d25a4a82a2 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 9135949ddd9d0d8d73a2f441912508d25a4a82a2 Gitweb: http://git.kernel.org/tip/9135949ddd9d0d8d73a2f441912508d25a4a82a2 Author: Masami Hiramatsu AuthorDate: Thu, 1 Oct 2015 01:41:28 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 30 Sep 2015 18:34:34 -0300 perf probe: Begin and end libdwfl report session correctly Fix a trival bug about libdwfl usage of the report session, it should explicitly begin and end a report session around dwfl_report_offline(). Signed-off-by: Masami Hiramatsu Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/r/20150930164128.3733.59876.stgit@localhost.localdomain Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/probe-finder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 29c43c068..35f905f 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c @@ -70,6 +70,7 @@ static int debuginfo__init_offline_dwarf(struct debuginfo *dbg, if (!dbg->dwfl) goto error; + dwfl_report_begin(dbg->dwfl); dbg->mod = dwfl_report_offline(dbg->dwfl, "", "", fd); if (!dbg->mod) goto error; @@ -78,6 +79,8 @@ static int debuginfo__init_offline_dwarf(struct debuginfo *dbg, if (!dbg->dbg) goto error; + dwfl_report_end(dbg->dwfl, NULL, NULL); + return 0; error: if (dbg->dwfl)