Commit fd0a8a7
committed
perf/x86/uncore: Apply the unit control RB tree to MSR uncore units
jira LE-2177
Rebuild_History Non-Buildable kernel-5.14.0-503.19.1.el9_5
commit-author Kan Liang <kan.liang@linux.intel.com>
commit b1d9ea2
The unit control RB tree has the unit control and unit ID information
for all the MSR units. Use them to replace the box_ctl and
uncore_msr_box_ctl() to get an accurate unit control address for MSR
uncore units.
Add intel_generic_uncore_assign_hw_event(), which utilizes the accurate
unit control address from the unit control RB tree to calculate the
config_base and event_base.
The unit id related information should be retrieved from the unit
control RB tree as well.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Yunying Sun <yunying.sun@intel.com>
Link: https://lore.kernel.org/r/20240614134631.1092359-6-kan.liang@linux.intel.com
(cherry picked from commit b1d9ea2)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent a6399bd commit fd0a8a7
File tree
4 files changed
+59
-11
lines changed- arch/x86/events/intel
4 files changed
+59
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
502 | 514 | | |
503 | 515 | | |
504 | | - | |
| 516 | + | |
505 | 517 | | |
506 | 518 | | |
507 | 519 | | |
508 | 520 | | |
509 | | - | |
| 521 | + | |
510 | 522 | | |
511 | 523 | | |
512 | 524 | | |
513 | 525 | | |
514 | | - | |
| 526 | + | |
515 | 527 | | |
516 | 528 | | |
517 | 529 | | |
| |||
539 | 551 | | |
540 | 552 | | |
541 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
542 | 579 | | |
543 | 580 | | |
544 | 581 | | |
| |||
697 | 734 | | |
698 | 735 | | |
699 | 736 | | |
700 | | - | |
701 | | - | |
| 737 | + | |
| 738 | + | |
702 | 739 | | |
703 | 740 | | |
| 741 | + | |
| 742 | + | |
704 | 743 | | |
705 | 744 | | |
706 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5933 | 5933 | | |
5934 | 5934 | | |
5935 | 5935 | | |
| 5936 | + | |
5936 | 5937 | | |
5937 | 5938 | | |
5938 | 5939 | | |
5939 | | - | |
| 5940 | + | |
5940 | 5941 | | |
5941 | 5942 | | |
5942 | 5943 | | |
| |||
6460 | 6461 | | |
6461 | 6462 | | |
6462 | 6463 | | |
| 6464 | + | |
6463 | 6465 | | |
6464 | | - | |
| 6466 | + | |
| 6467 | + | |
6465 | 6468 | | |
6466 | 6469 | | |
6467 | 6470 | | |
6468 | 6471 | | |
6469 | 6472 | | |
6470 | | - | |
6471 | | - | |
6472 | | - | |
6473 | | - | |
| 6473 | + | |
| 6474 | + | |
6474 | 6475 | | |
| 6476 | + | |
| 6477 | + | |
| 6478 | + | |
6475 | 6479 | | |
6476 | 6480 | | |
6477 | 6481 | | |
| |||
0 commit comments