+21
−4
+93
−0
+115
−0
+174
−0
+812
−0
File added.
Preview size limit exceeded, changes collapsed.
Loading
Merge Pull Request from: @PrithivishS
*Description:*
---------------------------------------
Patches to support perf vendor events and tracepoints on Turin systems.
x86/mce: Clean up TP_printk() output line of the 'mce_record' tracepoint
tracing: Add the ::ppin field to the mce_record tracepoint
tracing: Add the ::microcode field to the mce_record tracepoint
perf vendor events amd: Add Zen 5 core events
perf vendor events amd: Add Zen 5 uncore events
perf vendor events amd: Add Zen 5 metrics
perf vendor events amd: Add Zen 5 mapping
All the commits have been system tested and, in addition, a sample of perf events can be tested as follows:-
**Without Vendor Event Patches**
```javascript
$>perf stat -e l3_lookup_state.l3_miss ./test_cache_misses
event syntax error: 'l3_lookup_state.l3_miss'
\___ Bad event name
Unable to find event on a PMU of 'l3_lookup_state.l3_miss'
Run 'perf list' for a list of valid events
Usage: perf stat [<options>] [<command>]
-e, --event <event> event selector. use 'perf list' to list available events
```
**With Vendor Event Patches**
```javascript
$>perf stat -e l3_lookup_state.l3_miss ./test_cache_misses
Performance counter stats for 'system wide':
93,616 l3_lookup_state.l3_miss
0.001563242 seconds time elapsed
```
**Without Vendor Event Patches**
```javascript
$> perf stat -e bp_l1_tlb_miss_l2_tlb_hit sleep 1
event syntax error: 'bp_l1_tlb_miss_l2_tlb_hit'
\___ Bad event name
Unable to find event on a PMU of 'bp_l1_tlb_miss_l2_tlb_hit'
Run 'perf list' for a list of valid events
" > Usage: perf stat [<options>] [<command>] "
-e, --event <event> event selector. use 'perf list' to list available events
```
**With Vendor Event Patches**
```javascript
$>perf stat -e bp_l1_tlb_miss_l2_tlb_hit sleep 1
Performance counter stats for 'sleep 1':
0 bp_l1_tlb_miss_l2_tlb_hit:u
1.001173665 seconds time elapsed
0.001009000 seconds user
0.000000000 seconds sys
```
**Without Vendor Event Patches**
```javascript
$>perf stat -e ls_not_halted_cyc ./test_dispatch_slots
event syntax error: 'ls_not_halted_cyc'
\___ Bad event name
Unable to find event on a PMU of 'ls_not_halted_cyc'
Run 'perf list' for a list of valid events
> Usage: perf stat [<options>] [<command>]
-e, --event <event> event selector. use 'perf list' to list available events
```
**With Vendor Event Patches**
```javascript
$>perf stat -e ls_not_halted_cyc ./test_dispatch_slots
Performance counter stats for './test_dispatch_slots':
147,532,695 ls_not_halted_cyc
0.046021315 seconds time elapsed
0.044920000 seconds user
0.000999000 seconds sys
```
Link:https://gitee.com/openeuler/kernel/pulls/12288
Reviewed-by:
Xu Kuohai <xukuohai@huawei.com>
Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>
File added.
Preview size limit exceeded, changes collapsed.