From 526afdfb333ca29170fd210b08860ac2a4c141ed Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Sun, 3 Feb 2008 00:23:32 -0500 Subject: rip out old junk --- Makefile | 23 +++------------ bin/hrt.c | 78 ------------------------------------------------ bin/iotest.c | 74 ---------------------------------------------- bin/rt_launch.c | 82 ++++++++++----------------------------------------- bin/set_rt_mode.c | 46 ----------------------------- bin/show_scheduler.c | 10 ------- bin/stdump.c | 22 -------------- bin/timeout.c | 36 ---------------------- include/adaptive.h | 38 ------------------------ include/edf-hsb.h | 10 ------- include/litmus.h | 57 ----------------------------------- include/sched_trace.h | 21 ------------- src/adaptive.c | 48 ------------------------------ src/edf-hsb.c | 48 ------------------------------ src/litmus.c | 37 ----------------------- src/sched_trace.c | 1 - src/syscalls.c | 7 ----- 17 files changed, 20 insertions(+), 618 deletions(-) delete mode 100644 bin/hrt.c delete mode 100644 bin/iotest.c delete mode 100644 bin/set_rt_mode.c delete mode 100644 bin/show_scheduler.c delete mode 100644 bin/timeout.c delete mode 100644 include/adaptive.h delete mode 100644 include/edf-hsb.h delete mode 100644 src/adaptive.c delete mode 100644 src/edf-hsb.c diff --git a/Makefile b/Makefile index 7778545..2164d23 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,9 @@ CPPFLAGS=-Wall -g LIBS= ./liblitmus.a -LIB_OBJ= litmus.o syscalls.o sched_trace.o adaptive.o edf-hsb.o task.o kernel_iface.o +LIB_OBJ= litmus.o syscalls.o sched_trace.o task.o kernel_iface.o -TARGETS = showsched iotest set_rt_mode run timeout rt_launch edfhsb liblitmus.a \ +TARGETS = run rt_launch liblitmus.a \ wait_test np_test stdump mode_test base_task base_mt_task vpath %.h include/ @@ -30,30 +30,15 @@ mode_test: mode_test.o litmus.h liblitmus.a np_test: np_test.o litmus.h liblitmus.a cc -static -o np_test np_test.o ${LIBS} -iotest: iotest.o litmus.h liblitmus.a - cc -static -o iotest iotest.o ${LIBS} - -run: run.o +run: run.o ${LIBS} cc -o run run.o ${LIBS} -set_rt_mode: liblitmus.a set_rt_mode.o - cc -o set_rt_mode set_rt_mode.o ${LIBS} - -showsched: show_scheduler.o liblitmus.a litmus.h - cc -o showsched show_scheduler.o ${LIBS} - -timeout: liblitmus.a timeout.o litmus.h - cc -static -o timeout timeout.o ${LIBS} - rt_launch: liblitmus.a litmus.h rt_launch.o cc -static -o rt_launch rt_launch.o ${LIBS} -edfhsb: liblitmus.a edf-hsb.o litmus.h edf-hsb.h hrt.o - cc -o edfhsb hrt.o edf-hsb.o ${LIBS} - stdump: liblitmus.a litmus.h sched_trace.h stdump.o cc -o stdump stdump.o ${LIBS} -liblitmus.a: ${LIB_OBJ} adaptive.h litmus.h edf-hsb.h +liblitmus.a: ${LIB_OBJ} litmus.h ${AR} rcs liblitmus.a ${LIB_OBJ} diff --git a/bin/hrt.c b/bin/hrt.c deleted file mode 100644 index 224293c..0000000 --- a/bin/hrt.c +++ /dev/null @@ -1,78 +0,0 @@ -#include -#include -#include - -#include "edf-hsb.h" - - -void usage(char *name) -{ - fprintf(stderr, - "EDF-HSB server setup utility\n" - "Usage: %s hrt show <#cpu>\n" - " %s hrt set <#cpu> \n" - " %s be create \n", - name, name, name); - exit(1); -} - - -int hrt(int argc, char** argv) -{ - int wcet, period, cpu; - - if (argc == 2 && !strcmp(argv[0], "show")) { - cpu = atoi(argv[1]); - if (!get_hrt(cpu, &wcet, &period)) - printf("HRT/%d = (%d, %d)\n", cpu, wcet, period); - else - perror("cannot read HRT settings"); - } else if (argc == 4 && !strcmp(argv[0], "set")) { - cpu = atoi(argv[1]); - wcet = atoi(argv[2]); - period = atoi(argv[3]); - printf("Setting HRT/%d to (%d, %d)", cpu, wcet, period); - if (!set_hrt(cpu, wcet, period)) - printf(" OK.\n"); - else { - printf("\n"); - perror("cannot write HRT settings"); - } - } else - return 1; - - return 0; -} - -int be(int argc, char** argv) -{ - int wcet, period; - if (argc == 3 && !strcmp(argv[0], "create")) { - wcet = atoi(argv[1]); - period = atoi(argv[2]); - printf("Creating BE with (%d, %d)", wcet, period); - if (!create_be(wcet, period)) - printf(" OK.\n"); - else { - printf("\n"); - perror("cannot create BE server"); - } - return 0; - } - else - return 1; -} - -int main(int argc, char** argv) -{ - int ret = 1; - if (argc > 1) { - if (!strcmp(argv[1], "hrt")) - ret = hrt(argc - 2, argv + 2); - else if (!strcmp(argv[1], "be")) - ret = be(argc - 2, argv + 2); - } - if (ret) - usage(argv[0]); - return ret; -} diff --git a/bin/iotest.c b/bin/iotest.c deleted file mode 100644 index ac07e74..0000000 --- a/bin/iotest.c +++ /dev/null @@ -1,74 +0,0 @@ -#include -#include -#include -#include -#include -#include - -#include "litmus.h" - -#define US_PER_MS 1000 - -int iotest(void *nil) { - int id = getpid(); - FILE* file; - char str[255]; - unsigned long last = 0; - struct timeval time; - - printf("I'am real time task %d doing IO!\n", id); - snprintf(str, sizeof(str), "rt-io-%d.txt", id); - file = fopen(str, "w"); - if (!file) { - perror("could not open file for output"); - exit(1); - } - while (1) { - gettimeofday(&time, NULL); - if (time.tv_usec - last > US_PER_MS) { - fprintf(file, "ran at %lus %lums\n", time.tv_sec, time.tv_usec / US_PER_MS); - last = time.tv_usec; - } - fflush(file); - } - return id; -} - -#define NUMTASKS 4 - -int main(int argc, char** argv) -{ - int rt_task[NUMTASKS]; - int i; - int ret, pid; - - for (i = 0; i < NUMTASKS; i++) { - /* func arg cpu wcet period */ - rt_task[i] = create_rt_task(iotest, NULL, 0, 25, 100); - if (rt_task[i] < 0) { - perror("Could not create rt child process"); - } - } - - sync(); - sync(); - - printf(":: Starting real-time mode.\n"); - set_rt_mode(MODE_RT_RUN); - - printf(":: Sleeping...\n"); - sleep(120); - - printf("Killing real-time tasks.\n"); - for (i = 0; i < NUMTASKS; i++) { - printf(":: sending SIGKILL to %d\n", rt_task[i]); - kill(rt_task[i], SIGKILL); - } - for (i = 0; i < NUMTASKS; i++) { - pid = wait(&ret); - printf(":: %d exited with status %d\n", pid, ret); - } - printf(":: Leaving real-time mode.\n"); - set_rt_mode(MODE_NON_RT); - return 0; -} diff --git a/bin/rt_launch.c b/bin/rt_launch.c index d888365..186c0fa 100644 --- a/bin/rt_launch.c +++ b/bin/rt_launch.c @@ -6,7 +6,6 @@ #include #include "litmus.h" -#include "adaptive.h" typedef struct { char * exec_path; @@ -25,50 +24,20 @@ int launch(void *task_info_p) { void usage(char *error) { fprintf(stderr, "%s\nUsage: \nlaunch_rt supports one of two modes:\n" "\n\tlaunch_rt program arg1 arg2 ...\n" - "\n\tlaunch_rt program arg1 arg2 ...\n" "\nwhere:" "\n\t = " "[-c {hrt|srt|be}] [-p ]\n" - "\n\t = " - "(-a weight/period/utility)+\n" "\nExamples:" "\n\trt_launch -p 2 10 100 cpu_job" "\n\t => Launch cpu_job a hard real-time task with " "\n\t period 100 and weight 0.1 on CPU 2.\n" - "\n\trt_launch -a 0.1/100/0.4 -a 0.2/75/0.5 adaptive_job" - "\n\t => Launch adaptive_job with two service levels" "\n\n", error); exit(1); } -/* argument format should be weight/period/utility */ -static int parse_service_level(service_level_t* level, char* str) -{ - char *weight, *period, *utility; - double u, w; - weight = strtok(str, "/"); - period = strtok(NULL, "/"); - utility = strtok(NULL, "/"); - str = strtok(NULL, "/"); - - if (str || !utility || !period || !weight) - return 0; - - w = atof(weight); - u = atof(utility); - level->weight = f2fp(w); - level->period = atol(period); - level->value = f2fp(u); - - if (level->period == 0 || - u <= 0.0 || u > 1.0 || w <= 0.0 || w > 1.0) - return 0; - return 1; -} - -#define OPTSTR "p:c:a:" +#define OPTSTR "p:c:" int main(int argc, char** argv) { @@ -80,19 +49,8 @@ int main(int argc, char** argv) startup_info_t info; task_class_t class = RT_CLASS_HARD; - int adaptive = 0; - unsigned int level = 0; - service_level_t slevel[MAX_SERVICE_LEVELS]; - while ((opt = getopt(argc, argv, OPTSTR)) != -1) { switch (opt) { - case 'a': - adaptive = 1; - if (level == MAX_SERVICE_LEVELS) - usage("Too many service levels."); - if (!parse_service_level(slevel + level++, optarg)) - usage("Bad service level."); - break; case 'p': cpu = atoi(optarg); break; @@ -114,30 +72,22 @@ int main(int argc, char** argv) signal(SIGUSR1, SIG_IGN); - if (!adaptive) { - if (argc - optind < 3) - usage("Arguments missing."); - wcet = atoi(argv[optind + 0]); - period = atoi(argv[optind + 1]); - if (wcet <= 0) - usage("The worst-case execution time must be a " - "positive number."); - if (period <= 0) - usage("The period must be a positive number."); - if (wcet > period) { - usage("The worst-case execution time must not " - "exceed the period."); - } - info.exec_path = argv[optind + 2]; - info.argv = argv + optind + 2; - ret = __create_rt_task(launch, &info, cpu, wcet, period, class); - } else { - if (argc == optind) - usage("Arguments missing."); - info.exec_path = argv[optind]; - info.argv = argv + optind; - ret = create_adaptive_rt_task(launch, &info, level, slevel); + if (argc - optind < 3) + usage("Arguments missing."); + wcet = atoi(argv[optind + 0]); + period = atoi(argv[optind + 1]); + if (wcet <= 0) + usage("The worst-case execution time must be a " + "positive number."); + if (period <= 0) + usage("The period must be a positive number."); + if (wcet > period) { + usage("The worst-case execution time must not " + "exceed the period."); } + info.exec_path = argv[optind + 2]; + info.argv = argv + optind + 2; + ret = __create_rt_task(launch, &info, cpu, wcet, period, class); if (ret < 0) { diff --git a/bin/set_rt_mode.c b/bin/set_rt_mode.c deleted file mode 100644 index 510da70..0000000 --- a/bin/set_rt_mode.c +++ /dev/null @@ -1,46 +0,0 @@ -#include -#include -#include -#include -#include - -#include "litmus.h" - - -void die(const char* str) -{ - fprintf(stderr, "%s\n%s\n", str, - "Usage: set_rt_mode [-v] {on|off}"); - exit(127); -} - -int main(int argc, char** argv) -{ - int ret; - int verbose = 0; - char* cmd = argv[1]; - - if (argc == 3 && !strcmp(argv[1], "-v")) { - verbose = 1; - cmd = argv[2]; - } - if (argc == 2 || verbose) { - if (!strcmp(cmd, "on")) { - if (verbose) - printf("Enabling real-time mode.\n"); - ret = set_rt_mode(MODE_RT_RUN); - if (ret && verbose) - perror("set_rt_mode failed"); - exit(ret ? errno : 0); - } else if (!strcmp(cmd, "off")) { - if (verbose) - printf("Disabling real-time mode.\n"); - ret = set_rt_mode(MODE_NON_RT); - if (ret && verbose) - perror("set_rt_mode failed"); - exit(ret ? errno : 0); - } - } - die("Bad arguments."); - return 0; -} diff --git a/bin/show_scheduler.c b/bin/show_scheduler.c deleted file mode 100644 index 7026e2a..0000000 --- a/bin/show_scheduler.c +++ /dev/null @@ -1,10 +0,0 @@ -#include -#include - -#include "litmus.h" - -int main(int argc, char** argv) { - spolicy scheduler = sched_getpolicy(); - printf("%s\n", get_scheduler_name(scheduler)); - return 0; -} diff --git a/bin/stdump.c b/bin/stdump.c index 282fb31..30715dd 100644 --- a/bin/stdump.c +++ b/bin/stdump.c @@ -4,28 +4,8 @@ #include "litmus.h" -#include "adaptive.h" #include "sched_trace.h" -int show_sl_chg(trace_header_t* hdr) -{ - service_level_change_record_t *rec; - - rec = (service_level_change_record_t*) hdr; - printf("SL CHANGE : PID=%d PERIOD=%lu\n", rec->task.pid, - rec->new_level.period); - return 0; -} - -int show_weight_error(trace_header_t* hdr) -{ - weight_error_record_t *rec; - - rec = (weight_error_record_t*) hdr; - printf("WEIGHT ERR: PID=%d EST=%5.4f ACT=%5.4f\n", rec->task, - fp2f(rec->estimate), fp2f(rec->actual)); - return 0; -} int main(int argc, char** argv) @@ -34,8 +14,6 @@ int main(int argc, char** argv) int ret; init_record_callback(&cb); - set_callback(ST_SERVICE_LEVEL_CHANGE, show_sl_chg, &cb); - set_callback(ST_WEIGHT_ERROR, show_weight_error, &cb); ret = walk_sched_trace_files_ordered(argv + 1, argc - 1, 0, &cb); if (ret != 0) diff --git a/bin/timeout.c b/bin/timeout.c deleted file mode 100644 index ba513f9..0000000 --- a/bin/timeout.c +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include -#include - -#include "litmus.h" - -int main(int argc, char** argv) -{ - int timeout; - rt_param_t my_param; - - if (argc != 2) - { - printf("Usage: %s \n", argv[0]); - exit(1); - } - timeout = atoi(argv[1]); - if (timeout <= 0) { - printf("Timeout must be a positive number.\n"); - exit(1); - } - - /* printf("This is the kill real-time mode task.\n" - "Expected end of real %u seconds.\n", timeout); - */ - /* get_rt_task_param(getpid(), &my_param); - show_rt_param(&my_param); - */ - - sleep(timeout); - - - set_rt_mode(MODE_NON_RT); - printf("End of real-time mode.\n"); - return 0; -} diff --git a/include/adaptive.h b/include/adaptive.h deleted file mode 100644 index 360b13e..0000000 --- a/include/adaptive.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef ADAPTIVE_H -#define ADAPTIVE_H - -#define FP_SHIFT 10 -typedef struct -{ - long val; -} fp_t; - -static inline fp_t f2fp(double f) -{ - return (fp_t) {f * (1 << FP_SHIFT)}; -} - -static inline double fp2f(fp_t f) -{ - return ((double) f.val) / (1 << FP_SHIFT); -} - - -#define MAX_SERVICE_LEVELS 10 -typedef struct { - fp_t weight; - unsigned long period; - fp_t value; -} service_level_t; - -int set_service_levels(pid_t pid, - unsigned int nr_levels, - service_level_t* levels); - -int get_cur_service_level(void); - -int create_adaptive_rt_task(rt_fn_t rt_prog, void *arg, - unsigned int no_levels, service_level_t* levels); - - -#endif diff --git a/include/edf-hsb.h b/include/edf-hsb.h deleted file mode 100644 index 0ac3d4f..0000000 --- a/include/edf-hsb.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef EDF_HSB_H -#define EDF_HSB_H - - -int set_hrt(int cpu, unsigned int wcet, unsigned int period); -int get_hrt(int cpu, unsigned int *wcet, unsigned int *period); -int create_be(unsigned int wcet, unsigned int period); - - -#endif diff --git a/include/litmus.h b/include/litmus.h index c3cd51d..8918ae9 100644 --- a/include/litmus.h +++ b/include/litmus.h @@ -6,20 +6,6 @@ /* A real-time program. */ typedef int (*rt_fn_t)(void*); -/* Litmus scheduling policies */ -typedef enum { - SCHED_LINUX = 0, - SCHED_PFAIR = 1, - SCHED_PART_EDF = 3, - SCHED_GLOBAL_EDF = 5, - SCHED_PFAIR_DESYNC = 6, - SCHED_GLOBAL_EDF_NP = 7, - SCHED_EDF_HSB = 9, - SCHED_GSN_EDF = 10, - SCHED_PSN_EDF = 11, - SCHED_ADAPTIVE = 12, -} spolicy; - /* different types of clients */ typedef enum { RT_CLASS_HARD, @@ -48,12 +34,6 @@ typedef int pid_t; /* PID of a task */ /* obtain the PID of a thread */ pid_t gettid(void); -/* scheduler modes */ -#define MODE_NON_RT 0 -#define MODE_RT_RUN 1 - -spolicy sched_getpolicy(void); -int set_rt_mode(int mode); int set_rt_task_param(pid_t pid, rt_param_t* param); int get_rt_task_param(pid_t pid, rt_param_t* param); @@ -66,18 +46,10 @@ int sporadic_task(unsigned long exec_cost, unsigned long period, #define sporadic_partitioned(e, p, cpu) \ sporadic_task(e, p, cpu, RT_CLASS_SOFT) - -/* deprecated */ -enum { - LITMUS_RESERVED_RANGE = 1024, -} SCHED_SETUP_CMD; -int scheduler_setup(int cmd, void* param); - /* file descriptor attached shared objects support */ typedef enum { PI_SEM = 0, SRP_SEM = 1, - ICS_ID = 2, } obj_type_t; int od_openx(int fd, obj_type_t type, int obj_id, void* config); @@ -100,34 +72,6 @@ int get_job_no(unsigned int* job_no); int wait_for_job_release(unsigned int job_no); int sleep_next_period(void); -/* interruptible critical section support */ -#define MAX_ICS_NESTING 16 -#define ICS_STACK_EMPTY (-1) - -struct ics_descriptor { - /* ICS id, only read by kernel */ - int id; - /* rollback program counter, only read by kernel */ - void* pc; - /* rollback stack pointer, not used by kernel */ - void* sp; - /* retry flag, not used by kernel */ - int* retry; -}; - -/* ICS control block */ -struct ics_cb { - /* Points to the top-most valid entry. - * -1 indicates an empty stack. - * Read and written by kernel. - */ - int top; - struct ics_descriptor ics_stack[MAX_ICS_NESTING]; -}; - -int reg_ics_cb(struct ics_cb* ics_cb); -int start_wcs(int od); - /* library functions */ int init_litmus(void); int init_rt_thread(void); @@ -144,7 +88,6 @@ enum rt_task_mode_t { }; int task_mode(int target_mode); -const char* get_scheduler_name(spolicy scheduler); void show_rt_param(rt_param_t* tp); task_class_t str2class(const char* str); diff --git a/include/sched_trace.h b/include/sched_trace.h index 1427107..5d2ddb3 100644 --- a/include/sched_trace.h +++ b/include/sched_trace.h @@ -17,9 +17,6 @@ typedef enum { ST_JOB_COMPLETION = 6, ST_CAPACITY_RELEASE = 7, ST_CAPACITY_ALLOCATION = 8, - ST_SERVICE_LEVEL_CHANGE = 9, - ST_WEIGHT_ERROR = 10, - ST_MAX } trace_type_t; @@ -96,24 +93,6 @@ typedef struct { pid_t donor; } cap_allocation_record_t; -typedef struct { - trace_header_t header; - task_info_t task; - unsigned int from:16; - unsigned int to:16; - service_level_t new_level; - service_level_t old_level; -} service_level_change_record_t; - -typedef struct { - trace_header_t header; - pid_t task; - fp_t estimate; - fp_t actual; -} weight_error_record_t; - - - diff --git a/src/adaptive.c b/src/adaptive.c deleted file mode 100644 index 6a7d7a2..0000000 --- a/src/adaptive.c +++ /dev/null @@ -1,48 +0,0 @@ -#include -#include - -#include "litmus.h" -#include "internal.h" -#include "syscalls.h" - -#include "adaptive.h" - -#define __NR_set_service_levels 346 -#define __NR_get_cur_service_level 347 - - - -int set_service_levels(pid_t pid, - unsigned int nr_levels, - service_level_t* levels) -{ - return syscall(__NR_set_service_levels, pid, nr_levels, levels); -} - - -int get_cur_service_level(void) -{ - return syscall(__NR_get_cur_service_level); -} - - -struct adaptive_param { - unsigned int no_levels; - service_level_t* levels; -}; - -int setup_adaptive(int pid, struct adaptive_param* arg) -{ - return set_service_levels(pid, arg->no_levels, arg->levels); -} - -int create_adaptive_rt_task(rt_fn_t rt_prog, void *arg, - unsigned int no_levels, service_level_t* levels) -{ - struct adaptive_param p; - p.no_levels = no_levels; - p.levels = levels; - return __launch_rt_task(rt_prog, arg, - (rt_setup_fn_t) setup_adaptive, &p); -} - diff --git a/src/edf-hsb.c b/src/edf-hsb.c deleted file mode 100644 index 9ace2ca..0000000 --- a/src/edf-hsb.c +++ /dev/null @@ -1,48 +0,0 @@ -#include "litmus.h" -#include "edf-hsb.h" - - -typedef enum { - EDF_HSB_SET_HRT, - EDF_HSB_GET_HRT, - EDF_HSB_CREATE_BE -} edf_hsb_setup_cmds_t; - -typedef struct { - int cpu; - unsigned int wcet; - unsigned int period; -} setup_hrt_param_t; - -typedef struct { - unsigned int wcet; - unsigned int period; -} create_be_param_t; - -int set_hrt(int cpu, unsigned int wcet, unsigned int period) -{ - setup_hrt_param_t param; - param.cpu = cpu; - param.wcet = wcet; - param.period = period; - return scheduler_setup(EDF_HSB_SET_HRT, ¶m); -} - -int get_hrt(int cpu, unsigned int *wcet, unsigned int *period) -{ - setup_hrt_param_t param; - int ret; - param.cpu = cpu; - ret = scheduler_setup(EDF_HSB_GET_HRT, ¶m); - *wcet = param.wcet; - *period = param.period; - return ret; -} - -int create_be(unsigned int wcet, unsigned int period) -{ - create_be_param_t param; - param.wcet = wcet; - param.period = period; - return scheduler_setup(EDF_HSB_CREATE_BE, ¶m); -} diff --git a/src/litmus.c b/src/litmus.c index cc23263..8f5dfe8 100644 --- a/src/litmus.c +++ b/src/litmus.c @@ -8,43 +8,6 @@ #include "litmus.h" #include "internal.h" -const char* get_scheduler_name(spolicy scheduler) -{ - const char* name; - - switch (scheduler){ - case SCHED_LINUX : - name = "Linux"; - break; - case SCHED_PFAIR: - name = "Pfair"; - break; - case SCHED_PART_EDF: - name = "Partioned EDF"; - break; - case SCHED_GLOBAL_EDF: - name = "Global EDF"; - break; - case SCHED_EDF_HSB: - name = "EDF-HSB"; - break; - case SCHED_GSN_EDF: - name = "GSN-EDF"; - break; - case SCHED_PSN_EDF: - name = "PSN-EDF"; - break; - case SCHED_ADAPTIVE: - name = "ADAPTIVE"; - break; - default: - name = "Unkown"; - break; - } - return name; -} - - void show_rt_param(rt_param_t* tp) { printf("rt params:\n\t" diff --git a/src/sched_trace.c b/src/sched_trace.c index 18969bd..c3a603b 100644 --- a/src/sched_trace.c +++ b/src/sched_trace.c @@ -8,7 +8,6 @@ #include #include "litmus.h" -#include "adaptive.h" #include "sched_trace.h" diff --git a/src/syscalls.c b/src/syscalls.c index 3b2f76c..0924818 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -41,12 +41,9 @@ struct np_flag; _syscall0(pid_t, gettid); -_syscall0(spolicy, sched_getpolicy); -_syscall1(int, set_rt_mode, int, arg1); _syscall2(int, set_rt_task_param, pid_t, pid, rt_param_t*, arg1); _syscall2(int, get_rt_task_param, pid_t, pid, rt_param_t*, arg1); _syscall0(int, sleep_next_period); -_syscall2(int, scheduler_setup, int, cmd, void*, param); _syscall1(int, register_np_flag, struct np_flag*, flag); _syscall0(int, signal_exit_np); @@ -58,10 +55,6 @@ _syscall1(int, pi_up, int, od); _syscall1(int, srp_down, int, od); _syscall1(int, srp_up, int, od); _syscall1(int, reg_task_srp_sem, int, od); - _syscall1(int, get_job_no, unsigned int*, job_no); _syscall1(int, wait_for_job_release, unsigned int, job_no); - -_syscall1(int, start_wcs, int, od); -_syscall1(int, reg_ics_cb, struct ics_cb*, ics_cb); _syscall1(int, task_mode, int, target_mode); -- cgit v1.2.2