1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00
a small C library for x86 CPU detection and feature extraction
Find a file
Veselin Georgiev 6b09bceb66 Implement cpu_msr_driver_open_core() on Mac OS X and Windows (dummies).
On Windows, we don't have the API that Linux provides, which can be used
to query MSRs of particular CPU cores. However, the same behaviour can be
emulated. Say that the driver handle object also stores 'dedicated thread
index'. When you call 'cpu_msr_driver_open()', this index is set to -1,
so further API functions do not force which core should be executing
RDMSR code. I.e. "I don't care on which core I run".
However, if this is non-negative number, the subsequent
functions like cpu_rdmsr() are forced to pass through this core by
using temporary affinity mask.
2015-10-17 03:00:58 +03:00
contrib/MSR Driver Added support for reading MSRs through dedicated driver on Win32 2009-09-30 11:25:14 +00:00
cpuid_tool Update cpuid_tool to print the new supported MSR info. 2015-10-16 03:07:55 +03:00
debian Address lintian warnings/errors. Fixes issue #16. 2015-04-21 12:23:51 -04:00
libcpuid Implement cpu_msr_driver_open_core() on Mac OS X and Windows (dummies). 2015-10-17 03:00:58 +03:00
tests Fix tests due to X0rg's codename changes. 2015-09-13 18:38:59 +03:00
.gitignore Two more autogenerated files to the ignore list. 2015-04-16 21:19:27 +03:00
AUTHORS Moving the repository one level deeper 2008-11-06 18:17:20 +00:00
ChangeLog Update ChangeLog; bump the version to 0.2.1 everywhere. 2014-06-25 14:15:53 +03:00
configure.ac Fixed issue #5: warnings while running auto-reconf --install 2014-08-18 18:17:24 +03:00
COPYING Moving the repository one level deeper 2008-11-06 18:17:20 +00:00
libcpuid.dsw Ported to Microsoft Visual C 6.0 2012-08-25 23:14:59 +00:00
libcpuid.pc.in Incorrect path in .pc file - fixed; Clarified documentation a bit 2008-11-28 16:17:29 +00:00
libcpuid_vc9.sln Renamed VC project files so that project for versions lower than Visual C++ 2008 can be made. 2009-08-19 21:14:39 +00:00
libcpuid_vc71.sln Added project files for Visual Studio 2003 (VC 71), added an option to build libcpuid as a DLL. 2009-08-19 21:43:56 +00:00
Makefile.am Add to makefile: "make fix-tests" to fix failing tests. 2014-09-23 15:20:27 +03:00
NEWS Moving the repository one level deeper 2008-11-06 18:17:20 +00:00
README Fix issue #2: There is no configure binary and get some statements while building it. 2014-06-25 13:48:32 +03:00

libcpuid
---------

libcpuid provides CPU identification for the x86 (and x86_64).
For details about the programming API, please see the docs
on the project's site (http://libcpuid.sourceforge.net/)

    Configuring after checkout
    --------------------------

        Under linux, where you download the sources, there's no
    configure script to run. This is because it isn't a good practice to keep
    such scripts in a source control system. To create it, you need to run the
    following commands once, after you checkout the libcpuid sources
    from github:

        1. run "libtoolize"
        2. run "autoreconf --install"

        You need to have autoconf, automake and libtool installed.

        After that you can run "./configure" and "make" - this will build
    the library.

        "make dist" will create a tarball (with "configure" inside) with the
    sources.