public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: "Cownie, James H" <james.h.cownie@intel.com>
Cc: mtk.manpages@gmail.com,
	"libc-alpha@sourceware.org" <libc-alpha@sourceware.org>,
	"linux-man@vger.kernel.org" <linux-man@vger.kernel.org>
Subject: Re: [patch] getauxval.3 correct AT_HWCAP result description
Date: Tue, 12 Jul 2016 22:24:55 +0200	[thread overview]
Message-ID: <2b181d0f-3a50-bf18-268b-9991de75d216@gmail.com> (raw)
In-Reply-To: <397D95928DECEF49983F5B237627E9785733058A@IRSMSX108.ger.corp.intel.com>

Hello James,

On 07/12/2016 06:35 PM, Cownie, James H wrote:
> The getauxval(3) man page describes the result for AT_HWCAP as "A
> pointer to a multibyte mask of bits", however the actual value
> returned is not a pointer, but simply the first 32 bits of the
> capabilities mask.
>
> This can be observed directly. Note the value shown for AT_HWCAP is a
> 32 bit value that is not a pointer (see AT_PHDR or AT_RANDOM for how
> pointers are shown).

Thanks! Patch applied.

Cheers,

Michael

>
> % LD_SHOW_AUXV=1 cat < /dev/null
> AT_SYSINFO_EHDR: 0x7fffe89fe000
> AT_HWCAP:        bfebfbff
> AT_PAGESZ:       4096
> AT_CLKTCK:       100
> AT_PHDR:         0x400040
> AT_PHENT:        56
> AT_PHNUM:        9
> AT_BASE:         0x0
> AT_FLAGS:        0x0
> AT_ENTRY:        0x402634
> AT_UID:          515
> AT_EUID:         515
> AT_GID:          114
> AT_EGID:         114
> AT_SECURE:       0
> AT_RANDOM:       0x7fffe8917be9
> AT_EXECFN:       /usr/bin/cat
> AT_PLATFORM:     x86_64
>
>
> --- PATCH ---
> diff --git a/man3/getauxval.3 b/man3/getauxval.3
> index 85d7f41..7ce0237 100644
> --- a/man3/getauxval.3
> +++ b/man3/getauxval.3
> @@ -101,12 +101,13 @@ performed by the kernel.
>  The real group ID of the thread.
>  .TP
>  .BR AT_HWCAP
> -A pointer to a multibyte mask of bits whose settings
> +A four byte long bit-mask whose settings
>  indicate detailed processor capabilities.
>  The contents of the bit mask are hardware dependent
>  (for example, see the kernel source file
>  .IR arch/x86/include/asm/cpufeature.h
> -for details relating to the Intel x86 architecture).
> +for details relating to the Intel x86 architecture; the value
> +returned is the first 32 bit word of the array described there).
>  A human-readable version of the same information is available via
>  .IR /proc/cpuinfo .
>  .TP
> --- END PATCH ---
>
> -- Jim
>
> James Cownie <james.h.cownie@intel.com>
> SSG/DPD/TCAR (Technical Computing, Analyzers and Runtimes)
> Tel: +44 117 9071438
>
>
> ---------------------------------------------------------------------
> Intel Corporation (UK) Limited
> Registered No. 1134945 (England)
> Registered Office: Pipers Way, Swindon SN3 1RJ
> VAT No: 860 2173 47
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>
>


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

  reply	other threads:[~2016-07-12 20:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-12 16:35 [patch] getauxval.3 correct AT_HWCAP result description Cownie, James H
2016-07-12 20:24 ` Michael Kerrisk (man-pages) [this message]
2016-07-13  8:13   ` Szabolcs Nagy
     [not found]     ` <5785F835.4070209-5wv7dgnIgG8@public.gmane.org>
2016-07-13  8:34       ` Cownie, James H
     [not found]         ` <397D95928DECEF49983F5B237627E97857330926-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-07-14  6:44           ` Michael Kerrisk (man-pages)
2016-08-04 20:35     ` Steven Munroe

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=2b181d0f-3a50-bf18-268b-9991de75d216@gmail.com \
    --to=mtk.manpages@gmail.com \
    --cc=james.h.cownie@intel.com \
    --cc=libc-alpha@sourceware.org \
    --cc=linux-man@vger.kernel.org \
    /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