From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796170552; b=xh2zu+XWKAntbSAwVGnwJBxI6lY910HtLfFdtYD1ihoZIy9ZLIyCDFeyvRXVJM3ksai5 +qD81v1aucPVpqNtputPMRYgL8wj5ErvuXheI2talaS8Y29De+5DCe69EQyE5ftrNfIwJ EBbIDKUqrXf2E+kDeiO81wQatVTQqQ9xc3CyhWLImLfObrEhiGiSu9beKU9BDraQeXEcc N+SWM+Yzks80EvvtWyBzTO2JJKDp1088YC+530tDbaCgp7h2dtdSByNV3uTmaeM/8slbG PTXB5/I9XV6zCO8Aldie1jrp2L0VEJ1ZiNpoDSDLegGqX1Hb84zUZSLCtJ9lvjfIZSA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796170552; 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=edz+Do09U8abd451WrrGqkK9cEWm8Wuj8wEhZ+4u9zA=; b=aTkboqPn4V6CYSzpE7feAevWGdIihzIdXLENYHQq+O6ADdbwiRG/t9+dSWUHl6bU7MBN SjV2s/OV+PsJnV5pxrPaQSVX+T9xW5bR/TKlaWxFhTfXS+uOAs5XpkUxqxb5q5MNv/Lsr Oq++Qlk7/kj74de8vxkrIh3F1xtAuwOTW5bBCNkZsIvsrx/wuPRXRXNP6+vkCi+lwPfL+ US1mdZCgh0UmZBoaZAUqCULV6Y5EfUf3lNISVdsiljQTMy9n81B3c5t0di84CuELew7M8 tXikwnRnynqIgXLoR2JMj9dnmAsp/39G6d57xD+akCWXZHuehaB0t9SX+1eO+SeKdEA== 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=VVbrqLD0; arc=none smtp.remote-ip=74.125.82.200 Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.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 7E46F606A325 for ; Wed, 2 Dec 2026 00:15:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7E46F606A325 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=VVbrqLD0 Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-33713e5e6daso18228962eec.0 for ; Tue, 01 Dec 2026 16:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796170552; x=1796775352; 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=edz+Do09U8abd451WrrGqkK9cEWm8Wuj8wEhZ+4u9zA=; b=VVbrqLD0MK9ru6SJei9kIDl8a1PF9FnSlCONofcGvNcWGMIYk9czeMRXKfaNYjNRAb 2Y/PcB18Zs95QqfNcReBvwPNOQ4w0TNPGp+ROdwXtwCoUUAbs3AOgBUE6QxnYivM3f1+ NoXAVb/XVRv8qK44e4iJCTEmXiuSl54sxdahEUTpL0FLF5sWitXoaTzG7I2TM7aYDyWn GpzWiIg0f0e8SYtag0NTgn6o4bwIcGVWvJE2yIDesi6JMpwkB6rcsXz4fea81KQAcm8/ iukP5ASEsdilUoAKcEslotX9MKK3rRsafFZFk2iiLD+y8FRmEbDpv55v/OUmqihSubxZ H3Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796170552; x=1796775352; 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=edz+Do09U8abd451WrrGqkK9cEWm8Wuj8wEhZ+4u9zA=; b=WTwD1Ce+GJkB0f5N1ylqYHrEgvJgmd3oCWA4fOo2JCoynKgFTSKoWhCruM8OAb/6hQ Kz65Zt/STuZ0RiwEuYd07ZhKFbrWxtE3IT9gyrWUfzOLcZkjfpHl/IvvTJciwTWYmUhl W20qXg0WTXzmJH8YLtjVrQ+lJX2sKcJZJmhX9HCioymW1xDVB8+MF7YrT3RkbYKocARJ hrje4aLGUZYf4RqkxueYU33zmEbkUXB9ofz1CuQgyKsMyNTXZaSHUR6YJIOubSYZgJp7 Ow+ztUTh5v0OPRKq0J+4anYOcFBYA5TPOAYPg98mrvW2VkJ8pxVdPTaXaYIheRJSKOlt JbbA== X-Forwarded-Encrypted: i=1; AL+hErFvd38iZPUC78nRiTWaKp96Ncv+csunLo/hheCQ3h887i7zAKXsIypaNGSKoR6Qb18YBx6gZSlcnaMmv4A=@vger.kernel.org X-Gm-Message-State: APuU4Z/c1AG+za+Wc7PWqpk410NyxTxUKSloSOVJRHloI/69wwGqEghd BDuaG7TEwqic04L4X2St+URaiRFJZjFerG8jHbhG6Pef4vxvG2B15GfCJwiuVrBRVBsHsMy1qjI AsMSTaVIZRxsS6g== X-Received: from dycnr5-n1.prod.google.com ([2002:a05:7300:e9c5:10b0:386:cb22:2e5e]) (user=wusamuel job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:8816:b0:385:5b47:8aad with SMTP id 5a478bee46e88-38570451daemr40037410eec.19.1796170551171; Tue, 01 Dec 2026 16:15:51 -0800 (PST) Date: Tue, 1 Dec 2026 16:13:47 -0800 In-Reply-To: <20261202001344.2721429-12-wusamuel@google.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261202001344.2721429-12-wusamuel@google.com> X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261202001344.2721429-18-wusamuel@google.com> Subject: [PATCH bpf-next v4 06/10] docs/procfs: Document KALLSYMS_QUERY_* ioctls on /proc/kallsyms From: Samuel Wu To: Jonathan Corbet , Shuah Khan , Randy Dunlap , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , John Fastabend , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Alexander Viro , Christian Brauner , Jan Kara , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: david.laight.linux@gmail.com, akpm@linux-foundation.org, pmladek@suse.com, Samuel Wu , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, bpf@vger.kernel.org, linux-modules@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.1.911.g883d8bcb20-goog