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/sparc64/include/mm/sun4v/tlb.h

    re3ee9b9 r7a0359b  
    4343
    4444#include <arch/mm/tte.h>
    45 #include <print.h>
     45#include <trace.h>
    4646#include <arch/mm/mmu.h>
    4747#include <arch/mm/page.h>
     
    8888 * @return      Current value of Primary Context Register.
    8989 */
    90 static inline uint64_t mmu_primary_context_read(void)
     90NO_TRACE static inline uint64_t mmu_primary_context_read(void)
    9191{
    9292        return asi_u64_read(ASI_PRIMARY_CONTEXT_REG, VA_PRIMARY_CONTEXT_REG);
    9393}
    94  
     94
    9595/** Write MMU Primary Context Register.
    9696 *
    9797 * @param v     New value of Primary Context Register.
    9898 */
    99 static inline void mmu_primary_context_write(uint64_t v)
     99NO_TRACE static inline void mmu_primary_context_write(uint64_t v)
    100100{
    101101        asi_u64_write(ASI_PRIMARY_CONTEXT_REG, VA_PRIMARY_CONTEXT_REG, v);
    102102}
    103  
     103
    104104/** Read MMU Secondary Context Register.
    105105 *
    106106 * @return      Current value of Secondary Context Register.
    107107 */
    108 static inline uint64_t mmu_secondary_context_read(void)
     108NO_TRACE static inline uint64_t mmu_secondary_context_read(void)
    109109{
    110110        return asi_u64_read(ASI_SECONDARY_CONTEXT_REG, VA_SECONDARY_CONTEXT_REG);
    111111}
    112  
     112
    113113/** Write MMU Secondary Context Register.
    114114 *
    115115 * @param v     New value of Secondary Context Register.
    116116 */
    117 static inline void mmu_secondary_context_write(uint64_t v)
     117NO_TRACE static inline void mmu_secondary_context_write(uint64_t v)
    118118{
    119119        asi_u64_write(ASI_SECONDARY_CONTEXT_REG, VA_SECONDARY_CONTEXT_REG, v);
     
    126126 * @param mmu_flag      MMU_FLAG_DTLB, MMU_FLAG_ITLB or a combination of both
    127127 */
    128 static inline void mmu_demap_ctx(int context, int mmu_flag) {
     128NO_TRACE static inline void mmu_demap_ctx(int context, int mmu_flag) {
    129129        __hypercall_fast4(MMU_DEMAP_CTX, 0, 0, context, mmu_flag);
    130130}
     
    137137 * @param mmu_flag      MMU_FLAG_DTLB, MMU_FLAG_ITLB or a combination of both
    138138 */
    139 static inline void mmu_demap_page(uintptr_t vaddr, int context, int mmu_flag) {
     139NO_TRACE static inline void mmu_demap_page(uintptr_t vaddr, int context, int mmu_flag) {
    140140        __hypercall_fast5(MMU_DEMAP_PAGE, 0, 0, vaddr, context, mmu_flag);
    141141}
Note: See TracChangeset for help on using the changeset viewer.