Remote wakeups of polling CPUs are a valuable performance improvement; add a tracepoint to make it much easier to verify that they're working.
Showing the changes to include/trace (1 of 2 files). Show all
Unified · Split
| @@ -530,6 +530,26 @@ TRACE_EVENT(sched_swap_numa, · 529 unmodified lines | ||
| 530 | 530 | __entry->dst_pid, __entry->dst_tgid, __entry->dst_ngid, |
| 531 | 531 | __entry->dst_cpu, __entry->dst_nid) |
| 532 | 532 | ); |
| 533 | + | |
| 534 | +/* | |
| 535 | + * Tracepoint for waking a polling cpu without an IPI. | |
| 536 | + */ | |
| 537 | +TRACE_EVENT(sched_wake_idle_without_ipi, | |
| 538 | + | |
| 539 | + TP_PROTO(int cpu), | |
| 540 | + | |
| 541 | + TP_ARGS(cpu), | |
| 542 | + | |
| 543 | + TP_STRUCT__entry( | |
| 544 | + __field( int, cpu ) | |
| 545 | + ), | |
| 546 | + | |
| 547 | + TP_fast_assign( | |
| 548 | + __entry->cpu = cpu; | |
| 549 | + ), | |
| 550 | + | |
| 551 | + TP_printk("cpu=%d", __entry->cpu) | |
| 552 | +); | |
| 533 | 553 | #endif /* _TRACE_SCHED_H */ |
| 534 | 554 | |
| 535 | 555 | /* This part must be outside protection */ |