Changeset 10e32a26 in rtems


Ignore:
Timestamp:
Jun 29, 2015, 12:23:42 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0e3c59d6
Parents:
e421936
git-author:
Sebastian Huber <sebastian.huber@…> (06/29/15 12:23:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/30/15 06:06:01)
Message:

score: Add potpourri lock statistics

These SMP lock statistics are used for all lock objects that lack a
storage space for the statistics. Examples are lock objects used in
external libraries which are independent of the actual RTEMS build
configuration.

Location:
cpukit/score
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/thread.h

    re421936 r10e32a26  
    734734#endif
    735735
     736#if defined(RTEMS_SMP) && defined(RTEMS_PROFILING)
     737  /**
     738   * @brief Potpourri lock statistics.
     739   *
     740   * These SMP lock statistics are used for all lock objects that lack a
     741   * storage space for the statistics.  Examples are lock objects used in
     742   * external libraries which are independent of the actual RTEMS build
     743   * configuration.
     744   */
     745  SMP_lock_Stats Potpourri_stats;
     746#endif
     747
    736748#ifdef __RTEMS_STRICT_ORDER_MUTEX__
    737749  /** This field is the head of queue of priority inheritance mutex
  • cpukit/score/src/threadinitialize.c

    re421936 r10e32a26  
    206206  the_thread->Lock.current = &the_thread->Lock.Default;
    207207  _ISR_lock_Initialize( &the_thread->Lock.Default, "Thread Lock Default");
     208  _SMP_lock_Stats_initialize( &the_thread->Potpourri_stats, "Thread Potpourri" );
    208209  _Atomic_Init_uint(&the_thread->Lock.generation, 0);
    209210#endif
  • cpukit/score/src/threadrestart.c

    re421936 r10e32a26  
    131131#if defined(RTEMS_SMP)
    132132  _ISR_lock_Destroy( &the_thread->Lock.Default );
     133  _SMP_lock_Stats_destroy( &the_thread->Potpourri_stats );
    133134#endif
    134135
Note: See TracChangeset for help on using the changeset viewer.