Brad Smith
e9cf64aeec
Add CPU clock OS detection routine for OpenBSD
2025-04-17 21:22:56 +02:00
The Tumultuous Unicorn Of Darkness
9e1c332f52
CI: remove ubuntu-20.04
...
https://github.com/actions/runner-images/issues/11101
2025-04-17 21:09:33 +02:00
Brad Smith
4fe46c89d2
Use HW_NCPUONLINE for get_total_cpus on OpenBSD and NetBSD
2025-04-17 21:05:49 +02:00
dramforever
86c2bef72a
Simplify exec_cpuid to use constraints
...
The existing implementation does not work when using the x32 ABI, which
has 32-bit addresses but otherwise can use 64-bit registers.
Use constraints to specify cpuid input and output instead, which is much
simpler anyway.
2025-04-16 19:02:15 +02:00
The Tumultuous Unicorn Of Darkness
ab2bb1e2a5
[CI] update hummeltech/*bsd-vagrant-action
2025-03-17 20:05:27 +01:00
The Tumultuous Unicorn Of Darkness
1ebaa845fb
Revert "[CI] Fix build for *BSD"
...
This reverts commit 6fe0d55cce
.
2025-03-17 20:02:02 +01:00
The Tumultuous Unicorn Of Darkness
6fe0d55cce
[CI] Fix build for *BSD
...
Related to hummeltech/vagrant-action#2
2025-03-14 18:59:35 +01:00
The Tumultuous Unicorn Of Darkness
4308bc4986
Tests: compress some big files with XZ
2025-02-23 10:56:52 +01:00
The Tumultuous Unicorn Of Darkness
44ba0e69a0
DB: add AMD Turin Dense
...
Related to InstLatx64/InstLatx64@6b10282fa6
2025-02-23 10:52:15 +01:00
The Tumultuous Unicorn Of Darkness
e46e346a50
Tests: support XZ files
2025-02-23 10:49:54 +01:00
Barak A. Pearlmutter
817e453e27
typo in string
2024-12-08 14:52:01 +01:00
The Tumultuous Unicorn Of Darkness
1761babac0
[CI] Update to hummeltech/openbsd-vagrant-action@v3
...
Related to hummeltech/openbsd-vagrant-action#1
2024-12-01 11:47:45 +01:00
The Tumultuous Unicorn Of Darkness
018a05372d
[CI] List artifacts before compression during Release
2024-11-30 16:00:13 +01:00
The Tumultuous Unicorn Of Darkness
fc7d17bd74
[CI] Allow to start Release workflow manually
2024-11-30 15:53:50 +01:00
The Tumultuous Unicorn Of Darkness
ce163b1eae
[CI] fix Windows x86_64 artifacts path again
...
It seems I forgot some parts in 06c5985dcb17aefbad5cc0dd6b5c55f9fac15c76...
2024-11-30 15:46:13 +01:00
The Tumultuous Unicorn Of Darkness
2b84c1ff02
Release version 0.7.1
2024-11-30 15:34:57 +01:00
The Tumultuous Unicorn Of Darkness
43be84460c
DB: add AMD Turin
2024-11-30 12:32:41 +01:00
The Tumultuous Unicorn Of Darkness
15cbda31bd
DB: add Intel Arrow Lake
2024-11-30 12:22:10 +01:00
The Tumultuous Unicorn Of Darkness
d5a82d6f64
DB: use correct _intel_model_t enum value for Meteor Lake CPUs
2024-11-30 12:18:41 +01:00
FrankXie
a7d5f29ace
[MSVC] Replace #warning with compatible directives for MSVC
2024-11-26 11:15:05 +01:00
dependabot[bot]
391b168a49
Bump dawidd6/action-download-artifact from 3 to 6 in /.github/workflows
...
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact ) from 3 to 6.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases )
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v3...v6 )
---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-26 11:02:16 +01:00
The Tumultuous Unicorn Of Darkness
eaa37ce5b6
[CMake] force 'make' usage to build kernel module
...
It fails when CMake uses Ninja
2024-10-07 11:07:45 +02:00
The Tumultuous Unicorn Of Darkness
7770fffb6a
Fix build error on AArch64 when HWCAP_CPUID is not defined
...
Fix #205
2024-10-04 12:54:42 +02:00
Pavol Žáčik
bcd2dea9ee
Python: Do not fail sanity tests if current CPU is unsupported
2024-09-02 10:27:30 +02:00
Pavol Žáčik
20fbc35374
Python: Refactor the build of the bindings
...
When building the binding, link the dynamic
C library as built by `make` instead of linking
the system-installed C library. This simplifies
packaging in Linux distributions and also the
build of the live docs.
2024-09-02 10:27:30 +02:00
The Tumultuous Unicorn Of Darkness
a0f07b8b26
Return ERR_NO_CPUID when cpuid kernel module cannot be used on AArch32 state
2024-08-30 15:15:22 +02:00
The Tumultuous Unicorn Of Darkness
b121830b44
Tests: fix missing 'arch' field during test creation
...
Mistake done in 3b8b7dfaf8
.
2024-08-29 16:44:32 +02:00
The Tumultuous Unicorn Of Darkness
4d4e342a4e
Tests: add ARM Cortex A72
...
From my Raspberry Pi 4 Model B Rev 1.1 running in AArch32 mode.
2024-08-29 16:42:07 +02:00
The Tumultuous Unicorn Of Darkness
04edb80169
Drivers: fix cpuid kernel module build on ARM
2024-08-29 13:08:46 +02:00
The Tumultuous Unicorn Of Darkness
ddb834787c
Add Nix to the list of projects in Readme.md
2024-08-26 14:12:29 +02:00
The Tumultuous Unicorn Of Darkness
06c5985dcb
[CI] fix Windows x86_64 artifacts path
2024-08-26 11:24:51 +02:00
The Tumultuous Unicorn Of Darkness
9574313a76
Release version 0.7.0
2024-08-26 11:05:12 +02:00
The Tumultuous Unicorn Of Darkness
39506501d5
Tests: fix the --fix option
...
--fix was removing delimiters from real output, but there are required.
2024-08-25 21:05:36 +02:00
The Tumultuous Unicorn Of Darkness
3b8b7dfaf8
Detect x2APIC and AVX512 for AMD CPUs and update tests
...
AVX512 is supported since Zen 4, meaning all Zen 4 CPUs are x86-64-v4.
x2APIC and AVX512 are present in 'Processor Programming Reference (PPR) for AMD Family 19h Model 11h, Revision B1'.
2024-08-25 20:49:56 +02:00
The Tumultuous Unicorn Of Darkness
ca5e1e399d
Tests: add more AMD Raphael
2024-08-25 20:16:19 +02:00
The Tumultuous Unicorn Of Darkness
0438cbaae5
Tests: add more AMD Vermeer
2024-08-25 20:16:04 +02:00
The Tumultuous Unicorn Of Darkness
a9ec98f2bf
DB: add AMD Granite Ridge
2024-08-25 20:09:32 +02:00
The Tumultuous Unicorn Of Darkness
b2bbc1ed23
DB: add AMD Strix Point
2024-08-25 20:01:30 +02:00
The Tumultuous Unicorn Of Darkness
0d8cf47ee4
Fix strings truncation warnings
...
recog_arm.c: In function 'cpuid_identify_arm':
recog_arm.c:2548:9: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
2548 | strncpy(data->vendor_str, hw_impl->name, VENDOR_STR_MAX);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
recog_arm.c:2549:9: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation]
2549 | strncpy(data->brand_str, id_part->name, BRAND_STR_MAX);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
recog_arm.c:2550:9: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation]
2550 | strncpy(data->cpu_codename, id_part->codename, CODENAME_STR_MAX);
2024-08-25 16:48:32 +02:00
The Tumultuous Unicorn Of Darkness
656ea52909
Add missing source files in build systems
2024-08-25 16:48:25 +02:00
The Tumultuous Unicorn Of Darkness
a483748856
Update Readme.md
2024-08-25 12:45:57 +02:00
Pavol Žáčik
9915832b21
Add simple sanity tests of the Python bindings
...
And include them in the CI together with pylint
and formatting checks.
2024-08-25 12:43:29 +02:00
Pavol Žáčik
ec938b5d42
Document the Python bindings using Sphinx
...
Additionally, setup the documentation for
deployment to Read The Docs.
2024-08-25 12:43:29 +02:00
Pavol Žáčik
40e2d5fcb6
Add Python bindings
...
The bindings are implemented via python-cffi and cover all
current functionality of the library. They do not provide
a 1-to-1 mapping of the functionality, but a more "Pythonic"
API instead.
When new functionality is added to the libcpuid library
in the future, the changes must be manually added to the
bindings in order to appear in the Python interface.
However, if only a C enum is extended, the changes will
be automatically reflected in the Python interface.
2024-08-25 12:43:29 +02:00
Pavol Žáčik
6c87edab5a
Remove CPU_ prefix from x86 cpu_feature_level_t enum options
...
This makes the option names of cpu_feature_level_t consistent
and it also makes it easier to list options of the cpu_feature_t
enum just by their prefix (because it now doesn't collide with
the prefix of cpu_feature_level_t options).
2024-08-25 12:43:29 +02:00
The Tumultuous Unicorn Of Darkness
6b87429dc5
Rename error variable in cpu_request_core_type() for consistency
2024-08-04 15:13:45 +02:00
The Tumultuous Unicorn Of Darkness
673f4e45ff
Improve error handling in cpu_identify_all()
2024-08-04 15:13:45 +02:00
The Tumultuous Unicorn Of Darkness
8f6b84d86c
Fix SEGFAULT in debugf() when using --quiet
...
The `--quiet` option calls `cpuid_set_warn_function(NULL)`, but debugf() was not checking if _warn_fun is defined unlike warnf()
2024-08-04 15:13:26 +02:00
The Tumultuous Unicorn Of Darkness
afbc2e5a4a
Hide a warning
...
/home/runner/work/libcpuid/libcpuid/libcpuid/cpuid_main.c:450:44: warning: unused parameter 'logical_cpu' [-Wunused-parameter]
static bool set_cpu_affinity(logical_cpu_t logical_cpu)
2024-08-03 12:38:19 +02:00
The Tumultuous Unicorn Of Darkness
ddd5868577
CI: cancel previous jobs in the group
...
https://stackoverflow.com/a/72408109
2024-08-03 12:34:49 +02:00