All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH V3] controllers/pids: Add new testcases
Date: Wed, 25 Nov 2015 12:20:47 +0300	[thread overview]
Message-ID: <56557D6F.80906@oracle.com> (raw)
In-Reply-To: <1448026487-6079-1-git-send-email-chnyda@suse.com>

Hi,
On 11/20/2015 04:34 PM, Cedric Hnyda wrote:
> Created new testcases to test the pids controller
> which is used to stop any new tasks from being fork()'d
> after a certain limit is reached.
>
> Signed-off-by: Cedric Hnyda <chnyda@suse.com>
...
> index 0000000..6500363
> --- /dev/null
> +++ b/testcases/kernel/controllers/pids/Makefile
> @@ -0,0 +1,28 @@
> +#
> +#    Copyright (C) 2015, SUSE
> +#
> +#    This program is free software; you can redistribute it and/or modify
> +#    it under the terms of the GNU General Public License as published by
> +#    the Free Software Foundation; either version 2 of the License, or
> +#    (at your option) any later version.
> +#
> +#    This program is distributed in the hope that it will be useful,
> +#    but WITHOUT ANY WARRANTY; without even the implied warranty of
> +#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +#    GNU General Public License for more details.
> +#
> +#    You should have received a copy of the GNU General Public License along
> +#    with this program; if not, write to the Free Software Foundation, Inc.,
> +#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
You could write the last paragraph as follows:

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

or, I guess, we may skip it. The main reason - the address can be changed.

> +
> +	while (1) {
> +	}

Is it necessary to add a busy loop to completely load CPU? If we only 
wait, I would add a sleep, something like

while (1)
      usleep(10);


Thanks,
Alexey

  reply	other threads:[~2015-11-25  9:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-20 13:34 [LTP] [PATCH V3] controllers/pids: Add new testcases Cedric Hnyda
2015-11-25  9:20 ` Alexey Kodanev [this message]
2015-11-25 10:34   ` Cedric Hnyda
2015-11-25 10:47     ` Cyril Hrubis
2015-11-25 11:13 ` Cyril Hrubis

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=56557D6F.80906@oracle.com \
    --to=alexey.kodanev@oracle.com \
    --cc=ltp@lists.linux.it \
    /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 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.