Changeset b3b7e14 in mainline for kernel/generic/src/sysinfo/stats.c
- Timestamp:
- 2010-06-11T15:31:03Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 214ec25c
- Parents:
- be06914
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/stats.c
rbe06914 rb3b7e14 562 562 } 563 563 564 #if (IVT_ITEMS > 0) 564 565 /* Messing with exception table, avoid deadlock */ 565 566 irq_spinlock_lock(&exctbl_lock, true); … … 569 570 stats_exceptions[i].id = i + IVT_FIRST; 570 571 str_cpy(stats_exceptions[i].desc, EXC_NAME_BUFLEN, exc_table[i].name); 572 stats_exceptions[i].hot = exc_table[i].hot; 571 573 stats_exceptions[i].cycles = exc_table[i].cycles; 572 574 stats_exceptions[i].count = exc_table[i].count; … … 574 576 575 577 irq_spinlock_unlock(&exctbl_lock, true); 578 #endif 576 579 577 580 return ((void *) stats_exceptions); … … 606 609 return ret; 607 610 608 #if IVT_FIRST > 0611 #if (IVT_FIRST > 0) 609 612 if (excn < IVT_FIRST) 610 613 return ret; 611 614 #endif 612 615 616 #if (IVT_ITEMS + IVT_FIRST == 0) 617 return ret; 618 #else 613 619 if (excn >= IVT_ITEMS + IVT_FIRST) 614 620 return ret; 621 #endif 615 622 616 623 if (dry_run) { … … 638 645 stats_exception->id = excn; 639 646 str_cpy(stats_exception->desc, EXC_NAME_BUFLEN, exc_table[excn].name); 647 stats_exception->hot = exc_table[excn].hot; 640 648 stats_exception->cycles = exc_table[excn].cycles; 641 649 stats_exception->count = exc_table[excn].count;
Note:
See TracChangeset
for help on using the changeset viewer.