public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Mats Liljegren <mats.liljegren@enea.com>
To: Mats Liljegren <mats.liljegren@enea.com>
Cc: ltp-list@lists.sourceforge.net, Kevin Hilman <khilman@linaro.org>,
	Frederic Weisbecker <fweisbec@gmail.com>
Subject: Re: [LTP] [PATCH v3] partrt_nohz_full: Introducing a new test case
Date: Wed, 28 May 2014 18:45:34 +0200	[thread overview]
Message-ID: <20140528184534.56c465fc@mats-desktop> (raw)
In-Reply-To: <1399990269-3383-1-git-send-email-mats.liljegren@enea.com>

Ping?

Regards
Mats Liljegren

On Tue, 13 May 2014 16:11:08 +0200
Mats Liljegren <mats.liljegren@enea.com> wrote:

> Changes from version 2:
> - Added "git submodule init" to README
> - Scrapped "verbose" command line parameter entirely, it wasn't
> implemented anyway
> - asprintf() replaced with fprintf() in launch_child()
> - Introduced cleanup function parameter to assert_exit_status() and
> shell(), making cleanup_entered variable in cleanup() obsolete
> - Documented 32 CPU limitation in README. The test code itself has
> been updated to handle all configured CPUs, but the partrt tool does
> not.
> - Simplified tool_available() by using tst_get_path()
> - Removed unnecessary exit() and return statements
> - Removed rand() to a simple "++" operation as work generator in the
> RT partition. Seemed like rand() could cause ticks for some reason.
> - Use SAFE_POPEN() instead of popen().
> - Use a 2 second sleep before counting ticks, as a primitive way of
> emptying deferred work in the kernel.
> 
> Changes from version 1:
> - Style fixes proposed by checkpatch.pl script
> - Have rt-tools as a git sub-module instead of requiring it to be
> cloned manually, builds can still be done without checking out
> rt-tools but you can't run partrt_nohz_full test successfully then
> - Check if cpuset supported by kernel, TCONF error if not
> - Check if rt-tools has been checked out before build, TCONF error if
> not
> - Simplified determined_nohz_mask()
> - Use parse_opts() instead of getopt_long() when parsing command line
> options
> - Moved partrt in SUBDIRS so that it is alphabetically correct in
>   testcases/kernel/Makefile
> - launch_child will now handle moving child thread to the right
> CPUSET partition and CPU, which also eliminates the need for
> synchronization between parent and child
> - Children will no longer be able to cause any tst_* calls
> - Removed shell_silent(), above changes made it obsolete
> - Removed base parameter to str_to_ulong(), will always be 0 now
> - setup_children() is now called from main() rather than test()
> function.
> - Macros defining file names
> - Use C code for moving children to the right place instead of
> external scripts. Using script invocation from RT partition using NFS
> mounted file system will most likely invoke ticks which can make the
> test case fail
> - Added standard test loop in case reptitions are requested
> - Removed atomic operation for cleanup recursion detection, since it
> is only trying to protect recursive invocations from itself
> - Using timerfd to wait for timeout instead of busy-waiting
> - Removed pid_popen(), pid_wait() and shell_int()
> - assert_exit_status() now also checks if status is -1, i.e. command
> failed
> - Moved _GNU_SOURCE macro from Makefile to C file
> - Removed -Werror from Makefile
> - Removed err(), fail(), pass() and info() macros
> - Replaced usage of READ and WRITE macros with STDIN_FILENO and
> STDOUT_FILENO, READ and WRITE macros removed
> - Removed some unnecessary comments
> - setup() is renamed to setup_children()
> - Informational message are made mandatory, verbose only affects
> output from sub-commands, partrt in particular
> - Test case name is now partrt_nohz_full
> 
> partrt_nohz_full is a test case which checks whether nohz_full mode
> can achieve 0Hz ticks (if relevant extra patches has been applied) or
> 1Hz ticks (mainline kernel).
> 
> Appropriate kernel configurations and kernel boot parameters needed
> are documented in testcases/kernel/partrt/README.
> 
> Mats Liljegren (1):
>   partrt_nohz_full: Introducing a new test case
> 
>  .gitmodules                                        |    3 +
>  README.kernel_config                               |    6 +
>  runtest/partrt_nohz_full                           |    1 +
>  testcases/kernel/Makefile                          |    1 +
>  testcases/kernel/partrt/Makefile                   |   17 +
>  testcases/kernel/partrt/README                     |   66 +++
>  testcases/kernel/partrt/nohz_full/.gitignore       |    1 +
>  testcases/kernel/partrt/nohz_full/Makefile         |   23 +
>  .../partrt/nohz_full/test_partrt_nohz_full.c       |  593
> ++++++++++++++++++++
> utils/.gitignore                                   |    3 +
> utils/Makefile                                     |    7 +
> utils/rt-tools                                     |    1 + 12 files
> changed, 722 insertions(+) create mode 100644 runtest/partrt_nohz_full
>  create mode 100644 testcases/kernel/partrt/Makefile
>  create mode 100644 testcases/kernel/partrt/README
>  create mode 100644 testcases/kernel/partrt/nohz_full/.gitignore
>  create mode 100644 testcases/kernel/partrt/nohz_full/Makefile
>  create mode 100644
> testcases/kernel/partrt/nohz_full/test_partrt_nohz_full.c create mode
> 160000 utils/rt-tools
> 


------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  parent reply	other threads:[~2014-05-28 16:46 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-10 13:50 [LTP] Testing absence of ticks with nohz_full Mats Liljegren
2014-03-10 14:04 ` chrubis
2014-03-10 15:17 ` Frederic Weisbecker
2014-03-10 15:27   ` Steven Rostedt
2014-03-10 15:33     ` Frederic Weisbecker
2014-03-11 10:34   ` Mats Liljegren
2014-03-11 23:31     ` Steven Rostedt
2014-03-13 22:10 ` Kevin Hilman
2014-03-17 16:35   ` Mats Liljegren
2014-04-16 15:48     ` [LTP] [RFC][PATCH] partrt_nohz_full: Introducing a new test case Mats Liljegren
2014-04-16 15:48       ` Mats Liljegren
2014-04-22 15:47         ` chrubis
     [not found]           ` <20140423124410.29874232@mats-desktop>
2014-04-23 11:34             ` chrubis
     [not found]           ` <20140424105218.5cd2b5bf@mats-desktop>
2014-04-24  9:06             ` chrubis
     [not found]               ` <20140424140358.63dac752@mats-desktop>
2014-04-24 12:35                 ` chrubis
2014-04-22 14:07       ` chrubis
     [not found]         ` <20140423084101.536f03f0@mats-desktop>
2014-04-23 10:24           ` chrubis
2014-04-28 15:06       ` [LTP] [PATCH v2] " Mats Liljegren
2014-04-28 15:06         ` [LTP] [PATCH] " Mats Liljegren
2014-05-06 16:20           ` chrubis
     [not found]             ` <20140507132016.40361a0a@mats-desktop>
2014-05-07 12:17               ` chrubis
2014-05-13 14:11         ` [LTP] [PATCH v3] " Mats Liljegren
2014-05-13 14:11           ` Mats Liljegren
2014-06-02 17:17             ` chrubis
     [not found]               ` <20140603104018.3b0cba6f@mats-desktop>
2014-06-03 11:31                 ` chrubis
     [not found]                 ` <20141030171737.3eb800f1@mats-desktop>
2014-11-26 13:40                   ` Cyril Hrubis
2014-05-28 16:45           ` Mats Liljegren [this message]
2014-05-29 12:21             ` chrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140528184534.56c465fc@mats-desktop \
    --to=mats.liljegren@enea.com \
    --cc=fweisbec@gmail.com \
    --cc=khilman@linaro.org \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox