File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# PT
2+
23Intel Processor Trace (Intel PT) is an extension of Intel Architecture that
34captures information about software execution using dedicated hardware facilities
45that cause only minimal performance perturbation to the software being traced.
56
67## Build Tips
8+
79Need prepare intel-pt.h and libipt.so for building PT related cases.
810You can get them in https://github.com/intel/libipt .
911
1012## Usage
13+
1114Need libipt.so.2 and add it into LD_LIBRARY_PATH before running PT cases.
1215You can build libipt.so.2 in https://github.com/intel/libipt .
1316
1417```
18+ # Disable branch and check no TIP/FUP/TNT.
1519./branch
16- ```
17- Disable branch and check no TIP/FUP/TNT.
1820
19- ```
21+ # User mode trace check
2022./cpl 1
21- ```
22- User mode trace check
23- ```
23+
24+ # Kernel mode trace check
2425./cpl 2
25- ```
26- Kernel mode trace check
2726
28- ```
27+ # Check if psb package there.
2928./psb
30- ```
31- Check if psb package there.
3229
33- ```
30+ # Check reserved bit cannot be set.
3431./negative_test
35- ```
36- Check reserved bit cannot be set.
3732
38- ```
33+ # Non root user do full trace check.
3934./nonroot_test 1
40- ```
41- Non root user do full trace check.
42- ```
35+
36+ # Non root user do snapshot trace check.
4337./nonroot_test 2
4438```
45- Non root user do snapshot trace check.
4639
4740## Expected result
41+
4842All test results should show pass, no fail.
43+ Usage for perf_tests.sh:
44+
45+ 1 . Make sure latest perf is there.
46+ 2 . Run case as
47+ ```
48+ ./perf_tests.sh -t <case name>
49+ ```
You can’t perform that action at this time.
0 commit comments