From: Raphael Moreira Zinsly <rzinsly@linux.vnet.ibm.com>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org, benh@kernel.crashing.org,
mpe@ellerman.id.au,
Raphael Moreira Zinsly <rzinsly@linux.vnet.ibm.com>
Subject: [PATCH v2] getauxval.3: Add new cache geometry entries
Date: Tue, 24 Sep 2019 10:11:42 -0300 [thread overview]
Message-ID: <20190924131142.6126-1-rzinsly@linux.vnet.ibm.com> (raw)
In-Reply-To: <9f0ee256-bc65-c850-a8ae-a833ca7a124d@gmail.com>
Add entries for the new cache geometry values of the auxiliary vectors
that got included in the kernel.
Signed-off-by: Raphael Moreira Zinsly <rzinsly@linux.vnet.ibm.com>
---
man3/getauxval.3 | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/man3/getauxval.3 b/man3/getauxval.3
index 794bc97b5..b78a63225 100644
--- a/man3/getauxval.3
+++ b/man3/getauxval.3
@@ -123,6 +123,34 @@ The instruction cache block size.
.\" .TP
.\" .BR AT_NOTELF
.TP
+.\" Kernel commit 98a5f361b8625c6f4841d6ba013bbf0e80d08147
+.BR AT_L1D_CACHEGEOMETRY
+Geometry of the L1 data cache, encoded with the cache line size in
+bytes in the bottom 16 bits and the cache associativity in the next 16
+bits. The associativity is such that if N is the 16-bit value, the cache
+is N-way set associative.
+.TP
+.BR AT_L1D_CACHESIZE
+The L1 data cache size.
+.TP
+.BR AT_L1I_CACHEGEOMETRY
+Geometry of the L1 instruction cache, encoded as for AT_L1D_CACHEGEOMETRY.
+.TP
+.BR AT_L1I_CACHESIZE
+The L1 instruction cache size.
+.TP
+.BR AT_L2_CACHEGEOMETRY
+Geometry of the L2 cache, encoded as for AT_L1D_CACHEGEOMETRY.
+.TP
+.BR AT_L2_CACHESIZE
+The L2 cache size.
+.TP
+.BR AT_L3_CACHEGEOMETRY
+Geometry of the L3 cache, encoded as for AT_L1D_CACHEGEOMETRY.
+.TP
+.BR AT_L3_CACHESIZE
+The L3 cache size.
+.TP
.BR AT_PAGESZ
The system page size (the same value returned by
.IR sysconf(_SC_PAGESIZE) ).
--
2.21.0
next prev parent reply other threads:[~2019-09-24 13:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-16 18:41 [PATCH] getauxval.3: Add new cache geometry entries Raphael Moreira Zinsly
2019-09-23 12:27 ` Michael Kerrisk (man-pages)
2019-09-23 13:36 ` Raphael M Zinsly
2019-09-24 18:41 ` G. Branden Robinson
2019-09-24 20:08 ` Michael Kerrisk (man-pages)
2019-09-24 4:27 ` Michael Kerrisk (man-pages)
2019-09-24 13:11 ` Raphael Moreira Zinsly [this message]
2019-09-24 20:05 ` [PATCH v2] " Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190924131142.6126-1-rzinsly@linux.vnet.ibm.com \
--to=rzinsly@linux.vnet.ibm.com \
--cc=benh@kernel.crashing.org \
--cc=linux-man@vger.kernel.org \
--cc=mpe@ellerman.id.au \
--cc=mtk.manpages@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).