diff options
author | hermanjl <hermanjl@flare.cs.unc.edu> | 2012-05-03 11:01:06 -0400 |
---|---|---|
committer | hermanjl <hermanjl@flare.cs.unc.edu> | 2012-05-03 11:01:06 -0400 |
commit | c9907525881feba86bbdcd14ee641d1350219780 (patch) | |
tree | f0647a677d5605f1c54fee15f499d00afd479a1f | |
parent | 12c275394c0b2fa978a5128d4b6dc7b1eb17a2bb (diff) |
Reactivated syscallswip-color-terrible
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | bin/colortest.c | 1 | ||||
-rw-r--r-- | src/litmus.c | 4 | ||||
-rw-r--r-- | src/syscalls.c | 2 |
4 files changed, 4 insertions, 14 deletions
@@ -70,9 +70,8 @@ AR := ${CROSS_COMPILE}${AR} | |||
70 | # Targets | 70 | # Targets |
71 | 71 | ||
72 | all = lib ${rt-apps} | 72 | all = lib ${rt-apps} |
73 | #rt-apps = cycles base_task rt_launch rtspin release_ts measure_syscall \ | 73 | rt-apps = cycles base_task rt_launch rtspin release_ts measure_syscall \ |
74 | # base_mt_task runtests colortest colorbench testcounters | 74 | base_mt_task runtests colortest colorbench testcounters singlepage |
75 | rt-apps = colortest colorbench testcounters singlepage | ||
76 | 75 | ||
77 | .PHONY: all lib clean dump-config TAGS tags cscope help | 76 | .PHONY: all lib clean dump-config TAGS tags cscope help |
78 | 77 | ||
@@ -234,7 +233,7 @@ lib-testcounters = | |||
234 | 233 | ||
235 | .SECONDEXPANSION: | 234 | .SECONDEXPANSION: |
236 | ${rt-apps}: $${obj-$$@} liblitmus.a | 235 | ${rt-apps}: $${obj-$$@} liblitmus.a |
237 | $(CC) -o $@ $(LDFLAGS) ${ldf-$@} $(filter-out liblitmus.a,$+) $(LOADLIBS) $(LDLIBS) ${liblitmus-flags} ${lib-$@} | 236 | $(CC) -o $@ $(LDFLAGS) ${ldf-$@} $(filter-out liblitmus.a,$+) $(LOADLIBS) $(LDLIBS) ${lib-$@} ${liblitmus-flags} |
238 | 237 | ||
239 | # ############################################################################## | 238 | # ############################################################################## |
240 | # Dependency resolution. | 239 | # Dependency resolution. |
@@ -272,9 +271,7 @@ $(error Cannot build without access to the LITMUS^RT kernel source) | |||
272 | endif | 271 | endif |
273 | 272 | ||
274 | kernel-unistd-hdrs := $(foreach file,${unistd-headers},${LITMUS_KERNEL}/$(file)) | 273 | kernel-unistd-hdrs := $(foreach file,${unistd-headers},${LITMUS_KERNEL}/$(file)) |
275 | #hdr-ok := $(shell egrep '\#include .*litmus/unistd' ${kernel-unistd-hdrs} ) | 274 | hdr-ok := $(shell egrep '\#include .*litmus/unistd' ${kernel-unistd-hdrs} ) |
276 | # XXX BAD BAD BAD | ||
277 | hdr-ok := blah | ||
278 | ifeq ($(strip $(hdr-ok)),) | 275 | ifeq ($(strip $(hdr-ok)),) |
279 | $(info (!!) Could not find LITMUS^RT system calls in ${kernel-unistd-hdrs}.) | 276 | $(info (!!) Could not find LITMUS^RT system calls in ${kernel-unistd-hdrs}.) |
280 | $(error Your kernel headers do not seem to be LITMUS^RT headers) | 277 | $(error Your kernel headers do not seem to be LITMUS^RT headers) |
diff --git a/bin/colortest.c b/bin/colortest.c index 02a9169..bc66522 100644 --- a/bin/colortest.c +++ b/bin/colortest.c | |||
@@ -1,7 +1,6 @@ | |||
1 | #include <stdlib.h> | 1 | #include <stdlib.h> |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <stdint.h> | 3 | #include <stdint.h> |
4 | |||
5 | #include <litmus/rt_param.h> | 4 | #include <litmus/rt_param.h> |
6 | 5 | ||
7 | #include "color.h" | 6 | #include "color.h" |
diff --git a/src/litmus.c b/src/litmus.c index d45beaf..d3cc6bb 100644 --- a/src/litmus.c +++ b/src/litmus.c | |||
@@ -41,7 +41,6 @@ int be_migrate_to(int target_cpu) | |||
41 | return sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set); | 41 | return sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set); |
42 | } | 42 | } |
43 | 43 | ||
44 | #if 0 | ||
45 | int sporadic_task(lt_t e, lt_t p, lt_t phase, | 44 | int sporadic_task(lt_t e, lt_t p, lt_t phase, |
46 | int cpu, task_class_t cls, | 45 | int cpu, task_class_t cls, |
47 | budget_policy_t budget_policy, int set_cpu_set) | 46 | budget_policy_t budget_policy, int set_cpu_set) |
@@ -49,9 +48,7 @@ int sporadic_task(lt_t e, lt_t p, lt_t phase, | |||
49 | return sporadic_task_ns(e * NS_PER_MS, p * NS_PER_MS, phase * NS_PER_MS, | 48 | return sporadic_task_ns(e * NS_PER_MS, p * NS_PER_MS, phase * NS_PER_MS, |
50 | cpu, cls, budget_policy, set_cpu_set); | 49 | cpu, cls, budget_policy, set_cpu_set); |
51 | } | 50 | } |
52 | #endif | ||
53 | 51 | ||
54 | #if 0 | ||
55 | int sporadic_task_ns(lt_t e, lt_t p, lt_t phase, | 52 | int sporadic_task_ns(lt_t e, lt_t p, lt_t phase, |
56 | int cpu, task_class_t cls, | 53 | int cpu, task_class_t cls, |
57 | budget_policy_t budget_policy, int set_cpu_set) | 54 | budget_policy_t budget_policy, int set_cpu_set) |
@@ -77,7 +74,6 @@ int sporadic_task_ns(lt_t e, lt_t p, lt_t phase, | |||
77 | } | 74 | } |
78 | return set_rt_task_param(gettid(), ¶m); | 75 | return set_rt_task_param(gettid(), ¶m); |
79 | } | 76 | } |
80 | #endif | ||
81 | 77 | ||
82 | int init_kernel_iface(void); | 78 | int init_kernel_iface(void); |
83 | 79 | ||
diff --git a/src/syscalls.c b/src/syscalls.c index 5885512..c68f15b 100644 --- a/src/syscalls.c +++ b/src/syscalls.c | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | #include "litmus.h" | 11 | #include "litmus.h" |
12 | 12 | ||
13 | #if 0 | ||
14 | /* Syscall stub for setting RT mode and scheduling options */ | 13 | /* Syscall stub for setting RT mode and scheduling options */ |
15 | 14 | ||
16 | pid_t gettid(void) | 15 | pid_t gettid(void) |
@@ -87,4 +86,3 @@ int null_call(cycles_t *timestamp) | |||
87 | { | 86 | { |
88 | return syscall(__NR_null_call, timestamp); | 87 | return syscall(__NR_null_call, timestamp); |
89 | } | 88 | } |
90 | #endif | ||