Changeset 9dae191e in mainline for kernel/generic/src/main/main.c


Ignore:
Timestamp:
2010-04-18T00:24:40Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a80687e5
Parents:
d8e3467
Message:

sysinfo API cleanup

  • better support for generated subtrees
  • synchronization
  • memory management (generated items cleanup)
  • simplier sysinfo_dump()

remove separate statistical syscalls, replace with virtual sysinfo items (some functionality is still missing)

  • naming consolidation
  • cleaner API
  • proper synchronization

minor renames

  • zone_print_list() → zones_print_list()
  • zone_busy_and_free() → zones_stats()
File:
1 edited

Legend:

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

    rd8e3467 r9dae191e  
    8585#include <ipc/event.h>
    8686#include <sysinfo/sysinfo.h>
     87#include <sysinfo/stats.h>
    8788
    8889/** Global configuration structure. */
     
    225226       
    226227        printf("Detected %" PRIs " CPU(s), %" PRIu64" MiB free memory\n",
    227             config.cpu_count, SIZE2MB(zone_total_size()));
     228            config.cpu_count, SIZE2MB(zones_total_size()));
    228229
    229230        LOG_EXEC(cpu_init());
     
    249250        LOG_EXEC(event_init());
    250251        LOG_EXEC(klog_init());
     252        LOG_EXEC(stats_init());
    251253       
    252254        /*
Note: See TracChangeset for help on using the changeset viewer.