Commit 64ea7a4
perf annotate: Fix register usage in data type profiling
On data type profiling, it tried to match register name with a partial
string. For example, it allowed to match with "%rbp)" or "%rdi,8)".
But with recent change in the area, it doesn't match anymore and break
the data type profiling.
Let's pass the correct register name by removing the unwanted part.
Add arch__dwarf_regnum() to handle it in a single place.
Closes: 7d3n23li6drroxrdlpxn7ixehdeszkjdftah3zyngjl2qs22ef@yelcjv53v42o
Reported-by: Dmitry Dolgov <[email protected]>
Reviewed-by: Ian Rogers <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: James Clark <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Zecheng Li <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>1 parent bb5a920 commit 64ea7a4
1 file changed
Lines changed: 30 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2447 | 2447 | | |
2448 | 2448 | | |
2449 | 2449 | | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
2450 | 2473 | | |
2451 | 2474 | | |
2452 | 2475 | | |
| |||
2457 | 2480 | | |
2458 | 2481 | | |
2459 | 2482 | | |
2460 | | - | |
2461 | 2483 | | |
2462 | 2484 | | |
2463 | 2485 | | |
| |||
2482 | 2504 | | |
2483 | 2505 | | |
2484 | 2506 | | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
| 2507 | + | |
| 2508 | + | |
2488 | 2509 | | |
2489 | 2510 | | |
2490 | | - | |
2491 | | - | |
2492 | | - | |
2493 | | - | |
2494 | | - | |
2495 | | - | |
2496 | | - | |
2497 | 2511 | | |
2498 | | - | |
2499 | | - | |
2500 | | - | |
2501 | | - | |
2502 | | - | |
2503 | | - | |
2504 | | - | |
2505 | | - | |
| 2512 | + | |
| 2513 | + | |
2506 | 2514 | | |
2507 | | - | |
2508 | | - | |
2509 | | - | |
2510 | 2515 | | |
2511 | 2516 | | |
2512 | 2517 | | |
| |||
2585 | 2590 | | |
2586 | 2591 | | |
2587 | 2592 | | |
2588 | | - | |
| 2593 | + | |
| 2594 | + | |
2589 | 2595 | | |
2590 | 2596 | | |
2591 | 2597 | | |
| |||
2599 | 2605 | | |
2600 | 2606 | | |
2601 | 2607 | | |
2602 | | - | |
2603 | | - | |
2604 | | - | |
2605 | | - | |
2606 | 2608 | | |
2607 | | - | |
2608 | | - | |
2609 | | - | |
| 2609 | + | |
2610 | 2610 | | |
2611 | 2611 | | |
2612 | 2612 | | |
2613 | 2613 | | |
2614 | 2614 | | |
2615 | 2615 | | |
2616 | | - | |
2617 | 2616 | | |
2618 | 2617 | | |
2619 | 2618 | | |
| |||
0 commit comments