Skip to content

Commit

Permalink
Merge tag 'x86_misc_for_v5.13' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/tip/tip

Pull x86 tool update from Borislav Petkov:
 "A new kcpuid tool to dump the raw CPUID leafs of a CPU.

  It has the CPUID bit definitions in a separate csv file which allows
  for adding support for new CPUID leafs and bits without having to
  update the tool.

  The main use case for the tool is hw enablement on preproduction x86
  hardware"

* tag 'x86_misc_for_v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  tools/x86/kcpuid: Add AMD leaf 0x8000001E
  tools/x86/kcpuid: Check last token too
  selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S
  tools/x86/kcpuid: Add AMD Secure Encryption leaf
  tools/x86: Add a kcpuid tool to show raw CPU features
  • Loading branch information
torvalds committed Apr 26, 2021
2 parents 2c5ce2d + f281854 commit 98ee795
Show file tree
Hide file tree
Showing 4 changed files with 1,083 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tools/arch/x86/kcpuid/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPDX-License-Identifier: GPL-2.0
# Makefile for x86/kcpuid tool

kcpuid : kcpuid.c

CFLAGS = -Wextra

BINDIR ?= /usr/sbin

HWDATADIR ?= /usr/share/misc/

override CFLAGS += -O2 -Wall -I../../../include

%: %.c
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)

.PHONY : clean
clean :
@rm -f kcpuid

install : kcpuid
install -d $(DESTDIR)$(BINDIR)
install -m 755 -p kcpuid $(DESTDIR)$(BINDIR)/kcpuid
install -m 444 -p cpuid.csv $(HWDATADIR)/cpuid.csv
Loading

0 comments on commit 98ee795

Please sign in to comment.