Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2010-07-02T15:42:19Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
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/arch/ppc32/include/exception.h

    re3ee9b9 r7a0359b  
    3838#include <typedefs.h>
    3939#include <arch/cpu.h>
     40#include <trace.h>
    4041
    4142typedef struct istate {
     
    8182} istate_t;
    8283
    83 static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr)
     84NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
     85    uintptr_t retaddr)
    8486{
    8587        istate->pc = retaddr;
     
    9193 *
    9294 */
    93 static inline int istate_from_uspace(istate_t *istate)
     95NO_TRACE static inline int istate_from_uspace(istate_t *istate)
    9496{
    9597        return (istate->srr1 & MSR_PR) != 0;
    9698}
    9799
    98 static inline unative_t istate_get_pc(istate_t *istate)
     100NO_TRACE static inline unative_t istate_get_pc(istate_t *istate)
    99101{
    100102        return istate->pc;
    101103}
    102104
    103 static inline unative_t istate_get_fp(istate_t *istate)
     105NO_TRACE static inline unative_t istate_get_fp(istate_t *istate)
    104106{
    105107        return istate->sp;
Note: See TracChangeset for help on using the changeset viewer.