All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [meta-realtime] Add rt-app and define core-image-realtime
@ 2013-03-14 19:52 Insop Song
  2013-03-14 20:56 ` Bruce Ashfield
  2013-03-14 21:14 ` Bruce Ashfield
  0 siblings, 2 replies; 4+ messages in thread
From: Insop Song @ 2013-03-14 19:52 UTC (permalink / raw)
  To: Bruce Ashfield
  Cc: Yocto Project Discussion, Darren Hart,
	Development list for the linux-yocto repositories

[-- Attachment #1: Type: text/plain, Size: 4204 bytes --]

Hi Bruce,

This is for adding rt-app, please let me know what you think.
For next patch, I will add schedtool_dl

Regards,

Insop

----------------------------------------------------------------------------------

- "rt-app" is a test application that starts multiple periodic threads
  in order to simulate a real-time periodic load

  - run example

  root@qemux86:~# rt-app -t 100000:35000:d -D 1
  [rt-app] <notice> [0] Using SCHED_DEADLINE policy:
  [rt-app] <notice> [0] starting thread with period: 100000, exec:
  35000,deadline: 100000, priority: 10
  [rt-app] <notice> [0] Locking pages in memory
  deadline	dur.	slack	Budget	Used Budget
  0	100000	35000	35000	64705	305724113	305759126
  305824105	35013	64979
  0	100000	35000	35000	165100	305824508	305859531
  ....
  0	100000	35000	35000	864955	306524363	306559381
  306624105	35019	64724
  0	100000	35000	35000	965099	306624507	306659526
  306724105	35019	64578
  [rt-app] <notice> [0] Exiting.
---
 recipes-extended/images/core-image-realtime.bb     |   12 +++++++++
 ...adline-as-a-default-to-go-around-yocto-bu.patch |   26 ++++++++++++++++++
 recipes-tools/rt-app/rt-app.bb                     |   28 ++++++++++++++++++++
 3 files changed, 66 insertions(+)
 create mode 100644 recipes-extended/images/core-image-realtime.bb
 create mode 100644
recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
 create mode 100644 recipes-tools/rt-app/rt-app.bb

diff --git a/recipes-extended/images/core-image-realtime.bb
b/recipes-extended/images/core-image-realtime.bb
new file mode 100644
index 0000000..624aacf
--- /dev/null
+++ b/recipes-extended/images/core-image-realtime.bb
@@ -0,0 +1,12 @@
+require recipes-core/images/core-image-minimal-dev.bb
+
+DEPENDS = "linux-yocto"
+
+IMAGE_FEATURES += "package-management ssh-server-dropbear"
+EXTRA_IMAGE_FEATURES = "tools-debug debug-tweaks tools-profile dbg-pkgs"
+
+IMAGE_INSTALL = "\
+	${CORE_IMAGE_BASE_INSTALL} \
+	rt-app \
+	libgcc \
+	"
diff --git a/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
b/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
new file mode 100644
index 0000000..a697e89
--- /dev/null
+++ b/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
@@ -0,0 +1,26 @@
+From 041b2b65889c44c47f90313c5bf9ce61effa96df Mon Sep 17 00:00:00 2001
+From: Insop Song <insop.song@gmail.com>
+Date: Sat, 9 Mar 2013 01:23:24 -0800
+Subject: [PATCH] set "--with-deadline" as a default to go around yocto build
+ error on deadline enabled
+
+---
+ configure.ac |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index a5e2990..64e57e4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -34,7 +34,7 @@ AC_ARG_WITH([deadline],
+ 	[AS_HELP_STRING([--with-deadline],
+          [Add support for SCHED_DEADLINE])],
+ 	[],
+-	[with_deadline=no])
++	[with_deadline=yes])
+
+ AS_IF([test "x$with_deadline" != xno],
+ 	[AC_DEFINE([DLSCHED], [1], [Define if you have SCHED_DEADLINE support])
+--
+1.7.9.5
+
diff --git a/recipes-tools/rt-app/rt-app.bb b/recipes-tools/rt-app/rt-app.bb
new file mode 100644
index 0000000..acce437
--- /dev/null
+++ b/recipes-tools/rt-app/rt-app.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "rt-app is a test application that starts multiple
periodic threads in order to simulate a real-time periodic load"
+SECTION = "devel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM =
"file://COPYING;endline=339;md5=e43fc16fccd8519fba405f0a0ff6e8a3"
+PR = "r1"
+
+SRCREV = "e81cbe9f76ee298feded17bb7455d4deb2fb32af"
+
+SRC_URI = "git://github.com/gbagnoli/rt-app.git \
+	file://0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch \
+	"
+
+S = "${WORKDIR}/git"
+
+inherit autotools gettext pkgconfig
+
+do_configure_prepend() {
+	autoreconf --install --verbose --force
+}
+
+do_install() {
+     	install -d ${D}${bindir}
+     	install -m 0755 src/rt-app ${D}${bindir}
+}
+
+FILES_{PN} = "${bindir}/rt-app"
+
+PARALLEL_MAKE = ""
-- 
1.7.9.5

[-- Attachment #2: 0001-Add-rt-app-and-define-core-image-realtime.patch --]
[-- Type: application/octet-stream, Size: 4072 bytes --]

From 45205d30fabfdbd76419e1e476bbe401238f3ac8 Mon Sep 17 00:00:00 2001
From: Insop Song <insop.song@gmail.com>
Date: Thu, 14 Mar 2013 12:46:46 -0700
Subject: [PATCH] Add rt-app and define core-image-realtime

- "rt-app" is a test application that starts multiple periodic threads
  in order to simulate a real-time periodic load

  - run example

  root@qemux86:~# rt-app -t 100000:35000:d -D 1
  [rt-app] <notice> [0] Using SCHED_DEADLINE policy:
  [rt-app] <notice> [0] starting thread with period: 100000, exec:
  35000,deadline: 100000, priority: 10
  [rt-app] <notice> [0] Locking pages in memory
  deadline	dur.	slack	Budget	Used Budget
  0	100000	35000	35000	64705	305724113	305759126
  305824105	35013	64979
  0	100000	35000	35000	165100	305824508	305859531
  ....
  0	100000	35000	35000	864955	306524363	306559381
  306624105	35019	64724
  0	100000	35000	35000	965099	306624507	306659526
  306724105	35019	64578
  [rt-app] <notice> [0] Exiting.
---
 recipes-extended/images/core-image-realtime.bb     |   12 +++++++++
 ...adline-as-a-default-to-go-around-yocto-bu.patch |   26 ++++++++++++++++++
 recipes-tools/rt-app/rt-app.bb                     |   28 ++++++++++++++++++++
 3 files changed, 66 insertions(+)
 create mode 100644 recipes-extended/images/core-image-realtime.bb
 create mode 100644 recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
 create mode 100644 recipes-tools/rt-app/rt-app.bb

diff --git a/recipes-extended/images/core-image-realtime.bb b/recipes-extended/images/core-image-realtime.bb
new file mode 100644
index 0000000..624aacf
--- /dev/null
+++ b/recipes-extended/images/core-image-realtime.bb
@@ -0,0 +1,12 @@
+require recipes-core/images/core-image-minimal-dev.bb
+
+DEPENDS = "linux-yocto"
+
+IMAGE_FEATURES += "package-management ssh-server-dropbear"
+EXTRA_IMAGE_FEATURES = "tools-debug debug-tweaks tools-profile dbg-pkgs"
+
+IMAGE_INSTALL = "\
+	${CORE_IMAGE_BASE_INSTALL} \
+	rt-app \
+	libgcc \
+	"
diff --git a/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch b/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
new file mode 100644
index 0000000..a697e89
--- /dev/null
+++ b/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
@@ -0,0 +1,26 @@
+From 041b2b65889c44c47f90313c5bf9ce61effa96df Mon Sep 17 00:00:00 2001
+From: Insop Song <insop.song@gmail.com>
+Date: Sat, 9 Mar 2013 01:23:24 -0800
+Subject: [PATCH] set "--with-deadline" as a default to go around yocto build
+ error on deadline enabled
+
+---
+ configure.ac |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index a5e2990..64e57e4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -34,7 +34,7 @@ AC_ARG_WITH([deadline],
+ 	[AS_HELP_STRING([--with-deadline], 
+          [Add support for SCHED_DEADLINE])],
+ 	[],
+-	[with_deadline=no])
++	[with_deadline=yes])
+ 
+ AS_IF([test "x$with_deadline" != xno],
+ 	[AC_DEFINE([DLSCHED], [1], [Define if you have SCHED_DEADLINE support])
+-- 
+1.7.9.5
+
diff --git a/recipes-tools/rt-app/rt-app.bb b/recipes-tools/rt-app/rt-app.bb
new file mode 100644
index 0000000..acce437
--- /dev/null
+++ b/recipes-tools/rt-app/rt-app.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "rt-app is a test application that starts multiple periodic threads in order to simulate a real-time periodic load"
+SECTION = "devel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;endline=339;md5=e43fc16fccd8519fba405f0a0ff6e8a3"
+PR = "r1"
+
+SRCREV = "e81cbe9f76ee298feded17bb7455d4deb2fb32af"
+
+SRC_URI = "git://github.com/gbagnoli/rt-app.git \
+	file://0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch \
+	"
+
+S = "${WORKDIR}/git"
+
+inherit autotools gettext pkgconfig
+
+do_configure_prepend() {
+	autoreconf --install --verbose --force
+}
+
+do_install() {
+     	install -d ${D}${bindir}
+     	install -m 0755 src/rt-app ${D}${bindir}
+}
+
+FILES_{PN} = "${bindir}/rt-app" 
+
+PARALLEL_MAKE = ""
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-14 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-14 19:52 [PATCH] [meta-realtime] Add rt-app and define core-image-realtime Insop Song
2013-03-14 20:56 ` Bruce Ashfield
2013-03-14 21:37   ` Insop Song
2013-03-14 21:14 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.