ptxed: check instructions
ptxed: check instructions

Add a new option --check that performs some checks.

If --insn-decoder is specified, we check that:

  - XED can decode each instruction
  - an instruction's class matches XED's categorization

If --block-decoder is specified, we check that:

  - XED can decode each instruction
  - we reach the block's end IP
  - the last instruction's class (if available) matches XED's categorization

The --check option can be combined with --quiet to only print error messages.

Change-Id: I2730384f9257469cb7401eeff4e4a717ecadd5dc
Signed-off-by: Markus Metzger <5f675b2b36595f90898e014b548ff7d9bbff2ab7@intel.com>

01org/processor-trace,01org/processor-trace,01org/processor-trace