From 10c7a45af7085b0442adc495112fed3b9d0f1d3e Mon Sep 17 00:00:00 2001 From: "Maxin B. John" Date: Tue, 11 Feb 2014 16:56:34 +0100 Subject: rt-tests: version bump to 0.87 - Drop PR and INC_PR. - license remains the same with cyclictest.c checksum change Signed-off-by: Maxin B. John Signed-off-by: Richard Purdie --- ...st-finish-removal-of-1-second-first-loops.patch | 61 ---------------------- meta/recipes-rt/rt-tests/rt-tests.inc | 9 +--- meta/recipes-rt/rt-tests/rt-tests_0.85.bb | 22 -------- meta/recipes-rt/rt-tests/rt-tests_0.87.bb | 20 +++++++ 4 files changed, 22 insertions(+), 90 deletions(-) delete mode 100644 meta/recipes-rt/rt-tests/files/cyclictest-finish-removal-of-1-second-first-loops.patch delete mode 100644 meta/recipes-rt/rt-tests/rt-tests_0.85.bb create mode 100644 meta/recipes-rt/rt-tests/rt-tests_0.87.bb diff --git a/meta/recipes-rt/rt-tests/files/cyclictest-finish-removal-of-1-second-first-loops.patch b/meta/recipes-rt/rt-tests/files/cyclictest-finish-removal-of-1-second-first-loops.patch deleted file mode 100644 index a9cc0e34ef..0000000000 --- a/meta/recipes-rt/rt-tests/files/cyclictest-finish-removal-of-1-second-first-loops.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 8959451a8ec5dc83dcb2dba6701abe8bf419e12c Mon Sep 17 00:00:00 2001 -Message-Id: <8959451a8ec5dc83dcb2dba6701abe8bf419e12c.1358783585.git.Jim.Somerville@windriver.com> -From: Jim Somerville -Date: Mon, 21 Jan 2013 10:50:18 -0500 -Subject: [PATCH 1/1] cyclictest: finish removal of 1 second first loops - -Observation: -Huge latencies reported close to 1 second when certain options -are used in cyclictest. - -Problem: -[ commit da4956cbcaf7945554f30e4d3a9be09b1431b19a - use interval on first loop instead of 1 second ] -removed the 1 second first timing loop out of the main path -in cyclictest but left it in two other paths, namely the ones -triggered by these two options: --r --relative use relative timer instead of absolute --s --system use sys_nanosleep and sys_setitimer -This causes huge latencies of close to 1 second to be reported -by cyclictest with certain uses of those two options. - -Fix: -Extend the original commit to remove the 1 second hardcoded -timer values from the RELTIME and ITIMER options. Use the -the actual interval instead. - -Upstream-Status: Accepted -[ https://git.kernel.org/cgit/linux/kernel/git/clrkwllms/rt-tests.git/commit/?h=work&id=1b92da30837e9552aba209cbdf938877f0fd3bbf ] - -Signed-off-by: Jim Somerville ---- - src/cyclictest/cyclictest.c | 6 ++---- - 1 files changed, 2 insertions(+), 4 deletions(-) - -diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c -index 11b6cea..8487409 100644 ---- a/src/cyclictest/cyclictest.c -+++ b/src/cyclictest/cyclictest.c -@@ -741,17 +741,15 @@ void *timerthread(void *param) - if (par->timermode == TIMER_ABSTIME) - tspec.it_value = next; - else { -- tspec.it_value.tv_nsec = 0; -- tspec.it_value.tv_sec = 1; -+ tspec.it_value = interval; - } - timer_settime(timer, par->timermode, &tspec, NULL); - } - - if (par->mode == MODE_SYS_ITIMER) { -- itimer.it_value.tv_sec = 1; -- itimer.it_value.tv_usec = 0; - itimer.it_interval.tv_sec = interval.tv_sec; - itimer.it_interval.tv_usec = interval.tv_nsec / 1000; -+ itimer.it_value = itimer.it_interval; - setitimer (ITIMER_REAL, &itimer, NULL); - } - --- -1.7.4.1 - diff --git a/meta/recipes-rt/rt-tests/rt-tests.inc b/meta/recipes-rt/rt-tests/rt-tests.inc index 91e5028eda..81f4f2b109 100644 --- a/meta/recipes-rt/rt-tests/rt-tests.inc +++ b/meta/recipes-rt/rt-tests/rt-tests.inc @@ -1,18 +1,13 @@ -# Version v0.85 -SRCREV = "210e625227d21e0b589b8eaa36cd81f1cb981819" - -PR = "r0" +# Version v0.87 +SRCREV = "b0413ae5ed802004fb0c4af74a1757381fd2b91f" SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git \ file://0001-rt-tests-Allow-for-user-specified-PYLIB.patch \ file://0002-rt-tests-Break-out-install_hwlatdetect.patch \ file://added-missing-dependencies.patch \ - file://cyclictest-finish-removal-of-1-second-first-loops.patch \ file://hackbench-fix-error-check.patch \ " -INC_PR = "r2" - S = "${WORKDIR}/git" # need to append rt-tests' default CFLAGS to ours diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.85.bb b/meta/recipes-rt/rt-tests/rt-tests_0.85.bb deleted file mode 100644 index ae61092326..0000000000 --- a/meta/recipes-rt/rt-tests/rt-tests_0.85.bb +++ /dev/null @@ -1,22 +0,0 @@ -SUMMARY = "Real-Time preemption testcases" -HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest" -SECTION = "tests" -DEPENDS = "linux-libc-headers virtual/libc" -LICENSE = "GPLv2 & GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ - file://src/cyclictest/cyclictest.c;beginline=7;endline=9;md5=ce162fe491d19d2ec67dff6dbc938d50 \ - file://src/pi_tests/pi_stress.c;beginline=6;endline=19;md5=bd426a634a43ec612e9fbf125dfcc949" - -require rt-tests.inc - -PR = "${INC_PR}.0" - -# Do not install hwlatdetect -EXTRA_OEMAKE += "PYLIB=''" - -do_install() { - oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ - INCLUDEDIR=${includedir} -} - -FILES_${PN} += "${prefix}/src/backfire" diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.87.bb b/meta/recipes-rt/rt-tests/rt-tests_0.87.bb new file mode 100644 index 0000000000..df646de8ed --- /dev/null +++ b/meta/recipes-rt/rt-tests/rt-tests_0.87.bb @@ -0,0 +1,20 @@ +SUMMARY = "Real-Time preemption testcases" +HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest" +SECTION = "tests" +DEPENDS = "linux-libc-headers virtual/libc" +LICENSE = "GPLv2 & GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ + file://src/cyclictest/cyclictest.c;beginline=7;endline=9;md5=e768b8da44555fe63f65e5c497844cb5 \ + file://src/pi_tests/pi_stress.c;beginline=6;endline=19;md5=bd426a634a43ec612e9fbf125dfcc949" + +require rt-tests.inc + +# Do not install hwlatdetect +EXTRA_OEMAKE += "PYLIB=''" + +do_install() { + oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ + INCLUDEDIR=${includedir} +} + +FILES_${PN} += "${prefix}/src/backfire" -- cgit 1.2.3-korg