From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932383AbbI3QsD (ORCPT ); Wed, 30 Sep 2015 12:48:03 -0400 Received: from mail4.hitachi.co.jp ([133.145.228.5]:47818 "EHLO mail4.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754338AbbI3Qrz (ORCPT ); Wed, 30 Sep 2015 12:47:55 -0400 X-AuditID: 85900ec0-9e1cab9000001a57-c6-560c1160faec Subject: [PATCH perf/core 1/5] [BUGFIX] perf-probe: Begin and end report session correctly From: Masami Hiramatsu To: Arnaldo Carvalho de Melo Cc: Namhyung Kim , linux-kernel@vger.kernel.org, Jiri Olsa , Wang Nan Date: Thu, 01 Oct 2015 01:41:28 +0900 Message-ID: <20150930164128.3733.59876.stgit@localhost.localdomain> In-Reply-To: <20150930164126.3733.47708.stgit@localhost.localdomain> References: <20150930164126.3733.47708.stgit@localhost.localdomain> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a trival bug about libdwfl usage of the report session, it should be explicitly do begin and end report session around report_offline. Signed-off-by: Masami Hiramatsu --- 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)