From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 184CFC2D0ED for ; Fri, 27 Mar 2020 16:52:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED65F2072F for ; Fri, 27 Mar 2020 16:52:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727726AbgC0Qwo (ORCPT ); Fri, 27 Mar 2020 12:52:44 -0400 Received: from ms.lwn.net ([45.79.88.28]:47328 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbgC0Qwn (ORCPT ); Fri, 27 Mar 2020 12:52:43 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 1890B2E4; Fri, 27 Mar 2020 16:52:43 +0000 (UTC) Date: Fri, 27 Mar 2020 10:52:42 -0600 From: Jonathan Corbet To: Nick Desaulniers Cc: "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2] Documentation: x86: exception-tables: document CONFIG_BUILDTIME_TABLE_SORT Message-ID: <20200327105242.20a6d20e@lwn.net> In-Reply-To: <20200327000951.84071-1-ndesaulniers@google.com> References: <6e26c798-1439-2bbd-6801-8fd21c4e6926@zytor.com> <20200327000951.84071-1-ndesaulniers@google.com> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Mar 2020 17:09:51 -0700 Nick Desaulniers wrote: > Provide more information about __ex_table sorting post link. > > The exception tables and fixup tables use a commonly recurring pattern > in the kernel of storing the address of labels as date in custom ELF > sections, then finding these sections, iterating elements within them, > and possibly revisiting them or modifying the data at these addresses. > > Sorting readonly arrays to minimize runtime penalties is quite clever. > > Suggested-by: H. Peter Anvin > Signed-off-by: Nick Desaulniers I've applied this, thanks. jon