From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751497AbbK2HzV (ORCPT ); Sun, 29 Nov 2015 02:55:21 -0500 Received: from terminus.zytor.com ([198.137.202.10]:39842 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915AbbK2HzT (ORCPT ); Sun, 29 Nov 2015 02:55:19 -0500 Date: Sat, 28 Nov 2015 23:55:07 -0800 From: tip-bot for Jiri Olsa Message-ID: Cc: jolsa@redhat.com, acme@redhat.com, mingo@kernel.org, tglx@linutronix.de, masami.hiramatsu.pt@hitachi.com, dsahern@gmail.com, linux-kernel@vger.kernel.org, hpa@zytor.com, namhyung@kernel.org Reply-To: namhyung@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, dsahern@gmail.com, masami.hiramatsu.pt@hitachi.com, tglx@linutronix.de, mingo@kernel.org, acme@redhat.com, jolsa@redhat.com In-Reply-To: <20151127082121.GA24503@krava.brq.redhat.com> References: <20151127082121.GA24503@krava.brq.redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf test: 'unwind' test should create kernel maps Git-Commit-ID: 9bdcede563a831f139b5fc872f028ef844a7462e 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: 9bdcede563a831f139b5fc872f028ef844a7462e Gitweb: http://git.kernel.org/tip/9bdcede563a831f139b5fc872f028ef844a7462e Author: Jiri Olsa AuthorDate: Fri, 27 Nov 2015 09:21:21 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 27 Nov 2015 13:14:26 -0300 perf test: 'unwind' test should create kernel maps The 'perf test unwind' is failing because it forgot to create the kernel maps, fix it. After the patch: # perf test unwind 40: Test dwarf unwind : Ok Reported-and-Tested-by: Arnaldo Carvalho de Melo Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Masami Hiramatsu Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20151127082121.GA24503@krava.brq.redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/dwarf-unwind.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/perf/tests/dwarf-unwind.c b/tools/perf/tests/dwarf-unwind.c index b2357e8..3cce13b1 100644 --- a/tools/perf/tests/dwarf-unwind.c +++ b/tools/perf/tests/dwarf-unwind.c @@ -173,6 +173,11 @@ int test__dwarf_unwind(int subtest __maybe_unused) return -1; } + if (machine__create_kernel_maps(machine)) { + pr_err("Failed to create kernel maps\n"); + return -1; + } + callchain_param.record_mode = CALLCHAIN_DWARF; if (init_live_machine(machine)) {