Changeset b3b7e14 in mainline for kernel/generic/src/sysinfo/stats.c


Ignore:
Timestamp:
2010-06-11T15:31:03Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
214ec25c
Parents:
be06914
Message:

distinguish between "hot" and "cold" exceptions
display only "hot" exceptions by default
add top to help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/sysinfo/stats.c

    rbe06914 rb3b7e14  
    562562        }
    563563       
     564#if (IVT_ITEMS > 0)
    564565        /* Messing with exception table, avoid deadlock */
    565566        irq_spinlock_lock(&exctbl_lock, true);
     
    569570                stats_exceptions[i].id = i + IVT_FIRST;
    570571                str_cpy(stats_exceptions[i].desc, EXC_NAME_BUFLEN, exc_table[i].name);
     572                stats_exceptions[i].hot = exc_table[i].hot;
    571573                stats_exceptions[i].cycles = exc_table[i].cycles;
    572574                stats_exceptions[i].count = exc_table[i].count;
     
    574576       
    575577        irq_spinlock_unlock(&exctbl_lock, true);
     578#endif
    576579       
    577580        return ((void *) stats_exceptions);
     
    606609                return ret;
    607610       
    608 #if IVT_FIRST > 0
     611#if (IVT_FIRST > 0)
    609612        if (excn < IVT_FIRST)
    610613                return ret;
    611614#endif
    612615       
     616#if (IVT_ITEMS + IVT_FIRST == 0)
     617        return ret;
     618#else
    613619        if (excn >= IVT_ITEMS + IVT_FIRST)
    614620                return ret;
     621#endif
    615622       
    616623        if (dry_run) {
     
    638645                stats_exception->id = excn;
    639646                str_cpy(stats_exception->desc, EXC_NAME_BUFLEN, exc_table[excn].name);
     647                stats_exception->hot = exc_table[excn].hot;
    640648                stats_exception->cycles = exc_table[excn].cycles;
    641649                stats_exception->count = exc_table[excn].count;
Note: See TracChangeset for help on using the changeset viewer.