From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753983AbaA0QUK (ORCPT ); Mon, 27 Jan 2014 11:20:10 -0500 Received: from merlin.infradead.org ([205.233.59.134]:60299 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753726AbaA0QUI (ORCPT ); Mon, 27 Jan 2014 11:20:08 -0500 Date: Mon, 27 Jan 2014 17:19:59 +0100 From: Peter Zijlstra To: Adrian Hunter Cc: Ingo Molnar , Kees Cook , crash-utility@redhat.com, linux-kernel@vger.kernel.org, Dave Anderson , Andrew Honig , Eugene Surovegin , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Yinghai Lu , Linus Torvalds , Arnaldo Carvalho de Melo , Namhyung Kim , David Ahern , Frederic Weisbecker , Jiri Olsa Subject: Re: [PATCH v2] x86, kaslr: export offset in VMCOREINFO ELF notes Message-ID: <20140127161959.GD4941@twins.programming.kicks-ass.net> References: <20140123173120.GA25474@www.outflux.net> <20140125074738.GB10565@gmail.com> <52E669F1.9080603@intel.com> <20140127152557.GA27792@gmail.com> <52E681B6.7020501@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52E681B6.7020501@intel.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 27, 2014 at 05:56:38PM +0200, Adrian Hunter wrote: > No. In fact annotation works now with kcore. Linus' problem was with vmlinux. > > Kcore won't be used with kaslr in the case: > 1. record data with 'perf record' > 2. reboot > 3. use annotation on the previously recorded data > > As I noted in the commit message, you can still use kcore if you made a copy > (with perf buildid-cache) at the time the data was recorded. Not that I care much about this particular case; but you could also save the offset at record time and do double offset correction assuming its still the same kernel you booted into but at a different location.