Skip to content

Commit 2380112

Browse files
ammyyiysun
authored andcommitted
PT test: Add 20 PT cases with perf tool.
Signed-off-by: Ammy Yi <ammy.yi@intel.com>
1 parent d926bdc commit 2380112

3 files changed

Lines changed: 553 additions & 19 deletions

File tree

pt/README.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
11
# PT
2+
23
Intel Processor Trace (Intel PT) is an extension of Intel Architecture that
34
captures information about software execution using dedicated hardware facilities
45
that cause only minimal performance perturbation to the software being traced.
56

67
## Build Tips
8+
79
Need prepare intel-pt.h and libipt.so for building PT related cases.
810
You can get them in https://github.com/intel/libipt.
911

1012
## Usage
13+
1114
Need libipt.so.2 and add it into LD_LIBRARY_PATH before running PT cases.
1215
You 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+
4842
All 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+
```

0 commit comments

Comments
 (0)