Changeset 7a0359b in mainline for kernel/arch/amd64/include/mm


Ignore:
Timestamp:
2010-07-02T15:42:19Z (16 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)

Location:
kernel/arch/amd64/include/mm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/mm/frame.h

    re3ee9b9 r7a0359b  
    3636#define KERN_amd64_FRAME_H_
    3737
    38 #ifndef __ASM__
    39 #include <typedefs.h>
    40 #endif /* __ASM__ */
    41 
    4238#define FRAME_WIDTH  12  /* 4K */
    4339#define FRAME_SIZE   (1 << FRAME_WIDTH)
    4440
     41#ifdef KERNEL
    4542#ifndef __ASM__
     43
     44#include <typedefs.h>
     45
    4646extern uintptr_t last_frame;
    4747extern void frame_arch_init(void);
    4848extern void physmem_print(void);
     49
    4950#endif /* __ASM__ */
     51#endif /* KERNEL */
    5052
    5153#endif
  • kernel/arch/amd64/include/mm/page.h

    re3ee9b9 r7a0359b  
    4646
    4747#include <arch/mm/frame.h>
     48#include <trace.h>
    4849
    4950#define PAGE_WIDTH  FRAME_WIDTH
     
    187188} __attribute__ ((packed)) pte_t;
    188189
    189 static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
     190NO_TRACE static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
    190191{
    191192        pte_t *p = &pt[i];
     
    200201}
    201202
    202 static inline void set_pt_addr(pte_t *pt, size_t i, uintptr_t a)
     203NO_TRACE static inline void set_pt_addr(pte_t *pt, size_t i, uintptr_t a)
    203204{
    204205        pte_t *p = &pt[i];
     
    208209}
    209210
    210 static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
     211NO_TRACE static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
    211212{
    212213        pte_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.