Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3303218pxv; Sun, 4 Jul 2021 14:29:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTDjHnH27JlSoM88n+IRu92fz/Cnn9KZ3CpOISOKz3rwMMe4Lz8gv38opcnYEtBAtAuImz X-Received: by 2002:a05:6638:2726:: with SMTP id m38mr9338739jav.115.1625434149579; Sun, 04 Jul 2021 14:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625434149; cv=none; d=google.com; s=arc-20160816; b=lO6jKAXIUn54Qz57Gvb9UAp4/X7toqKO2+tnjN1LgORk2797eUHF0w6LgjiZxDMYlq Eas7W+pay6n/uAXe/TNVF6fQkzRlGlCI/bQYo6z/dATtusFWxV7DCz6i5EFvetEH/v2R vXm1dalLc+Zfk9J5Yst+BkSHRHEV72hMniG21pnwAU4sus7XuNrFjARl0SKfj4Z37/L8 JtxIjVVbf4nWhYKuvIzm2rP5enfVomweLm1WcQf1Q5sjLitxcrLlasxKg/Yv20kOt+Bw Zr6Wlne3/XDbesWMJok5NSRgbhOvb+zvBnjYPcy9k8BbBIh9IV88Mb6vY20ucKczgN4s 4Elw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EbAGqDDbQnmjvsoTclpanP0h7gMK/AYm7CJnJS7LBY0=; b=XHVM8TLRgeY5AJK5nq4te1xQJwPqw5aAGMEWTwe+RrN9h4dxVKgnxp7+1yf9KK3vvb JdhmyvVpyASUuaIuGJADR55jjWt4YUn+nBXqY7cmMbnJsdfrQ2n1AnpbTbtvCuwlMkYm ywCSMuvcLKRYISDimBgE4iYSLqyoIY9kVVNmaHHfqn6VAE64Xob6UEGhV38KtRounYii Tm3xyhnjYXxAi5W8Wv9xrEpizg3tavqJ/QjNqe0py6USK9OCYeTxUilbaLZeGSTbYEcP 4dFRHSr+lL3dDyikLmmGdfIT0uchXsC3zDiK+WOstFDNMf3pCcJDloyQLm7YU3ZCIEJB DO5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EHudwuo4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si12091461ioh.12.2021.07.04.14.28.57; Sun, 04 Jul 2021 14:29:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EHudwuo4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230049AbhGDVa6 (ORCPT + 99 others); Sun, 4 Jul 2021 17:30:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbhGDVa5 (ORCPT ); Sun, 4 Jul 2021 17:30:57 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06204C061762 for ; Sun, 4 Jul 2021 14:28:21 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id f30so28807419lfj.1 for ; Sun, 04 Jul 2021 14:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EbAGqDDbQnmjvsoTclpanP0h7gMK/AYm7CJnJS7LBY0=; b=EHudwuo4e7cs9iy4bKTttxh5r9bMEt+Or14SkbnP8XxX+YLimbIhboHjNY1YI7rJb1 BQgZulzERbrQhHRG6dgvXGd+bH8g8ubQtBJwB6kCRYzc86HwozOTZo/k6oJHPk7lUEHT e8WtFHMImLSrmrRRFjuGao0CPcAtgaoBdpI9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EbAGqDDbQnmjvsoTclpanP0h7gMK/AYm7CJnJS7LBY0=; b=USO8WqiKD2J0TsODsaD3pPXQt3wyCz+9vaIcP9cVpDAFwc7IHSBAM4565spV649Fn/ UVToW+SXO0TvSHO7J+N1UzIV0L/xw5tfZapu/HCClj6S24Db2DKXchPRA2iaFpDqt6i5 pP2nGkGUreiq23OxQd6MUvFbGPWeA98QQjQ/nwpwJVI8Mr6LsOpz0CxNykofaTvGQn0z frN6NKX+ks8Z9jUQiAt8EFDpC0nybgG/4xMVvwlSEZ0cQXcNlSeFihBMUBx+WFo/U1Pa knHVLZfE41elLhgHrxINNg8TLw/HgPMOnYrFUu0ihDZxeGwLqeM/IADfPxVVXfpMpoWS 9w7g== X-Gm-Message-State: AOAM530gwQvQYw3Fgo2Vf1S+R/m6UB0iSbHcVkL6i6L9EXlCB2pPGsKx 63xKrCXd4X7pSUCPC8Lsf4MK1T1KhcyVd5dQ X-Received: by 2002:a05:6512:c0c:: with SMTP id z12mr8214711lfu.544.1625434099982; Sun, 04 Jul 2021 14:28:19 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id d8sm889028lfi.129.2021.07.04.14.28.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Jul 2021 14:28:19 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id c28so5347201lfp.11 for ; Sun, 04 Jul 2021 14:28:19 -0700 (PDT) X-Received: by 2002:ac2:4903:: with SMTP id n3mr7787093lfi.487.1625434098906; Sun, 04 Jul 2021 14:28:18 -0700 (PDT) MIME-Version: 1.0 References: <20210704202756.29107-1-ojeda@kernel.org> <20210704202756.29107-2-ojeda@kernel.org> In-Reply-To: From: Linus Torvalds Date: Sun, 4 Jul 2021 14:28:03 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/17] kallsyms: support big kernel symbols (2-byte lengths) To: Miguel Ojeda Cc: Miguel Ojeda , Greg Kroah-Hartman , rust-for-linux , Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Alex Gaynor , Geoffrey Thomas , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 4, 2021 at 2:15 PM Miguel Ojeda wrote: > > No particular reason. It makes sense to use LE -- I will change it. Matthew's suggestion is denser, which is nice. At that point, it would be neither BE nor LE. But the "LE-like" version would be len = data[0]; if (len & 128) len += data[1] << 7; which ends up having a tiny bit more range (it goes to 11^H32895). Of course, if the range is expected to be just 0-300, I guess that matters not one whit. Linus