Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751421AbbLJTH6 (ORCPT ); Thu, 10 Dec 2015 14:07:58 -0500 Received: from mail.kernel.org ([198.145.29.136]:45342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750865AbbLJTH5 (ORCPT ); Thu, 10 Dec 2015 14:07:57 -0500 Date: Thu, 10 Dec 2015 16:07:48 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Frederic Weisbecker , Andi Kleen , Stephane Eranian , Adrian Hunter Subject: Re: [PATCH/RFC 03/16] perf top: Factor out warnings about kernel addresses and symbols Message-ID: <20151210190748.GJ17996@kernel.org> References: <1449734015-9148-1-git-send-email-namhyung@kernel.org> <1449734015-9148-4-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1449734015-9148-4-git-send-email-namhyung@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1076 Lines: 32 Em Thu, Dec 10, 2015 at 04:53:22PM +0900, Namhyung Kim escreveu: > Factor out warning messages into separate functions. These will be > called in the display thread later. > > Signed-off-by: Namhyung Kim > --- > tools/perf/builtin-top.c | 95 ++++++++++++++++++++++++++---------------------- > 1 file changed, 51 insertions(+), 44 deletions(-) Without applying patch 2, will check if it happens without this patch as well [root@ssdandy ~]# echo 2 > /proc/sys/kernel/kptr_restrict [root@ssdandy ~]# perf top perf: Segmentation fault -------- backtrace -------- perf[0x538b3b] /lib64/libc.so.6(+0x35650)[0x7f401c036650] perf[0x43af66] perf(cmd_top+0xedf)[0x43cdbf] perf[0x47b7c3] perf(main+0x617)[0x4222b7] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f401c022af5] perf[0x4223c9] [0x0] [root@ssdandy ~]# -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/