From owner-svn-src-all@freebsd.org Thu Oct 8 18:15:02 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE43842E2FD; Thu, 8 Oct 2020 18:15:02 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C6fWB4Bmlz4LLQ; Thu, 8 Oct 2020 18:15:02 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 6E6C0225F4; Thu, 8 Oct 2020 18:15:02 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-vk1-f174.google.com with SMTP id n141so1520517vke.9; Thu, 08 Oct 2020 11:15:02 -0700 (PDT) X-Gm-Message-State: AOAM530n8sZ2Wu4wgR2ZiC8K3Q2lkpumfEx9mBJuC/Md/jJcKrBKbVgr aOCAAhqMng7tjwcngisGhwKSYM1+QPiwIwmAeSc= X-Google-Smtp-Source: ABdhPJwNpxFoNHCKcrMLj+U7wZbmMQm1AZESSCeUPGl4r1fP9cw423Pb6JqqvwXp6S/XzpxhPP0kYUFxeXKvqRshjrw= X-Received: by 2002:a1f:3a09:: with SMTP id h9mr5587639vka.6.1602180901810; Thu, 08 Oct 2020 11:15:01 -0700 (PDT) MIME-Version: 1.0 References: <202010081802.098I26Rq052294@repo.freebsd.org> In-Reply-To: <202010081802.098I26Rq052294@repo.freebsd.org> From: Kyle Evans Date: Thu, 8 Oct 2020 13:14:42 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r366542 - in head/sys: amd64/amd64 arm/arm arm64/arm64 kern riscv/riscv sys To: Mitchell Horne Cc: src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2020 18:15:02 -0000 On Thu, Oct 8, 2020 at 1:02 PM Mitchell Horne wrote: > > Author: mhorne > Date: Thu Oct 8 18:02:05 2020 > New Revision: 366542 > URL: https://svnweb.freebsd.org/changeset/base/366542 > > Log: > Add a routine to dump boot metadata > > The boot metadata (also referred to as modinfo, or preload metadata) > provides information about the size and location of the kernel, > pre-loaded modules, and other metadata (e.g. the EFI framebuffer) to be > consumed during by the kernel during early boot. It is encoded as a > series of type-length-value entries and is usually constructed by > loader(8) and passed to the kernel. It is also faked on some > architectures when booted by other means. > > Although much of the module information is available via kldstat(8), > there is no easy way to debug the metadata in its entirety. Add some > routines to parse this data and allow it to be printed to the console > during early boot or output via a sysctl. > > Since the output can be lengthly, printing to the console is gated > behind the debug.dump_modinfo_at_boot kenv variable as well as the > BOOTVERBOSE flag. The sysctl to print the metadata is named > debug.dump_modinfo. > Hi, Why both a tunable and boot -v? The tunable is already specifically scoped to just this operation, it seems a little odd to double-gate it. Thanks, Kyle Evans