Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.02 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.02 KB

PT

Intel Processor Trace (Intel PT) is an extension of Intel Architecture that captures information about software execution using dedicated hardware facilities that cause only minimal performance perturbation to the software being traced.

Build Tips

Need prepare intel-pt.h and libipt.so for building PT related cases. You can get them in https://github.com/intel/libipt.

Usage

Need libipt.so.2 and add it into LD_LIBRARY_PATH before running PT cases. You can build libipt.so.2 in https://github.com/intel/libipt.

# Disable branch and check no TIP/FUP/TNT.
./branch

# User mode trace check
./cpl 1

# Kernel mode trace check
./cpl 2

# Check if psb package there.
./psb

# Check reserved bit cannot be set.
./negative_test

# Non root user do full trace check.
./nonroot_test 1

# Non root user do snapshot trace check.
./nonroot_test 2

Expected result

All test results should show pass, no fail. Usage for perf_tests.sh:

  1. Make sure latest perf is there.
  2. Run case as
./perf_tests.sh -t <case name>