From: John Kacur <jkacur@redhat.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: linux-rt-users@vger.kernel.org, Clark Williams <williams@redhat.com>
Subject: Re: [PATCH] rename pip to pip_stress as pip is too general
Date: Mon, 1 Mar 2010 20:40:42 +0100 [thread overview]
Message-ID: <520f0cf11003011140k71a490a7me7d808bad92c1cd8@mail.gmail.com> (raw)
In-Reply-To: <1267462275-14222-1-git-send-email-u.kleine-koenig@pengutronix.de>
2010/3/1 Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
> The command name is already taken by a perl script working with CPAN
> and a Python package installer.
>
> While at it remove trailing whitespace from three lines in
> src/pi_tests/pip_stress.c.
>
> Closes: http://bugs.debian.org/572104
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> Hiho,
>
> changes since last submission are:
>
> - remove trailing whitespaces
> - different bug number
>
> Best regards
> Uwe
> .gitignore | 2 +-
> Makefile | 4 ++--
> src/include/{pip.h => pip_stress.h} | 7 +++----
> src/pi_tests/{pip.c => pip_stress.c} | 10 +++++-----
> 4 files changed, 11 insertions(+), 12 deletions(-)
> rename src/include/{pip.h => pip_stress.h} (93%)
> rename src/pi_tests/{pip.c => pip_stress.c} (98%)
>
> diff --git a/.gitignore b/.gitignore
> index a06031c..0d77a66 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -23,4 +23,4 @@ ptsematest
> sendme
> sigwaittest
> svsematest
> -pip
> +pip_stress
> diff --git a/Makefile b/Makefile
> index 5bb8774..52f8d64 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1,7 +1,7 @@
> VERSION_STRING = 0.66
>
> sources = cyclictest.c signaltest.c pi_stress.c rt-migrate-test.c \
> - ptsematest.c sigwaittest.c svsematest.c sendme.c pip.c
> + ptsematest.c sigwaittest.c svsematest.c sendme.c pip_stress.c
>
> TARGETS = $(sources:.c=)
>
> @@ -79,7 +79,7 @@ svsematest: svsematest.o rt-utils.o rt-get_cpu.o
> sendme: sendme.o rt-utils.o rt-get_cpu.o
> $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
>
> -pip: pip.o error.o rt-utils.o
> +pip_stress: pip_stress.o error.o rt-utils.o
> $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
>
> CLEANUP = $(TARGETS) *.o .depend *.*~ *.orig *.rej rt-tests.spec *.d
> diff --git a/src/include/pip.h b/src/include/pip_stress.h
> similarity index 93%
> rename from src/include/pip.h
> rename to src/include/pip_stress.h
> index b2068be..8ed2452 100644
> --- a/src/include/pip.h
> +++ b/src/include/pip_stress.h
> @@ -1,5 +1,5 @@
> -#ifndef __PIP_H
> -#define __PIP_H
> +#ifndef __PIP_STRESS_H
> +#define __PIP_STRESS_H
>
> #include <stdio.h>
> #include <stdlib.h>
> @@ -37,5 +37,4 @@ int get_rt_prio(pid_t pid);
> #define PROTRW PROT_READ|PROT_WRITE
> #define MMAP_FLAGS MAP_SHARED|MAP_ANONYMOUS
>
> -#endif /* __PIP_H */
> -
> +#endif /* __PIP_STRESS_H */
> diff --git a/src/pi_tests/pip.c b/src/pi_tests/pip_stress.c
> similarity index 98%
> rename from src/pi_tests/pip.c
> rename to src/pi_tests/pip_stress.c
> index 085908b..2b42b8f 100644
> --- a/src/pi_tests/pip.c
> +++ b/src/pi_tests/pip_stress.c
> @@ -1,6 +1,6 @@
> /*
> - Pip - Priority Inheritance with processes
> -
> + Pip stress - Priority Inheritance with processes
> +
> Copyright (C) 2009, John Kacur <jkacur@redhat.com>
>
> This program is free software: you can redistribute it and/or modify
> @@ -54,7 +54,7 @@
> * scheduling priorities.
> */
>
> -#include "pip.h"
> +#include "pip_stress.h"
>
> pthread_mutex_t *resource;
>
> @@ -107,7 +107,7 @@ int main(void)
> set_rt_prio(0, prio_min, policy);
>
> /* We restrict this program to the first cpu, inorder to increase
> - * the likelihood of a priority inversion */
> + * the likelihood of a priority inversion */
> CPU_ZERO(setp);
> CPU_SET(0, setp);
> res = sched_setaffinity(0, sizeof(set), setp);
> @@ -311,7 +311,7 @@ void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol, int policy)
> Pthread_mutexattr_init(&attr);
> Pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);
> Pthread_mutexattr_setprotocol(&attr, protocol);
> -
> +
> Pthread_mutex_init(mutex, &attr);
> }
>
> --
> 1.7.0
I have no problem with this rename.
Signed-off-by: John Kacur <jkacur@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2010-03-01 19:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 20:24 [PATCH] rename pip to pip_stress as pip is too general Uwe Kleine-König
2010-03-01 16:51 ` Uwe Kleine-König
2010-03-01 19:40 ` John Kacur [this message]
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=520f0cf11003011140k71a490a7me7d808bad92c1cd8@mail.gmail.com \
--to=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
--cc=williams@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).