source: rtems/cpukit/score/Makefile.am @ b72e847b

4.8
Last change on this file since b72e847b was c3330a8, checked in by Joel Sherrill <joel.sherrill@…>, on May 17, 2007 at 10:46:45 PM

2007-05-17 Joel Sherrill <joel.sherrill@…>

  • ChangeLog?, configure.ac, libcsupport/src/times.c, libmisc/cpuuse/cpuuse.c, libmisc/stackchk/check.c, rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c, rtems/src/ratemontimeout.c, score/Makefile.am, score/include/rtems/score/thread.h, score/include/rtems/score/timespec.h, score/src/threaddispatch.c, score/src/threadinitialize.c, score/src/threadtickletimeslice.c, score/src/timespecdivide.c: Add nanoseconds granularity to the rate monotonic period statistics and CPU usage statistics. This capability is enabled by default although may be conditionally disabled by the user. It could be too much overhead on small targets but it does not appear to be bad in early testing. Its impact on code size has not been evaluated either. It is possible that both forms of statistics gathering could be disabled with further tweaking of the conditional compilation.
  • score/src/timespecdividebyinteger.c: New file.
  • Property mode set to 100644
File size: 7.2 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8SUBDIRS = cpu
9
10## include
11
12include_rtemsdir = $(includedir)/rtems
13
14include_rtems_HEADERS = include/rtems/debug.h include/rtems/system.h \
15    include/rtems/seterr.h
16
17include_rtems_scoredir = $(includedir)/rtems/score
18
19include_rtems_score_HEADERS = include/rtems/score/address.h \
20    include/rtems/score/apiext.h include/rtems/score/apimutex.h \
21    include/rtems/score/bitfield.h include/rtems/score/chain.h \
22    include/rtems/score/context.h include/rtems/score/copyrt.h \
23    include/rtems/score/corebarrier.h include/rtems/score/coremsg.h \
24    include/rtems/score/coremutex.h include/rtems/score/corerwlock.h \
25    include/rtems/score/coresem.h include/rtems/score/corespinlock.h \
26    include/rtems/score/heap.h include/rtems/score/protectedheap.h \
27    include/rtems/score/interr.h include/rtems/score/isr.h \
28    include/rtems/score/object.h include/rtems/score/priority.h \
29    include/rtems/score/stack.h include/rtems/score/states.h \
30    include/rtems/score/sysstate.h include/rtems/score/thread.h \
31    include/rtems/score/threadq.h include/rtems/score/timespec.h \
32    include/rtems/score/tod.h include/rtems/score/tqdata.h \
33    include/rtems/score/userext.h include/rtems/score/watchdog.h \
34    include/rtems/score/wkspace.h include/rtems/score/cpuopts.h
35
36if HAS_MP
37# We only build multiprocessing related files if HAS_MP was defined
38include_rtems_score_HEADERS += include/rtems/score/mpci.h \
39    include/rtems/score/mppkt.h include/rtems/score/objectmp.h \
40    include/rtems/score/threadmp.h
41endif
42
43## inline
44include_rtems_score_HEADERS += inline/rtems/score/address.inl \
45    inline/rtems/score/chain.inl inline/rtems/score/corebarrier.inl \
46    inline/rtems/score/coremsg.inl inline/rtems/score/corerwlock.inl \
47    inline/rtems/score/corespinlock.inl \
48    inline/rtems/score/coremutex.inl inline/rtems/score/coresem.inl \
49    inline/rtems/score/heap.inl inline/rtems/score/isr.inl \
50    inline/rtems/score/object.inl inline/rtems/score/priority.inl \
51    inline/rtems/score/stack.inl inline/rtems/score/states.inl \
52    inline/rtems/score/sysstate.inl inline/rtems/score/thread.inl \
53    inline/rtems/score/threadq.inl inline/rtems/score/tod.inl \
54    inline/rtems/score/tqdata.inl \
55    inline/rtems/score/watchdog.inl inline/rtems/score/wkspace.inl
56
57if HAS_MP
58## We only build multiprocessing related files if HAS_MP was defined
59include_rtems_score_HEADERS += inline/rtems/score/mppkt.inl \
60    inline/rtems/score/objectmp.inl inline/rtems/score/threadmp.inl
61endif
62
63## src
64
65AM_CPPFLAGS += -D__RTEMS_INSIDE__
66
67noinst_LIBRARIES = libscore.a
68libscore_a_SOURCES =
69libscore_a_CPPFLAGS = $(AM_CPPFLAGS)
70
71# We only build multiprocessing related files if HAS_MP was defined
72if HAS_MP
73libscore_a_SOURCES += src/mpci.c src/objectmp.c src/threadmp.c
74endif
75
76## CORE_BARRIER_C_FILES
77libscore_a_SOURCES += src/corebarrier.c src/corebarrierrelease.c \
78    src/corebarrierwait.c
79
80## CORE_MESSAGE_QUEUE_C_FILES
81libscore_a_SOURCES += src/coremsg.c src/coremsgbroadcast.c \
82    src/coremsgclose.c src/coremsgflush.c src/coremsgflushwait.c \
83    src/coremsginsert.c src/coremsgflushsupp.c src/coremsgseize.c \
84    src/coremsgsubmit.c
85
86## CORE_MUTEX_C_FILES
87libscore_a_SOURCES += src/coremutex.c src/coremutexflush.c \
88    src/coremutexseize.c src/coremutexsurrender.c
89
90## CORE_RWLOCK_C_FILES
91libscore_a_SOURCES += src/corerwlock.c src/corerwlockobtainread.c \
92    src/corerwlockobtainwrite.c src/corerwlockrelease.c src/corerwlocktimeout.c
93
94## CORE_SEMAPHORE_C_FILES
95libscore_a_SOURCES += src/coresem.c src/coresemflush.c src/coresemseize.c \
96    src/coresemsurrender.c
97
98## CORE_SPINLOCK_C_FILES
99libscore_a_SOURCES += src/corespinlock.c src/corespinlockrelease.c \
100    src/corespinlockwait.c
101
102## HEAP_C_FILES
103libscore_a_SOURCES += src/heap.c src/heapallocate.c src/heapextend.c \
104    src/heapfree.c src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \
105    src/heapgetfreeinfo.c src/heapallocatealigned.c \
106    src/heapresizeblock.c
107
108## OBJECT_C_FILES
109libscore_a_SOURCES += src/object.c src/objectallocate.c \
110    src/objectallocatebyindex.c src/objectclearname.c \
111    src/objectcomparenameraw.c src/objectcomparenamestring.c \
112    src/objectcopynameraw.c src/objectcopynamestring.c \
113    src/objectextendinformation.c src/objectfree.c src/objectget.c \
114    src/objectgetisr.c src/objectgetbyindex.c src/objectgetnext.c \
115    src/objectinitializeinformation.c src/objectnametoid.c \
116    src/objectshrinkinformation.c src/objectgetnoprotection.c \
117    src/objectidtoname.c src/objectgetnameasstring.c
118
119## PROTECTED_HEAP_C_FILES
120libscore_a_SOURCES += src/pheapallocatealigned.c src/pheapallocate.c \
121    src/pheapextend.c src/pheapfree.c src/pheapgetblocksize.c \
122    src/pheapgetfreeinfo.c src/pheapgetinfo.c src/pheapinit.c \
123    src/pheapresizeblock.c src/pheapwalk.c
124
125## THREAD_C_FILES
126libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
127    src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
128    src/threaddelayended.c src/threaddispatch.c src/threadevaluatemode.c \
129    src/threadhandler.c src/threadidlebody.c \
130    src/threadinitialize.c src/threadloadenv.c src/threadready.c \
131    src/threadresettimeslice.c src/threadreset.c src/threadrestart.c \
132    src/threadresume.c src/threadrotatequeue.c src/threadsetpriority.c \
133    src/threadsetstate.c src/threadsettransient.c src/threadstackallocate.c \
134    src/threadstackfree.c src/threadstart.c src/threadstartmultitasking.c \
135    src/threadsuspend.c src/threadtickletimeslice.c \
136    src/threadyieldprocessor.c src/iterateoverthreads.c
137
138## THREADQ_C_FILES
139libscore_a_SOURCES += src/threadq.c src/threadqdequeue.c \
140    src/threadqdequeuefifo.c src/threadqdequeuepriority.c \
141    src/threadqenqueue.c src/threadqenqueuefifo.c \
142    src/threadqenqueuepriority.c src/threadqextract.c \
143    src/threadqextractfifo.c src/threadqextractpriority.c \
144    src/threadqextractwithproxy.c src/threadqfirst.c src/threadqfirstfifo.c \
145    src/threadqfirstpriority.c src/threadqflush.c src/threadqrequeue.c \
146    src/threadqtimeout.c
147
148## TIMESPEC_C_FILES
149libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \
150    src/timespecisvalid.c src/timespeclessthan.c src/timespecgreaterthan.c \
151    src/timespecsubtract.c src/timespectoticks.c src/timespecdivide.c \
152    src/timespecdividebyinteger.c
153
154## TOD_C_FILES
155libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \
156    src/coretodgetuptime.c src/coretodtickle.c
157
158## WATCHDOG_C_FILES
159libscore_a_SOURCES += src/watchdog.c src/watchdogadjust.c \
160    src/watchdoginsert.c src/watchdogremove.c src/watchdogtickle.c
161
162## USEREXT_C_FILES
163libscore_a_SOURCES += src/userextaddapiset.c src/userextaddset.c \
164    src/userext.c src/userextremoveset.c src/userextthreadbegin.c \
165    src/userextthreadcreate.c src/userextthreaddelete.c \
166    src/userextthreadrestart.c src/userextthreadstart.c \
167    src/userextthreadswitch.c
168
169## STD_C_FILES
170libscore_a_SOURCES += src/apiext.c src/chain.c src/chainappend.c \
171    src/chainextract.c src/chainget.c src/chaininsert.c \
172    src/interr.c src/isr.c src/wkspace.c
173
174EXTRA_DIST = src/Unlimited.txt
175
176DISTCLEANFILES = include/rtems/score/cpuopts.h
177
178include $(srcdir)/preinstall.am
179include $(top_srcdir)/automake/subdirs.am
180include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.