summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-29 14:23:42 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-07-30 08:06:01 +0200
commit10e32a26342573566b83d5bee64970077d679ed5 (patch)
tree37b4520d1ee9c09bc3b682130ed0d0c316caeb4a /cpukit/score/include/rtems/score/thread.h
parentscore: Provide struct _Thread_queue_Heads (diff)
downloadrtems-10e32a26342573566b83d5bee64970077d679ed5.tar.bz2
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.
Diffstat (limited to 'cpukit/score/include/rtems/score/thread.h')
-rw-r--r--cpukit/score/include/rtems/score/thread.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 157acfa324..ac908e2b82 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -733,6 +733,18 @@ struct _Thread_Control {
Thread_Lock_control Lock;
#endif
+#if defined(RTEMS_SMP) && defined(RTEMS_PROFILING)
+ /**
+ * @brief 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.
+ */
+ SMP_lock_Stats Potpourri_stats;
+#endif
+
#ifdef __RTEMS_STRICT_ORDER_MUTEX__
/** This field is the head of queue of priority inheritance mutex
* held by the thread.