acpigrep

command
v7.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

grep a stream of ACPI tables by regexp

Synopsis:

acpigrep [-v] [-d] regexp

Description:

	Read tables from stdin and write tables with ACPI signatures
	matching a pattern (or not matching, with -v, as in grep)
	to stdout.

	Read all tables from sysfs and discard MADT
	sudo cat /sys/firmware/acpi/tables/[A-Z]* | ./acpigrep -v MADT

	Read a large blob and print out its tables
	acpigrep -d '.*' >/dev/null < blob

     Read all the files in /sys and discard any DSDT. Useful for coreboot work.
	sudo cat /sys/firmware/acpi/tables/[A-Z]* | ./acpigrep -v DSDT > nodsdt.bin

	Read all the files, keeping only SRAT and MADT
	sudo cat /sys/firmware/acpi/tables/[A-Z]* | ./acpigrep 'MADT|SRAT' > madtsrat.bin

	Read all the files, keeping only SRAT and MADT, and print what is done
	sudo cat /sys/firmware/acpi/tables/[A-Z]* | ./acpigrep -d 'MADT|SRAT' > madtsrat.bin

Options:

-d print debug information about what is kept and what is discarded.
-v reverse the sense of the match to "discard is matching"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL