Changeset 7a0359b in mainline for kernel/generic/include/adt/list.h


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/include/adt/list.h

    re3ee9b9 r7a0359b  
    3737
    3838#include <typedefs.h>
     39#include <trace.h>
    3940
    4041/** Doubly linked list head and link type. */
     
    5758 * @param link Pointer to link_t structure to be initialized.
    5859 */
    59 static inline void link_initialize(link_t *link)
     60NO_TRACE static inline void link_initialize(link_t *link)
    6061{
    6162        link->prev = NULL;
     
    6970 * @param head Pointer to link_t structure representing head of the list.
    7071 */
    71 static inline void list_initialize(link_t *head)
     72NO_TRACE static inline void list_initialize(link_t *head)
    7273{
    7374        head->prev = head;
     
    8283 * @param head Pointer to link_t structure representing head of the list.
    8384 */
    84 static inline void list_prepend(link_t *link, link_t *head)
     85NO_TRACE static inline void list_prepend(link_t *link, link_t *head)
    8586{
    8687        link->next = head->next;
     
    9798 * @param head Pointer to link_t structure representing head of the list.
    9899 */
    99 static inline void list_append(link_t *link, link_t *head)
     100NO_TRACE static inline void list_append(link_t *link, link_t *head)
    100101{
    101102        link->prev = head->prev;
     
    112113 *              contained in.
    113114 */
    114 static inline void list_remove(link_t *link)
     115NO_TRACE static inline void list_remove(link_t *link)
    115116{
    116117        link->next->prev = link->prev;
     
    125126 * @param head Pointer to link_t structure representing head of the list.
    126127 */
    127 static inline bool list_empty(link_t *head)
     128NO_TRACE static inline bool list_empty(link_t *head)
    128129{
    129130        return head->next == head ? true : false;
     
    143144 *              headless) list.
    144145 */
    145 static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)
     146NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)
    146147{
    147148        link_t *hlp;
     
    164165 *              headless list.
    165166 */
    166 static inline void headless_list_split(link_t *part1, link_t *part2)
     167NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2)
    167168{
    168169        headless_list_split_or_concat(part1, part2);
     
    176177 * @param part2 Pointer to link_t structure leading the second headless list.
    177178 */
    178 static inline void headless_list_concat(link_t *part1, link_t *part2)
     179NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2)
    179180{
    180181        headless_list_split_or_concat(part1, part2);
Note: See TracChangeset for help on using the changeset viewer.