source: rtems/cpukit/score/Makefile.am @ 3e201139

4.11
Last change on this file since 3e201139 was 3e201139, checked in by Sebastian Huber <sebastian.huber@…>, on May 23, 2014 at 8:00:33 AM

score: Add Resource Handler

A resource is something that has at most one owner at a time and may
have multiple rivals in case an owner is present. The owner and rivals
are impersonated via resource nodes. A resource is represented via the
resource control structure. The resource controls and nodes are
organized as trees. It is possible to detect deadlocks via such a
resource tree. The _Resource_Iterate() function can be used to iterate
through such a resource tree starting at a top node.

  • Property mode set to 100644
File size: 14.6 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4SUBDIRS = cpu
5
6## include
7
8include_rtemsdir = $(includedir)/rtems
9
10include_rtems_HEADERS = include/rtems/debug.h
11include_rtems_HEADERS += include/rtems/system.h
12include_rtems_HEADERS += include/rtems/seterr.h
13
14include_rtems_scoredir = $(includedir)/rtems/score
15
16include_rtems_score_HEADERS = include/rtems/score/address.h
17include_rtems_score_HEADERS += include/rtems/score/apiext.h
18include_rtems_score_HEADERS += include/rtems/score/apimutex.h
19include_rtems_score_HEADERS += include/rtems/score/assert.h
20include_rtems_score_HEADERS += include/rtems/score/chain.h
21include_rtems_score_HEADERS += include/rtems/score/chainimpl.h
22include_rtems_score_HEADERS += include/rtems/score/context.h
23include_rtems_score_HEADERS += include/rtems/score/copyrt.h
24include_rtems_score_HEADERS += include/rtems/score/corebarrier.h
25include_rtems_score_HEADERS += include/rtems/score/corebarrierimpl.h
26include_rtems_score_HEADERS += include/rtems/score/coremsg.h
27include_rtems_score_HEADERS += include/rtems/score/coremsgimpl.h
28include_rtems_score_HEADERS += include/rtems/score/coremutex.h
29include_rtems_score_HEADERS += include/rtems/score/coremuteximpl.h
30include_rtems_score_HEADERS += include/rtems/score/coresem.h
31include_rtems_score_HEADERS += include/rtems/score/coresemimpl.h
32include_rtems_score_HEADERS += include/rtems/score/cpuset.h
33include_rtems_score_HEADERS += include/rtems/score/cpusetimpl.h
34include_rtems_score_HEADERS += include/rtems/score/heap.h
35include_rtems_score_HEADERS += include/rtems/score/heapimpl.h
36include_rtems_score_HEADERS += include/rtems/score/protectedheap.h
37include_rtems_score_HEADERS += include/rtems/score/interr.h
38include_rtems_score_HEADERS += include/rtems/score/isr.h
39include_rtems_score_HEADERS += include/rtems/score/isrlevel.h
40include_rtems_score_HEADERS += include/rtems/score/isrlock.h
41include_rtems_score_HEADERS += include/rtems/score/freechain.h
42include_rtems_score_HEADERS += include/rtems/score/mrsp.h
43include_rtems_score_HEADERS += include/rtems/score/mrspimpl.h
44include_rtems_score_HEADERS += include/rtems/score/object.h
45include_rtems_score_HEADERS += include/rtems/score/objectimpl.h
46include_rtems_score_HEADERS += include/rtems/score/onceimpl.h
47include_rtems_score_HEADERS += include/rtems/score/percpu.h
48include_rtems_score_HEADERS += include/rtems/score/priority.h
49include_rtems_score_HEADERS += include/rtems/score/prioritybitmap.h
50include_rtems_score_HEADERS += include/rtems/score/prioritybitmapimpl.h
51include_rtems_score_HEADERS += include/rtems/score/profiling.h
52include_rtems_score_HEADERS += include/rtems/score/rbtree.h
53include_rtems_score_HEADERS += include/rtems/score/rbtreeimpl.h
54include_rtems_score_HEADERS += include/rtems/score/resource.h
55include_rtems_score_HEADERS += include/rtems/score/resourceimpl.h
56include_rtems_score_HEADERS += include/rtems/score/scheduler.h
57include_rtems_score_HEADERS += include/rtems/score/schedulerimpl.h
58include_rtems_score_HEADERS += include/rtems/score/schedulercbs.h
59include_rtems_score_HEADERS += include/rtems/score/schedulercbsimpl.h
60include_rtems_score_HEADERS += include/rtems/score/scheduleredf.h
61include_rtems_score_HEADERS += include/rtems/score/scheduleredfimpl.h
62include_rtems_score_HEADERS += include/rtems/score/schedulerpriority.h
63include_rtems_score_HEADERS += include/rtems/score/schedulerpriorityimpl.h
64include_rtems_score_HEADERS += include/rtems/score/schedulerprioritysmp.h
65include_rtems_score_HEADERS += include/rtems/score/schedulersimple.h
66include_rtems_score_HEADERS += include/rtems/score/schedulersimpleimpl.h
67include_rtems_score_HEADERS += include/rtems/score/schedulersmp.h
68include_rtems_score_HEADERS += include/rtems/score/schedulersmpimpl.h
69include_rtems_score_HEADERS += include/rtems/score/smp.h
70include_rtems_score_HEADERS += include/rtems/score/smpbarrier.h
71include_rtems_score_HEADERS += include/rtems/score/smplock.h
72include_rtems_score_HEADERS += include/rtems/score/smpimpl.h
73include_rtems_score_HEADERS += include/rtems/score/stack.h
74include_rtems_score_HEADERS += include/rtems/score/stackimpl.h
75include_rtems_score_HEADERS += include/rtems/score/states.h
76include_rtems_score_HEADERS += include/rtems/score/statesimpl.h
77include_rtems_score_HEADERS += include/rtems/score/sysstate.h
78include_rtems_score_HEADERS += include/rtems/score/thread.h
79include_rtems_score_HEADERS += include/rtems/score/threadimpl.h
80include_rtems_score_HEADERS += include/rtems/score/threaddispatch.h
81include_rtems_score_HEADERS += include/rtems/score/threadq.h
82include_rtems_score_HEADERS += include/rtems/score/threadqimpl.h
83include_rtems_score_HEADERS += include/rtems/score/threadsync.h
84include_rtems_score_HEADERS += include/rtems/score/timespec.h
85include_rtems_score_HEADERS += include/rtems/score/timestamp.h
86include_rtems_score_HEADERS += include/rtems/score/timestamp64.h
87include_rtems_score_HEADERS += include/rtems/score/tls.h
88include_rtems_score_HEADERS += include/rtems/score/tod.h
89include_rtems_score_HEADERS += include/rtems/score/todimpl.h
90include_rtems_score_HEADERS += include/rtems/score/userext.h
91include_rtems_score_HEADERS += include/rtems/score/userextimpl.h
92include_rtems_score_HEADERS += include/rtems/score/watchdog.h
93include_rtems_score_HEADERS += include/rtems/score/watchdogimpl.h
94include_rtems_score_HEADERS += include/rtems/score/wkspace.h
95include_rtems_score_HEADERS += include/rtems/score/cpuopts.h
96include_rtems_score_HEADERS += include/rtems/score/basedefs.h
97
98if HAS_PTHREADS
99include_rtems_score_HEADERS += include/rtems/score/corespinlock.h
100include_rtems_score_HEADERS += include/rtems/score/corespinlockimpl.h
101include_rtems_score_HEADERS += include/rtems/score/corerwlock.h
102include_rtems_score_HEADERS += include/rtems/score/corerwlockimpl.h
103endif
104
105if HAS_MP
106# We only build multiprocessing related files if HAS_MP was defined
107include_rtems_score_HEADERS += include/rtems/score/mpci.h
108include_rtems_score_HEADERS += include/rtems/score/mpciimpl.h
109include_rtems_score_HEADERS += include/rtems/score/mppkt.h
110include_rtems_score_HEADERS += include/rtems/score/objectmp.h
111include_rtems_score_HEADERS += include/rtems/score/threadmp.h
112endif
113
114if HAS_SMP
115include_rtems_score_HEADERS += include/rtems/score/atomic.h
116include_rtems_score_HEADERS += include/rtems/score/cpustdatomic.h
117include_rtems_score_HEADERS += include/rtems/score/schedulerpriorityaffinitysmp.h
118include_rtems_score_HEADERS += include/rtems/score/schedulersimplesmp.h
119endif
120
121## src
122
123noinst_LIBRARIES = libscore.a
124libscore_a_SOURCES =
125libscore_a_CPPFLAGS = $(AM_CPPFLAGS)
126
127# We only build multiprocessing related files if HAS_MP was defined
128if HAS_MP
129libscore_a_SOURCES += src/mpci.c src/objectmp.c src/threadmp.c
130endif
131
132if HAS_SMP
133libscore_a_SOURCES += src/profilingsmplock.c
134libscore_a_SOURCES += src/schedulersmpvalidstatechanges.c
135libscore_a_SOURCES += src/schedulerpriorityaffinitysmp.c
136libscore_a_SOURCES += src/schedulerprioritysmp.c
137libscore_a_SOURCES += src/schedulersimplesmp.c
138libscore_a_SOURCES += src/smp.c
139libscore_a_SOURCES += src/cpuset.c
140libscore_a_SOURCES += src/cpusetprintsupport.c
141libscore_a_SOURCES += src/schedulerdefaultgetaffinity.c
142libscore_a_SOURCES += src/schedulerdefaultsetaffinity.c
143libscore_a_SOURCES += src/schedulersmpstartidle.c
144endif
145
146## CORE_APIMUTEX_C_FILES
147libscore_a_SOURCES += src/apimutex.c \
148    src/apimutexlock.c src/apimutexunlock.c
149
150## CORE_BARRIER_C_FILES
151libscore_a_SOURCES += src/corebarrier.c src/corebarrierrelease.c \
152    src/corebarrierwait.c
153
154## CORE_MESSAGE_QUEUE_C_FILES
155libscore_a_SOURCES += src/coremsg.c src/coremsgbroadcast.c \
156    src/coremsgclose.c src/coremsgflush.c src/coremsgflushwait.c \
157    src/coremsginsert.c src/coremsgflushsupp.c src/coremsgseize.c \
158    src/coremsgsubmit.c
159
160## CORE_MUTEX_C_FILES
161libscore_a_SOURCES += src/coremutex.c src/coremutexflush.c \
162    src/coremutexseize.c src/coremutexsurrender.c \
163    src/coremutexseizeintr.c
164
165## CORE_PERCPU_C_FILES
166libscore_a_SOURCES += src/percpu.c
167libscore_a_SOURCES += src/percpuasm.c
168
169## CORE_RWLOCK_C_FILES
170if HAS_PTHREADS
171libscore_a_SOURCES += src/corerwlock.c src/corerwlockobtainread.c \
172    src/corerwlockobtainwrite.c src/corerwlockrelease.c src/corerwlocktimeout.c
173endif
174
175## CORE_SEMAPHORE_C_FILES
176libscore_a_SOURCES += src/coresem.c src/coresemflush.c src/coresemseize.c \
177    src/coresemsurrender.c
178
179## CORE_SPINLOCK_C_FILES
180if HAS_PTHREADS
181libscore_a_SOURCES += src/corespinlock.c src/corespinlockrelease.c \
182    src/corespinlockwait.c
183endif
184
185## HEAP_C_FILES
186libscore_a_SOURCES += src/heap.c src/heapallocate.c src/heapextend.c \
187    src/heapfree.c src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \
188    src/heapgetfreeinfo.c src/heapresizeblock.c src/heapiterate.c \
189    src/heapgreedy.c src/heapnoextend.c
190
191## OBJECT_C_FILES
192libscore_a_SOURCES += src/objectallocate.c src/objectclose.c \
193    src/objectextendinformation.c src/objectfree.c src/objectget.c \
194    src/objectgetisr.c src/objectgetnext.c src/objectinitializeinformation.c \
195    src/objectnametoid.c src/objectnametoidstring.c \
196    src/objectshrinkinformation.c src/objectgetnoprotection.c \
197    src/objectidtoname.c src/objectgetnameasstring.c src/objectsetname.c \
198    src/objectgetinfo.c src/objectgetinfoid.c src/objectapimaximumclass.c \
199    src/objectnamespaceremove.c \
200    src/objectactivecount.c
201
202## SCHEDULER_C_FILES
203libscore_a_SOURCES += src/log2table.c
204libscore_a_SOURCES += src/scheduler.c
205libscore_a_SOURCES += src/schedulergetaffinity.c
206libscore_a_SOURCES += src/schedulersetaffinity.c
207libscore_a_SOURCES += src/schedulerdefaultallocatefree.c
208libscore_a_SOURCES += src/schedulerdefaultreleasejob.c
209libscore_a_SOURCES += src/schedulerdefaultschedule.c
210libscore_a_SOURCES += src/schedulerdefaultstartidle.c
211libscore_a_SOURCES += src/schedulerdefaulttick.c
212libscore_a_SOURCES += src/schedulerdefaultupdate.c
213
214## SCHEDULERPRIORITY_C_FILES
215libscore_a_SOURCES += src/schedulerpriority.c \
216    src/schedulerpriorityblock.c \
217    src/schedulerprioritychangepriority.c \
218    src/schedulerpriorityprioritycompare.c \
219    src/schedulerpriorityschedule.c \
220    src/schedulerpriorityunblock.c \
221    src/schedulerpriorityupdate.c \
222    src/schedulerpriorityyield.c
223
224## SCHEDULERSIMPLE_C_FILES
225libscore_a_SOURCES += src/schedulersimple.c \
226    src/schedulersimpleblock.c \
227    src/schedulersimplechangepriority.c \
228    src/schedulersimpleschedule.c \
229    src/schedulersimpleunblock.c \
230    src/schedulersimpleyield.c
231
232## SCHEDULEREDF_C_FILES
233libscore_a_SOURCES += src/scheduleredf.c \
234    src/scheduleredfallocate.c \
235    src/scheduleredfblock.c \
236    src/scheduleredfchangepriority.c \
237    src/scheduleredfprioritycompare.c \
238    src/scheduleredfreleasejob.c \
239    src/scheduleredfschedule.c \
240    src/scheduleredfunblock.c \
241    src/scheduleredfupdate.c \
242    src/scheduleredfyield.c
243
244## SCHEDULERCBS_C_FILES
245libscore_a_SOURCES += src/schedulercbs.c \
246    src/schedulercbsallocate.c \
247    src/schedulercbsattachthread.c \
248    src/schedulercbscleanup.c \
249    src/schedulercbscreateserver.c \
250    src/schedulercbsdestroyserver.c \
251    src/schedulercbsdetachthread.c \
252    src/schedulercbsgetapprovedbudget.c \
253    src/schedulercbsgetexecutiontime.c \
254    src/schedulercbsgetparameters.c \
255    src/schedulercbsgetremainingbudget.c \
256    src/schedulercbsgetserverid.c \
257    src/schedulercbssetparameters.c \
258    src/schedulercbsreleasejob.c \
259    src/schedulercbsunblock.c
260
261## PROTECTED_HEAP_C_FILES
262libscore_a_SOURCES += src/pheapallocate.c \
263    src/pheapextend.c src/pheapfree.c src/pheapgetsize.c \
264    src/pheapgetblocksize.c src/pheapgetfreeinfo.c src/pheapgetinfo.c \
265    src/pheapinit.c src/pheapresizeblock.c src/pheapwalk.c src/pheapiterate.c
266
267## FREECHAIN_C_FILES
268libscore_a_SOURCES += src/freechain.c
269
270## RBTREE_C_FILES
271libscore_a_SOURCES += src/rbtree.c \
272    src/rbtreeextract.c src/rbtreefind.c \
273    src/rbtreeinsert.c src/rbtreeiterate.c src/rbtreenext.c
274
275## THREAD_C_FILES
276libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
277    src/threadclearstate.c src/threadcreateidle.c \
278    src/threaddelayended.c src/threaddispatch.c \
279    src/threadenabledispatch.c src/threaddisabledispatch.c \
280    src/threadget.c src/threadhandler.c src/threadinitialize.c \
281    src/threadloadenv.c src/threadready.c \
282    src/threadrestart.c src/threadsetpriority.c \
283    src/threadsetstate.c \
284    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
285    src/threadstartmultitasking.c src/iterateoverthreads.c \
286    src/threadblockingoperationcancel.c
287
288if HAS_SMP
289libscore_a_SOURCES += src/smpbarrierwait.c
290libscore_a_SOURCES += src/threaddispatchdisablelevel.c
291endif
292
293## THREADQ_C_FILES
294libscore_a_SOURCES += src/threadq.c src/threadqdequeue.c \
295    src/threadqdequeuefifo.c src/threadqdequeuepriority.c \
296    src/threadqenqueue.c src/threadqenqueuefifo.c \
297    src/threadqenqueuepriority.c src/threadqextract.c \
298    src/threadqextractfifo.c src/threadqextractpriority.c \
299    src/threadqextractwithproxy.c src/threadqfirst.c src/threadqfirstfifo.c \
300    src/threadqfirstpriority.c src/threadqflush.c \
301    src/threadqprocesstimeout.c src/threadqtimeout.c
302
303## TIMESPEC_C_FILES
304libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \
305    src/timespecisvalid.c src/timespeclessthan.c \
306    src/timespecsubtract.c src/timespectoticks.c src/timespecdivide.c \
307    src/timespecdividebyinteger.c src/timespecgetasnanoseconds.c
308
309## TIMESTAMP_INT64_C_FILES
310libscore_a_SOURCES += src/ts64addto.c src/ts64dividebyinteger.c \
311    src/ts64divide.c src/ts64equalto.c \
312    src/ts64getnanoseconds.c src/ts64getseconds.c \
313    src/ts64lessthan.c \
314    src/ts64set.c src/ts64settozero.c src/ts64subtract.c \
315    src/ts64toticks.c src/ts64totimespec.c src/ts64totimeval.c
316
317## TOD_C_FILES
318libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \
319    src/coretodgetuptimetimespec.c src/coretodtickle.c \
320    src/coretodsecondssinceepoch.c \
321    src/coretodtickspersec.c
322
323## WATCHDOG_C_FILES
324libscore_a_SOURCES += src/watchdog.c src/watchdogadjust.c \
325    src/watchdogadjusttochain.c src/watchdoginsert.c src/watchdogremove.c \
326    src/watchdogtickle.c
327
328## USEREXT_C_FILES
329libscore_a_SOURCES += src/userextaddset.c \
330    src/userext.c src/userextremoveset.c src/userextiterate.c
331
332## STD_C_FILES
333libscore_a_SOURCES += src/apiext.c src/chain.c src/chainappend.c \
334    src/chainextract.c src/chainget.c src/chaininsert.c \
335    src/chainappendempty.c src/chainprependempty.c src/chaingetempty.c \
336    src/chainnodecount.c \
337    src/debugisthreaddispatchingallowed.c \
338    src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
339libscore_a_SOURCES += src/debugisownerofallocator.c
340libscore_a_SOURCES += src/profilingisrentryexit.c
341libscore_a_SOURCES += src/once.c
342libscore_a_SOURCES += src/resourceiterate.c
343
344EXTRA_DIST = src/Unlimited.txt
345
346DISTCLEANFILES = include/rtems/score/cpuopts.h
347
348include $(srcdir)/preinstall.am
349include $(top_srcdir)/automake/subdirs.am
350include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.