1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-04-20 12:27:47 +03:00
glibc/sysdeps/unix/sysv/linux/powerpc/dl-hwcap-info.h
Adhemerval Zanella 8a995670a8 powerpc: Move AT_HWCAP descriptions to ld diagnostics
The ld.so diagnostics already prints AT_HWCAP values, but only in
hexadecimal.  To avoid duplicating the strings, consolidate the
hwcap_names from cpu-features.h on a new file, dl-hwcap-info.h
(and it also improves the hwcap string description with more
values).

For future AT_HWCAP3/AT_HWCAP4 extensions, it is just a matter
to add them on dl-hwcap-info.c so both ld diagnostics and
tunable filtering will parse the new values.

Checked on powerpc64le-linux-gnu.

Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
2025-03-05 11:22:09 -03:00

35 lines
1.1 KiB
C

/* HWCAP string information. PowerPC version.
Copyright (C) 2017-2025 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#ifndef _DL_HWCAP_INFO_H
#define _DL_HWCAP_INFO_H
#include <stddef.h>
#include <sys/auxv.h>
extern const char __dl_hwcap_names[] attribute_hidden;
struct hwcap_info_t
{
unsigned int value;
int hwcap;
};
extern const struct hwcap_info_t __dl_hwcap_info[] attribute_hidden;
extern size_t __dl_hwcap_info_size attribute_hidden;
#endif