summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2014-11-05 10:09:38 +0100
committerClark Williams <clark.williams@gmail.com>2014-11-06 15:43:29 -0600
commit37c4b02108e62d2b360f8e563accaf1044a1fea7 (patch)
tree5e9b7930c211435475ab4e15aee9910617cc4e03
parentb45ce036389ff5b8b710976ad8ccbbd69cace02c (diff)
downloadrt-tests-37c4b02108e62d2b360f8e563accaf1044a1fea7.tar.gz
rt-tests.h: Remove unused header file
There is no user of this header file. Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
-rw-r--r--src/include/rt-tests.h124
1 files changed, 0 insertions, 124 deletions
diff --git a/src/include/rt-tests.h b/src/include/rt-tests.h
deleted file mode 100644
index d7eefd9..0000000
--- a/src/include/rt-tests.h
+++ /dev/null
@@ -1,124 +0,0 @@
-#ifndef __RT_TESTS_H__
-#define __RT_TESTS_H__
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#define __USE_GNU
-#include <fcntl.h>
-#include <getopt.h>
-#include <pthread.h>
-#include <signal.h>
-#include <sched.h>
-#include <string.h>
-#include <time.h>
-#include <errno.h>
-
-#include <linux/unistd.h>
-
-#include <sys/prctl.h>
-#include <sys/stat.h>
-#include <sys/sysinfo.h>
-#include <sys/types.h>
-#include <sys/time.h>
-#include <sys/utsname.h>
-#include <sys/mman.h>
-
-#ifndef SCHED_IDLE
-#define SCHED_IDLE 5
-#endif
-#ifndef SCHED_NORMAL
-#define SCHED_NORMAL SCHED_OTHER
-#endif
-
-/* Ugly, but .... */
-#define gettid() syscall(__NR_gettid)
-#define sigev_notify_thread_id _sigev_un._tid
-
-#ifdef __UCLIBC__
-#define MAKE_PROCESS_CPUCLOCK(pid, clock) \
- ((~(clockid_t) (pid) << 3) | (clockid_t) (clock))
-#define CPUCLOCK_SCHED 2
-
-static int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *req,
- struct timespec *rem)
-{
- if (clock_id == CLOCK_THREAD_CPUTIME_ID)
- return -EINVAL;
- if (clock_id == CLOCK_PROCESS_CPUTIME_ID)
- clock_id = MAKE_PROCESS_CPUCLOCK (0, CPUCLOCK_SCHED);
-
- return syscall(__NR_clock_nanosleep, clock_id, flags, req, rem);
-}
-
-static int sched_setaffinity(pid_t pid, unsigned int cpusetsize,
- cpu_set_t *mask)
-{
- return -EINVAL;
-}
-
-static void CPU_SET(int cpu, cpu_set_t *set) { }
-static void CPU_ZERO(cpu_set_t *set) { }
-#else
-extern int clock_nanosleep(clockid_t __clock_id, int __flags,
- __const struct timespec *__req,
- struct timespec *__rem);
-#endif
-
-#define USEC_PER_SEC 1000000
-#define NSEC_PER_SEC 1000000000
-
-#define HIST_MAX 1000000
-
-/* Struct to transfer parameters to the thread */
-struct thread_param {
- int prio;
- int policy;
- int mode;
- int timermode;
- int signal;
- int clock;
- unsigned long max_cycles;
- struct thread_stat *stats;
- int bufmsk;
- unsigned long interval;
- int cpu;
-};
-
-/* Struct for statistics */
-struct thread_stat {
- unsigned long cycles;
- unsigned long cyclesread;
- long min;
- long max;
- long act;
- double avg;
- long *values;
- long *hist_array;
- pthread_t thread;
- int threadstarted;
- int tid;
- long reduce;
- long redmax;
- long cycleofmax;
- long hist_overflow;
-};
-
-enum kernelversion {
- KV_NOT_26, /* not a 2.6 kernel */
- KV_26_LT18, /* less than 2.6.18 */
- KV_26_LT24, /* less than 2.6.24 */
- KV_26_LT28, /* less than 2.6.28 */
- KV_26_CURR, /* 2.6.28+ */
-};
-
-enum kernelversion check_kernel(void);
-
-enum {
- ERROR_GENERAL = -1,
- ERROR_NOTFOUND = -2,
-};
-
-#define TIMER_RELTIME 0
-
-#endif