Ignore:
Timestamp:
2010-07-02T15:42:19Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bbfdf62
Parents:
e3ee9b9
Message:

improve kernel function tracing

  • add support for more generic kernel sources
  • replace attribute((no_instrument_function)) with NO_TRACE macro (shorter and for future compatibility with different compilers)
  • to be on the safe side, do not instrument most of the inline and static functions (plus some specific non-static functions)

collateral code cleanup (no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/interrupt/interrupt.c

    re3ee9b9 r7a0359b  
    5555#include <arch/cycle.h>
    5656#include <str.h>
     57#include <trace.h>
    5758
    5859exc_table_t exc_table[IVT_ITEMS];
     
    9798 *
    9899 */
    99 void exc_dispatch(unsigned int n, istate_t *istate)
     100NO_TRACE void exc_dispatch(unsigned int n, istate_t *istate)
    100101{
    101102        ASSERT(CPU);
     
    159160 *
    160161 */
    161 static void exc_undef(unsigned int n, istate_t *istate)
     162NO_TRACE static void exc_undef(unsigned int n, istate_t *istate)
    162163{
    163164        fault_if_from_uspace(istate, "Unhandled exception %u.", n);
     
    168169 *
    169170 */
    170 void fault_if_from_uspace(istate_t *istate, const char *fmt, ...)
     171NO_TRACE void fault_if_from_uspace(istate_t *istate, const char *fmt, ...)
    171172{
    172173        if (!istate_from_uspace(istate))
     
    215216 *
    216217 */
    217 static int cmd_exc_print(cmd_arg_t *argv)
     218NO_TRACE static int cmd_exc_print(cmd_arg_t *argv)
    218219{
    219220        bool excs_all;
Note: See TracChangeset for help on using the changeset viewer.