From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753874AbbAEOIW (ORCPT ); Mon, 5 Jan 2015 09:08:22 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:38915 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153AbbAEOIV (ORCPT ); Mon, 5 Jan 2015 09:08:21 -0500 Date: Mon, 5 Jan 2015 15:07:54 +0100 From: Peter Zijlstra To: Andy Lutomirski Cc: Jiri Olsa , Ingo Molnar , =?utf-8?B?56em5om/5YiaKOaJv+WImik=?= , Stephane Eranian , root , Andrew Morton , =?utf-8?B?56em5om/5YiaKOaJv+WImik=?= , Wu Fengguang , Namhyung Kim , Mike Galbraith , Arjan van de Ven , linux-kernel , David Ahern , Paul Mackerras , Yanmin Zhang Subject: Re: [PATCH 1/2] perf: Move task_pt_regs sampling into arch code Message-ID: <20150105140754.GF29390@twins.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Sun, Jan 04, 2015 at 10:36:19AM -0800, Andy Lutomirski wrote: > On x86_64, at least, task_pt_regs may be only partially initialized > in many contexts, so x86_64 should not use it without extra care > from interrupt context, let alone NMI context. > > This will allow x86_64 to override the logic and will supply some > scratch space to use to make a cleaner copy of user regs. Just wondering how bad it would be to fill out the actual pt_regs that was previously partially initialized?