Commit fbc509e
committed
kernel: add shared interrupt counter parsing helpers
Add reusable helpers in Runner/utils/functestlib.sh for interrupt-based
tests:
- get_interrupt_line_by_name()
- extract_interrupt_cpu_counts()
- count_interrupt_cpu_counts()
These helpers parse only numeric per-CPU interrupt counters from
/proc/interrupts and avoid hardcoded assumptions about CPU count.
Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>1 parent 5036042 commit fbc509e
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4687 | 4687 | | |
4688 | 4688 | | |
4689 | 4689 | | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
0 commit comments