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

Changeset 97bdb4a in mainline


Ignore:
Timestamp:
2010-07-06T23:21:36Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
22c3444
Parents:
04e3d9f
Message:

avoid tracing of several memory-related functions which are called from tight loops
make the reporting of overlaping zones more informative

Location:
kernel/generic/src/mm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    r04e3d9f r97bdb4a  
    987987 *
    988988 */
    989 bool as_area_check_access(as_area_t *area, pf_access_t access)
     989NO_TRACE bool as_area_check_access(as_area_t *area, pf_access_t access)
    990990{
    991991        int flagmap[] = {
     
    13851385}
    13861386
    1387 
    1388 
    13891387/** Compute flags for virtual address translation subsytem.
    13901388 *
     
    13941392 *
    13951393 */
    1396 unsigned int as_area_get_flags(as_area_t *area)
     1394NO_TRACE unsigned int as_area_get_flags(as_area_t *area)
    13971395{
    13981396        ASSERT(mutex_locked(&area->lock));
     
    14121410 *
    14131411 */
    1414 pte_t *page_table_create(unsigned int flags)
     1412NO_TRACE pte_t *page_table_create(unsigned int flags)
    14151413{
    14161414        ASSERT(as_operations);
     
    14271425 *
    14281426 */
    1429 void page_table_destroy(pte_t *page_table)
     1427NO_TRACE void page_table_destroy(pte_t *page_table)
    14301428{
    14311429        ASSERT(as_operations);
     
    14481446 *
    14491447 */
    1450 void page_table_lock(as_t *as, bool lock)
     1448NO_TRACE void page_table_lock(as_t *as, bool lock)
    14511449{
    14521450        ASSERT(as_operations);
     
    14621460 *
    14631461 */
    1464 void page_table_unlock(as_t *as, bool unlock)
     1462NO_TRACE void page_table_unlock(as_t *as, bool unlock)
    14651463{
    14661464        ASSERT(as_operations);
     
    14771475 *         are locked, otherwise false.
    14781476 */
    1479 bool page_table_locked(as_t *as)
     1477NO_TRACE bool page_table_locked(as_t *as)
    14801478{
    14811479        ASSERT(as_operations);
  • kernel/generic/src/mm/frame.c

    r04e3d9f r97bdb4a  
    133133                if (overlaps(base, count,
    134134                    zones.info[i].base, zones.info[i].count)) {
    135                         printf("Zones overlap!\n");
     135                        printf("Zone (%p, %p) overlaps with zone (%p, %p)!\n",
     136                            PFN2ADDR(base), PFN2ADDR(base + count),
     137                            PFN2ADDR(zones.info[i].base),
     138                            PFN2ADDR(zones.info[i].base + zones.info[i].count));
    136139                        return (size_t) -1;
    137140                }
     
    185188 *
    186189 */
    187 size_t find_zone(pfn_t frame, size_t count, size_t hint)
     190NO_TRACE size_t find_zone(pfn_t frame, size_t count, size_t hint)
    188191{
    189192        if (hint >= zones.count)
     
    11151118 *
    11161119 */
    1117 void frame_reference_add(pfn_t pfn)
     1120NO_TRACE void frame_reference_add(pfn_t pfn)
    11181121{
    11191122        irq_spinlock_lock(&zones.lock, true);
     
    11341137 *
    11351138 */
    1136 void frame_mark_unavailable(pfn_t start, size_t count)
     1139NO_TRACE void frame_mark_unavailable(pfn_t start, size_t count)
    11371140{
    11381141        irq_spinlock_lock(&zones.lock, true);
  • kernel/generic/src/mm/page.c

    r04e3d9f r97bdb4a  
    115115 *
    116116 */
    117 void page_mapping_insert(as_t *as, uintptr_t page, uintptr_t frame,
     117NO_TRACE void page_mapping_insert(as_t *as, uintptr_t page, uintptr_t frame,
    118118    unsigned int flags)
    119119{
     
    139139 *
    140140 */
    141 void page_mapping_remove(as_t *as, uintptr_t page)
     141NO_TRACE void page_mapping_remove(as_t *as, uintptr_t page)
    142142{
    143143        ASSERT(page_table_locked(as));
     
    163163 *
    164164 */
    165 pte_t *page_mapping_find(as_t *as, uintptr_t page)
     165NO_TRACE pte_t *page_mapping_find(as_t *as, uintptr_t page)
    166166{
    167167        ASSERT(page_table_locked(as));
Note: See TracChangeset for help on using the changeset viewer.