Commit eda7791f authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl: rename evenless/ paths to evl/

parent b90d18b4
......@@ -14,7 +14,7 @@ Prerequisites:
- the UAPI headers from the target kernel fit with the EVL core. We
need access to the contents of include/uapi/asm/ and
include/uapi/evenless/ from the source Linux tree.
include/uapi/evl/ from the source Linux tree.
Command:
......@@ -42,22 +42,22 @@ Other build variables
D={0|1} Disable|enable debug build, i.e. -g -O0 vs -O2 [0]
O=$output_dir Generate binary output files into $output_dir [.]
V={0|1} Set build verbosity level, 0 is terse [0]
DESTDIR=$install_dir Install library and binaries into $install_dir [/usr/evenless]
DESTDIR=$install_dir Install library and binaries into $install_dir [/usr/evl]
Build command examples
~~~~~~~~~~~~~~~~~~~~~~
Say the library source code is located at ~/git/evenless, and the
Say the library source code is located at ~/git/evl, and the
kernel sources featuring the EVL core is located at
~/git/linux-evenless. You could build+install the EVL library and
~/git/linux-evl. You could build+install the EVL library and
utilities directly to a staging directory at
/nfsroot/<machine>/usr/evenless as follows:
/nfsroot/<machine>/usr/evl as follows:
$ mkdir /tmp/build-imx6q && cd /tmp/build-imx6q
$ make -C ~/git/evenless O=$PWD ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- UAPI=~/git/linux-evenless DESTDIR=/nfsroot/imx6q/usr/evenless install
$ make -C ~/git/evl O=$PWD ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- UAPI=~/git/linux-evl DESTDIR=/nfsroot/imx6q/usr/evl install
or,
$ mkdir /tmp/build-hikey
$ cd ~/git/evenless
$ make O=/tmp/build-hikey ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- UAPI=~/git/linux-evenless DESTDIR=/nfsroot/hikey/usr/evenless install
$ cd ~/git/evl
$ make O=/tmp/build-hikey ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- UAPI=~/git/linux-evl DESTDIR=/nfsroot/hikey/usr/evl install
......@@ -61,16 +61,16 @@ if test x$enable = xtrue; then
if test x$full = xfalse; then
echo 1 > events/irq/enable
echo 1 > events/power/cpu_idle/enable
echo 1 > events/evenless/enable
echo 1 > events/evl/enable
else
echo function > current_tracer
fi
echo 1 > ${pcpu}snapshot
echo 1 > events/evenless/evl_timer_shot/enable
echo \!snapshot > events/evenless/evl_trigger/trigger
echo snapshot > events/evenless/evl_trigger/trigger
echo 1 > events/evenless/evl_trigger/enable
echo 1 > events/evenless/evl_latspot/enable
echo 1 > events/evl/evl_timer_shot/enable
echo \!snapshot > events/evl/evl_trigger/trigger
echo snapshot > events/evl/evl_trigger/trigger
echo 1 > events/evl/evl_trigger/enable
echo 1 > events/evl/evl_latspot/enable
echo "tracing enabled"
print=false
elif test x$disable = xtrue; then
......
......@@ -8,7 +8,7 @@ CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
AR = $(CROSS_COMPILE)ar
UAPI ?= /usr/include
DESTDIR ?= /usr/evenless
DESTDIR ?= /usr/evl
INSTALL ?= install
INSTALL_PROGRAM ?= $(INSTALL)
......
......@@ -10,22 +10,22 @@ uapi: $(O_DIR)/.uapi_stamp $(O_DIR)/uapi
$(O_DIR)/.uapi_stamp $(O_DIR)/uapi:
$(Q)$(MKDIR_P) $(O_UAPI)
$(Q)$(RM) -f $(O_UAPI)/asm $(O_UAPI)/evenless
$(Q)$(RM) -f $(O_UAPI)/asm $(O_UAPI)/evl
$(Q)if test -r $(UAPI)/Makefile; then \
$(LN_S) $(UAPI)/arch/$(ARCH)/include/uapi/asm $(O_UAPI)/asm; \
$(LN_S) $(UAPI)/include/uapi/evenless $(O_UAPI)/evenless; \
$(LN_S) $(UAPI)/include/uapi/evl $(O_UAPI)/evl; \
else \
$(LN_S) $(UAPI)/asm $(O_UAPI)/asm; \
$(LN_S) $(UAPI)/evenless $(O_UAPI)/evenless; \
$(LN_S) $(UAPI)/evl $(O_UAPI)/evl; \
fi; \
touch $@
all: uapi
clean clobber mrproper:
$(Q)$(RM) -f $(O_DIR)/.uapi_stamp $(O_UAPI)/asm $(O_UAPI)/evenless
$(Q)$(RM) -f $(O_DIR)/.uapi_stamp $(O_UAPI)/asm $(O_UAPI)/evl
install: all
$(Q)$(MKDIR_P) $(DESTDIR)/$(includedir)/uapi
$(call inst-cmd,uapi-headers,cd $(O_UAPI) && find -L evenless \! \( -name '*~' \) -type f | $(CPIO) -Lpdum --quiet $(DESTDIR)/$(includedir)/uapi)
$(call inst-cmd,interface-headers,find evenless \! \( -name '*~' \) -type f | $(CPIO) -Lpdum --quiet $(DESTDIR)/$(includedir))
$(call inst-cmd,uapi-headers,cd $(O_UAPI) && find -L evl \! \( -name '*~' \) -type f | $(CPIO) -Lpdum --quiet $(DESTDIR)/$(includedir)/uapi)
$(call inst-cmd,interface-headers,find evl \! \( -name '*~' \) -type f | $(CPIO) -Lpdum --quiet $(DESTDIR)/$(includedir))
......@@ -4,8 +4,8 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_ATOMIC_H
#define _EVENLESS_ATOMIC_H
#ifndef _EVL_ATOMIC_H
#define _EVL_ATOMIC_H
#include <linux/types.h>
......@@ -34,4 +34,4 @@ static inline void atomic_set(atomic_t *ptr, long val)
#define compiler_barrier() __asm__ __volatile__("": : :"memory")
#endif /* _EVENLESS_ATOMIC_H */
#endif /* _EVL_ATOMIC_H */
......@@ -4,15 +4,15 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_CLOCK_H
#define _EVENLESS_CLOCK_H
#ifndef _EVL_CLOCK_H
#define _EVL_CLOCK_H
#include <time.h>
#include <errno.h>
#include <sys/timex.h>
#include <sys/ioctl.h>
#include <evenless/syscall.h>
#include <uapi/evenless/clock.h>
#include <evl/syscall.h>
#include <uapi/evl/clock.h>
#ifdef __cplusplus
extern "C" {
......@@ -47,4 +47,4 @@ int evl_udelay(unsigned int usecs);
}
#endif
#endif /* _EVENLESS_CLOCK_H */
#endif /* _EVL_CLOCK_H */
......@@ -4,14 +4,14 @@
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_CONDVAR_H
#define _EVENLESS_CONDVAR_H
#ifndef _EVL_CONDVAR_H
#define _EVL_CONDVAR_H
#include <time.h>
#include <linux/types.h>
#include <evenless/atomic.h>
#include <uapi/evenless/types.h>
#include <uapi/evenless/monitor.h>
#include <evl/atomic.h>
#include <uapi/evl/types.h>
#include <uapi/evl/monitor.h>
struct evl_condvar {
unsigned int magic;
......@@ -69,4 +69,4 @@ int evl_close_condvar(struct evl_condvar *cv);
}
#endif
#endif /* _EVENLESS_CONDVAR_H */
#endif /* _EVL_CONDVAR_H */
......@@ -4,20 +4,20 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_EVL_H
#define _EVENLESS_EVL_H
#ifndef _EVL_EVL_H
#define _EVL_EVL_H
#include <signal.h>
#include <evenless/clock.h>
#include <evenless/mutex.h>
#include <evenless/condvar.h>
#include <evenless/sem.h>
#include <evenless/syscall.h>
#include <evenless/thread.h>
#include <evenless/xbuf.h>
#include <evenless/poll.h>
#include <evenless/proxy.h>
#include <evenless/utils.h>
#include <evl/clock.h>
#include <evl/mutex.h>
#include <evl/condvar.h>
#include <evl/sem.h>
#include <evl/syscall.h>
#include <evl/thread.h>
#include <evl/xbuf.h>
#include <evl/poll.h>
#include <evl/proxy.h>
#include <evl/utils.h>
#define __EVL__ 0 /* API revision */
......@@ -37,4 +37,4 @@ unsigned int evl_detect_fpu(void);
}
#endif
#endif /* _EVENLESS_EVL_H */
#endif /* _EVL_EVL_H */
......@@ -4,14 +4,14 @@
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_MUTEX_H
#define _EVENLESS_MUTEX_H
#ifndef _EVL_MUTEX_H
#define _EVL_MUTEX_H
#include <time.h>
#include <linux/types.h>
#include <evenless/atomic.h>
#include <uapi/evenless/types.h>
#include <uapi/evenless/monitor.h>
#include <evl/atomic.h>
#include <uapi/evl/types.h>
#include <uapi/evl/monitor.h>
struct evl_mutex {
unsigned int magic;
......@@ -87,4 +87,4 @@ int evl_close_mutex(struct evl_mutex *mutex);
}
#endif
#endif /* _EVENLESS_MUTEX_H */
#endif /* _EVL_MUTEX_H */
......@@ -4,13 +4,13 @@
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_POLL_H
#define _EVENLESS_POLL_H
#ifndef _EVL_POLL_H
#define _EVL_POLL_H
#include <sys/types.h>
#include <sys/poll.h>
#include <linux/types.h>
#include <uapi/evenless/poll.h>
#include <uapi/evl/poll.h>
#ifdef __cplusplus
extern "C" {
......@@ -36,4 +36,4 @@ int evl_poll(int efd, struct evl_poll_event *pollset,
}
#endif
#endif /* _EVENLESS_POLL_H */
#endif /* _EVL_POLL_H */
......@@ -4,12 +4,12 @@
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_PROXY_H
#define _EVENLESS_PROXY_H
#ifndef _EVL_PROXY_H
#define _EVL_PROXY_H
#include <sys/types.h>
#include <linux/types.h>
#include <uapi/evenless/proxy.h>
#include <uapi/evl/proxy.h>
#ifdef __cplusplus
extern "C" {
......@@ -22,4 +22,4 @@ int evl_new_proxy(int fd, size_t bufsz,
}
#endif
#endif /* _EVENLESS_PROXY_H */
#endif /* _EVL_PROXY_H */
......@@ -4,14 +4,14 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_SEM_H
#define _EVENLESS_SEM_H
#ifndef _EVL_SEM_H
#define _EVL_SEM_H
#include <time.h>
#include <evenless/atomic.h>
#include <evl/atomic.h>
#include <linux/types.h>
#include <uapi/evenless/types.h>
#include <uapi/evenless/monitor.h>
#include <uapi/evl/types.h>
#include <uapi/evl/monitor.h>
struct evl_thread;
......@@ -70,4 +70,4 @@ int evl_getval(struct evl_sem *sem);
}
#endif
#endif /* _EVENLESS_SEM_H */
#endif /* _EVL_SEM_H */
......@@ -4,8 +4,8 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_SYSCALL_H
#define _EVENLESS_SYSCALL_H
#ifndef _EVL_SYSCALL_H
#define _EVL_SYSCALL_H
#include <sys/types.h>
......@@ -23,4 +23,4 @@ int oob_ioctl(int efd, unsigned long request, ...);
}
#endif
#endif /* _EVENLESS_SYSCALL_H */
#endif /* _EVL_SYSCALL_H */
......@@ -4,14 +4,14 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_THREAD_H
#define _EVENLESS_THREAD_H
#ifndef _EVL_THREAD_H
#define _EVL_THREAD_H
#include <linux/types.h>
#include <limits.h>
#include <evenless/syscall.h>
#include <uapi/evenless/thread.h>
#include <uapi/evenless/sched.h>
#include <evl/syscall.h>
#include <uapi/evl/thread.h>
#include <uapi/evl/sched.h>
/* Enable dlopen() on libevl.so. */
#define EVL_TLS_MODEL "global-dynamic"
......@@ -62,4 +62,4 @@ int evl_get_state(int efd, struct evl_thread_state *statebuf);
}
#endif
#endif /* _EVENLESS_THREAD_H */
#endif /* _EVL_THREAD_H */
......@@ -4,12 +4,12 @@
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_TIMER_H
#define _EVENLESS_TIMER_H
#ifndef _EVL_TIMER_H
#define _EVL_TIMER_H
#include <time.h>
#include <linux/types.h>
#include <uapi/evenless/clock.h>
#include <uapi/evl/clock.h>
#ifdef __cplusplus
extern "C" {
......@@ -28,4 +28,4 @@ int evl_get_timer(int efd,
}
#endif
#endif /* _EVENLESS_TIMER_H */
#endif /* _EVL_TIMER_H */
......@@ -4,8 +4,8 @@
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_UTILS_H
#define _EVENLESS_UTILS_H
#ifndef _EVL_UTILS_H
#define _EVL_UTILS_H
#include <sys/types.h>
......@@ -26,4 +26,4 @@ int evl_sched_control(int policy,
}
#endif
#endif /* _EVENLESS_UTILS_H */
#endif /* _EVL_UTILS_H */
......@@ -4,13 +4,13 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _EVENLESS_XBUF_H
#define _EVENLESS_XBUF_H
#ifndef _EVL_XBUF_H
#define _EVL_XBUF_H
#include <sys/types.h>
#include <evenless/syscall.h>
#include <evl/syscall.h>
#include <linux/types.h>
#include <uapi/evenless/xbuf.h>
#include <uapi/evl/xbuf.h>
#ifdef __cplusplus
extern "C" {
......@@ -23,4 +23,4 @@ int evl_new_xbuf(size_t i_bufsz, size_t o_bufsz,
}
#endif
#endif /* _EVENLESS_XBUF_H */
#endif /* _EVL_XBUF_H */
......@@ -4,12 +4,12 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _LIB_EVENLESS_ARM_SYSCALL_H
#define _LIB_EVENLESS_ARM_SYSCALL_H
#ifndef _LIB_EVL_ARM_SYSCALL_H
#define _LIB_EVL_ARM_SYSCALL_H
#include <uapi/asm/dovetail.h>
#define evenless_syscall3(__nr, __a0, __a1, __a2) \
#define evl_syscall3(__nr, __a0, __a1, __a2) \
({ \
register unsigned long __asc __asm__("r7"); \
register unsigned long __res __asm__("r0"); \
......@@ -31,4 +31,4 @@
__res; \
})
#endif /* !_LIB_EVENLESS_ARM_SYSCALL_H */
#endif /* !_LIB_EVL_ARM_SYSCALL_H */
......@@ -4,19 +4,19 @@
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _LIB_EVENLESS_ARM64_SYSCALL_H
#define _LIB_EVENLESS_ARM64_SYSCALL_H
#ifndef _LIB_EVL_ARM64_SYSCALL_H
#define _LIB_EVL_ARM64_SYSCALL_H
#include <uapi/asm/evenless/syscall.h>
#include <uapi/asm/evl/syscall.h>
#define evenless_syscall3(__nr, __a0, __a1, __a2) \
#define evl_syscall3(__nr, __a0, __a1, __a2) \
({ \
register unsigned int __sc __asm__("w8"); \
register unsigned long __res __asm__("x0"); \
register unsigned long __x0 __asm__("x0"); \
register unsigned long __x1 __asm__("x1"); \
register unsigned long __x2 __asm__("x2"); \
__sc = (unsigned int)((__nr)|__EVENLESS_SYSCALL_BIT); \
__sc = (unsigned int)((__nr)|__EVL_SYSCALL_BIT); \
__x0 = (unsigned long)(__a0); \
__x1 = (unsigned long)(__a1); \
__x2 = (unsigned long)(__a2); \
......@@ -29,4 +29,4 @@
__res; \
})
#endif /* !_LIB_EVENLESS_ARM64_SYSCALL_H */
#endif /* !_LIB_EVL_ARM64_SYSCALL_H */
......@@ -10,9 +10,9 @@
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/timex.h>
#include <evenless/clock.h>
#include <evenless/thread.h>
#include <uapi/evenless/clock.h>
#include <evl/clock.h>
#include <evl/thread.h>
#include <uapi/evl/clock.h>
#include "internal.h"
int evl_mono_clockfd, evl_real_clockfd;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment