From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794608066; b=gFjVrST+iBEG8KA8qNb0z5sJ6hvKTkz5OHIR0f/te/rtV5zoO7QDws2X40cOM3OiQSV/ 6FuaCGgnpQMO8mJs1Ff0Cf3snuVhYpJrimiCd1HrOEF6AJonabaj7vInl7uezCscr0pxl UvDWMVbB38ndbMUUZz0ZAK5dXYknVlxwG3KOCR0GOpLYzX9f7gl4KRQIRM7kOmWw3gUNS LKzIyhdWpfTHCuMVljwNMOtHk2CYIzZS5uFunoYsJ7+o6Qfb8sru3kCmuVuQWvwg27go6 x6hL3z2hdwiRg2orcMe3B2jbtrOMX2BPjxJbyjQKK+mb8gbj9r8zePn8VR6/u5JVW7A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794608066; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=VHi+ZeXinLJkVfkfboNP114V/6h0aWxNJE4DAqAGB1U=; b=uZqFrCIrid1IBruQ3sOgfmGW+KF2mLqT1N504CIvVmvoMmOqCIht2EiyumZ3M5S+Ep1y kNmR9qsxZHQ0O3vWmXWpYhJO1SVeSJq3KBrYyAo4Ylo7F8QY46NqWcP16mb0WAAiuEnBk l5bEmD7j9/nW/LnUaPbJg65eB/7hWkPRJKbPARAXSSqZ7ngRbpPfGfTJHu7FIDVIDTQbg +hk3WgD+KOHZzDgFYYIdcQbq4tDaCZcMJGvD+CajRWhqLCJhEAZXbx8u4MC0PtTLMJViQ BirF2mOWsPpz0KDigCfJNKSvbaLwY4/+7H1u1YtMxTey8ClumI5SmUiLCWpLiFSmSyw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--wusamuel.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=fjMOIPEu; arc=none smtp.remote-ip=209.85.167.200 Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99931606A898 for ; Fri, 13 Nov 2026 22:14:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 99931606A898 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--wusamuel.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=fjMOIPEu Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-54dbbf252cdso2114914b6e.2 for ; Fri, 13 Nov 2026 14:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1794608064; x=1795212864; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=VHi+ZeXinLJkVfkfboNP114V/6h0aWxNJE4DAqAGB1U=; b=fjMOIPEujQ80OPuCk/2PwfPYl4muqyhEYEkrnqU2gj6MiPamTimEwjYFMt/H/9w7Wi UTuuENUdduvK1Ox2OM9j6e9GAJEMPHdc53tzSSDAj1a6+ARSpQiJsqLxzv9iHK/mIhuf S7bDxajxb9GFPHBWxjr2+Cfgm9DIP4GdAUYAQ7eGXov/HX/WKBKO8Vtt/FaZMGUFO88G zMbzVQgLhL2PpkBGRoAQhEpGUZU/UEjt0UKMkpAYQ9N6m2bW/Wte6R88jCKB3aczvlkk m3wa2cFuDRz1ah8RH2GBQgPRgT6KSKqZSiMGkxEnsF2VUy7YKRxWdFGIaSzdaXSeadYS e9Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794608064; x=1795212864; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=VHi+ZeXinLJkVfkfboNP114V/6h0aWxNJE4DAqAGB1U=; b=MthQ80JN7ILMZk9ml1jsxrjlvLN2GnUYKFj1ROweSyOGVVoILFw5b/tRkpoypUTdYC Hm/0nqc3ACxNuqwsGZsasASH4+AzOcVGeUc7Bmk+J5FxJxfDL03PxfzgRFuKaMYs3S6a +Bk1APuC2cFL9yYOiRlKsZbRgzwPGT4wQQ5DaYDueZoF8YzYwLzphY0ZWy3K2R1NEM5L 5ts8Ajd7R/8nIefwkltTKp1DcSrUrfIH951dfJTMBiCX7DjJnqEMYodMzRPHPajQTFjz y1oYHgOaiBH6aVZSm149fCLGp07gtkCy6hpxaVX61ecd+GVeLhhZnwbHeArGRGlHwREF KEow== X-Forwarded-Encrypted: i=1; AL+hErHm+lMDLmBBLnOXftgesG1+r8o1JRsVfWITwec6DNAYM93jxSxVmSvAYF2bXaQsk2EfyK+dxqm5tIVHDvvK@vger.kernel.org X-Gm-Message-State: APuU4Z/HTa44o8qBfJY2in7Ti2GFkEc03kLd5Bunkj6ppksKmEdJLkpL VvpaZDO6ZeP54h9U49xRenO9QEySET9hoUKg62GJ15LOjhj3aIqCFimpAdZpkuDbEH75fM83eDT RG51wACplwPhS3Q== X-Received: from ilbec7.prod.google.com ([2002:a05:6e02:4707:b0:53c:f2dd:1e17]) (user=wusamuel job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:3505:b0:536:611a:7fd9 with SMTP id 5614622812f47-56e6015e8cfmr3125630b6e.7.1794608064235; Fri, 13 Nov 2026 14:14:24 -0800 (PST) Date: Fri, 13 Nov 2026 14:12:50 -0800 In-Reply-To: <20261113221248.3535369-11-wusamuel@google.com> X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261113221248.3535369-11-wusamuel@google.com> X-Mailer: git-send-email 2.56.0.679.gc527c65306-goog Message-ID: <20261113221248.3535369-16-wusamuel@google.com> Subject: [PATCH bpf-next v3 5/9] docs/procfs: Document KALLSYMS_QUERY_* ioctls on /proc/kallsyms From: Samuel Wu To: Jonathan Corbet , Shuah Khan , Randy Dunlap , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Alexander Viro , Christian Brauner , Jan Kara , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: Andrew Morton , Petr Mladek , David Laight , Samuel Wu , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-modules@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Add kallsyms to the /proc file table, and a short section that refers to the KALLSYMS_QUERY_* definitions in include/uapi/linux/fs.h. Signed-off-by: Samuel Wu --- Documentation/filesystems/proc.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index fa7a468e8edf..442aae9ebd9e 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -761,6 +761,7 @@ files are there, and which are missing. ioports I/O port usage irq Masks for irq to cpu affinity (2.4)(smp?) isapnp ISA PnP (Plug&Play) Info (2.4) + kallsyms All kernel symbols (see text) kcore Kernel core image (can be ELF or A.OUT(deprecated in 2.4)) kmsg Kernel messages ksyms Kernel symbol table @@ -1368,6 +1369,14 @@ Provides counts of softirq handlers serviced since boot time, for each CPU. HRTIMER: 0 0 0 0 RCU: 1678 1769 2178 2250 +kallsyms +~~~~~~~~ + +Lists the kernel symbols of vmlinux, loaded modules, and dynamic sources such +as BPF JIT images. The ``KALLSYMS_QUERY_BY_NAME`` and ``KALLSYMS_QUERY_BY_ADDR`` +ioctls find one symbol by name or by address without parsing the text. See +``include/uapi/linux/fs.h`` for their structs and errors. + 1.3 Networking info in /proc/net -------------------------------- -- 2.56.0.679.gc527c65306-goog