summaryrefslogtreecommitdiff
path: root/tools/intel_reg_dumper.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-03-31 17:25:23 -0400
committerAdam Jackson <ajax@redhat.com>2010-04-05 11:41:24 -0400
commitcd64e193299be4b9733a5e804cedd99e2072830f (patch)
tree9dcf27ccfdfc5805c94f016d696a85ab44512654 /tools/intel_reg_dumper.c
parent2187ec2112750bb898416358ac5463eebbf30049 (diff)
intel_reg_dumper: Add support for reading register dumps from files
Also add intel_reg_snapshot for creating such snapshots, and relevant documentation. Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'tools/intel_reg_dumper.c')
-rw-r--r--tools/intel_reg_dumper.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c
index d3eec1de..8a9cf7a0 100644
--- a/tools/intel_reg_dumper.c
+++ b/tools/intel_reg_dumper.c
@@ -1658,9 +1658,12 @@ intel_dump_regs(void)
int main(int argc, char** argv)
{
- intel_get_mmio();
+ if (argc == 2)
+ intel_map_file(argv[1]);
+ else
+ intel_get_mmio();
- if (HAS_PCH_SPLIT(devid))
+ if (HAS_PCH_SPLIT(devid) || getenv("HAS_PCH_SPLIT"))
ironlake_dump_regs();
else
intel_dump_regs();