From: John Kacur <jkacur@redhat.com>
To: rt-users <linux-rt-users@vger.kernel.org>
Cc: lkml <linux-kernel@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
Clark Williams <williams@redhat.com>,
John Kacur <jkacur@redhat.com>
Subject: [PATCH 3/3] rt-tests: Add cyclicdeadline and deadline_test to the Make system
Date: Thu, 23 Jun 2016 14:11:51 +0200 [thread overview]
Message-ID: <1466683911-10994-4-git-send-email-jkacur@redhat.com> (raw)
In-Reply-To: <1466683911-10994-1-git-send-email-jkacur@redhat.com>
- Add cyclicdeadline and deadline_test to the Makefile
- Conditionally define _GNU_SOURCE in the new programs
- Add the new programs to the .gitignore file
Signed-off-by: John Kacur <jkacur@redhat.com>
---
.gitignore | 2 ++
Makefile | 11 ++++++++++-
src/sched_deadline/cyclicdeadline.c | 2 ++
src/sched_deadline/deadline_test.c | 2 ++
4 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index ceee8bfb6e9a..b8884d547940 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,6 +30,8 @@ SRPMS
/pip_stress
/hackbench
/pmqtest
+/cyclicdeadline
+/deadline_test
rt-tests.spec
tags
diff --git a/Makefile b/Makefile
index d60282e05931..8c0294d197e4 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,9 @@ sources = cyclictest.c \
sendme.c \
signaltest.c \
sigwaittest.c \
- svsematest.c
+ svsematest.c \
+ cyclicdeadline.c \
+ deadline_test.c
TARGETS = $(sources:.c=)
LIBS = -lrt -lpthread
@@ -83,6 +85,7 @@ VPATH += src/pmqtest:
VPATH += src/backfire:
VPATH += src/lib:
VPATH += src/hackbench:
+VPATH += src/sched_deadline:
$(OBJDIR)/%.o: %.c | $(OBJDIR)
$(CC) -D VERSION=$(VERSION) -c $< $(CFLAGS) $(CPPFLAGS) -o $@
@@ -103,6 +106,12 @@ $(OBJDIR):
cyclictest: $(OBJDIR)/cyclictest.o $(OBJDIR)/librttest.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB) $(NUMA_LIBS)
+cyclicdeadline: $(OBJDIR)/cyclicdeadline.o $(OBJDIR)/librttest.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB)
+
+deadline_test: $(OBJDIR)/deadline_test.o $(OBJDIR)/librttest.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB)
+
signaltest: $(OBJDIR)/signaltest.o $(OBJDIR)/librttest.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB)
diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c
index 9c50456f7419..f530488545e0 100644
--- a/src/sched_deadline/cyclicdeadline.c
+++ b/src/sched_deadline/cyclicdeadline.c
@@ -1,4 +1,6 @@
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <pthread.h>
#include <stdarg.h>
#include <stdlib.h>
diff --git a/src/sched_deadline/deadline_test.c b/src/sched_deadline/deadline_test.c
index 8a813c494520..2794730febc4 100644
--- a/src/sched_deadline/deadline_test.c
+++ b/src/sched_deadline/deadline_test.c
@@ -29,7 +29,9 @@
* Look for "simple_test"
*
*/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <pthread.h>
#include <stdarg.h>
#include <stdlib.h>
--
2.4.11
next prev parent reply other threads:[~2016-06-23 12:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-23 12:11 [PATCH 0/3] rt-tests: sched_deadline tests John Kacur
2016-06-23 12:11 ` [PATCH 1/3] rt-tests: Makefile, change version to 1.1 John Kacur
2016-06-23 12:11 ` [PATCH 2/3] rt-tests: Add cyclicdeadline and deadline_test John Kacur
2016-06-23 12:11 ` John Kacur [this message]
2016-06-23 21:47 ` [PATCH 3/3] rt-tests: Add cyclicdeadline and deadline_test to the Make system Steven Rostedt
2016-06-24 11:40 ` John Kacur
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=1466683911-10994-4-git-send-email-jkacur@redhat.com \
--to=jkacur@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=rostedt@goodmis.org \
--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 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.