Changeset 7a0359b in mainline for kernel/generic/src/sysinfo/sysinfo.c


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

File:
1 edited

Legend:

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

    re3ee9b9 r7a0359b  
    5858 *
    5959 */
    60 static int sysinfo_item_constructor(void *obj, unsigned int kmflag)
     60NO_TRACE static int sysinfo_item_constructor(void *obj, unsigned int kmflag)
    6161{
    6262        sysinfo_item_t *item = (sysinfo_item_t *) obj;
     
    7878 *
    7979 */
    80 static size_t sysinfo_item_destructor(void *obj)
     80NO_TRACE static size_t sysinfo_item_destructor(void *obj)
    8181{
    8282        sysinfo_item_t *item = (sysinfo_item_t *) obj;
     
    120120 *
    121121 */
    122 static sysinfo_item_t *sysinfo_find_item(const char *name,
     122NO_TRACE static sysinfo_item_t *sysinfo_find_item(const char *name,
    123123    sysinfo_item_t *subtree, sysinfo_return_t **ret, bool dry_run)
    124124{
     
    180180 *
    181181 */
    182 static sysinfo_item_t *sysinfo_create_path(const char *name,
     182NO_TRACE static sysinfo_item_t *sysinfo_create_path(const char *name,
    183183    sysinfo_item_t **psubtree)
    184184{
     
    458458 *
    459459 */
    460 static void sysinfo_indent(unsigned int depth)
     460NO_TRACE static void sysinfo_indent(unsigned int depth)
    461461{
    462462        unsigned int i;
     
    473473 *
    474474 */
    475 static void sysinfo_dump_internal(sysinfo_item_t *root, unsigned int depth)
     475NO_TRACE static void sysinfo_dump_internal(sysinfo_item_t *root, unsigned int depth)
    476476{
    477477        sysinfo_item_t *cur = root;
     
    567567 *
    568568 */
    569 static sysinfo_return_t sysinfo_get_item(const char *name,
     569NO_TRACE static sysinfo_return_t sysinfo_get_item(const char *name,
    570570    sysinfo_item_t **root, bool dry_run)
    571571{
     
    622622 *
    623623 */
    624 static sysinfo_return_t sysinfo_get_item_uspace(void *ptr, size_t size,
     624NO_TRACE static sysinfo_return_t sysinfo_get_item_uspace(void *ptr, size_t size,
    625625    bool dry_run)
    626626{
Note: See TracChangeset for help on using the changeset viewer.