Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754876AbbGVEjq (ORCPT ); Wed, 22 Jul 2015 00:39:46 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:36119 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751594AbbGVEjo (ORCPT ); Wed, 22 Jul 2015 00:39:44 -0400 MIME-Version: 1.0 In-Reply-To: <20150722042548.GB6345@nazgul.tnic> References: <0d8517b7ab757e00a13b3abe2b677d9eb23362be.1437150175.git.jpoimboe@redhat.com> <20150717171726.GA21568@nazgul.tnic> <20150717173220.GA12761@treble.redhat.com> <20150718050536.GA23478@nazgul.tnic> <20150718134415.GA24587@treble.redhat.com> <20150718145629.GB30713@nazgul.tnic> <20150718155714.GB19968@treble.redhat.com> <20150719041235.GA3683@nazgul.tnic> <20150722042548.GB6345@nazgul.tnic> From: Andy Lutomirski Date: Tue, 21 Jul 2015 21:39:23 -0700 Message-ID: Subject: Re: [RFC PATCH 04/21] x86/hweight: Add stack frame dependency for __arch_hweight*() To: Borislav Petkov Cc: Michal Marek , Thomas Gleixner , Ingo Molnar , Josh Poimboeuf , "linux-kernel@vger.kernel.org" , Andi Kleen , Pedro Alves , live-patching@vger.kernel.org, X86 ML , "H. Peter Anvin" , Linus Torvalds , Peter Zijlstra Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 732 Lines: 19 On Tue, Jul 21, 2015 at 9:25 PM, Borislav Petkov wrote: > On Tue, Jul 21, 2015 at 05:13:12PM -0700, Andy Lutomirski wrote: >> Enough for oopses, perhaps, but maybe not enough for perf. >> >> It sounds like you want CFI unwinding :) > > What would you want to unwind in those __sw_hweight* almost-trivial, > tail functions? So your shiny perf profile shows cumulative time in whatever called them. Sure, this is arguably silly if we're stuck with frame pointers. --Andy -- 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/