linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] *** Add a get_cpu() library ***
@ 2009-12-21 21:45 John Kacur
  2009-12-21 21:45 ` [PATCH 1/4] rt-tests: Makefile - Changes to unify and simplify the Makefile John Kacur
  2009-12-21 22:54 ` [PATCH 0/4] *** Add a get_cpu() library *** Clark Williams
  0 siblings, 2 replies; 10+ messages in thread
From: John Kacur @ 2009-12-21 21:45 UTC (permalink / raw)
  To: Clark Williams, Carsten Emde, Thomas Gleixner; +Cc: John Kacur, linux-rt-users

I have added a get_cpu() library which should just do the right thing for you
whether your system uses sched_getcpu() (the most common case), getcpu()
or the vsyscall version of getcpu().

I have tested on Fedora, RHEL5 both 32 and 64-bit versions which cover all of
the cases above. I would really appreciate more testing and reports on other
distributions. Of course comments and patches are also welcome.

While doing this I changed the Makefile quite extensively. I hope you will find
the changes simply and unify the Make process considerably. This could be
further improved too - for example by creating a build directory.

In addition to the changes below, Clark has fixed the odd CRLF issue, and
has a patch queued-up from Carsten that was missed last time.

Clark, you can pull the following changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/jkacur/rt-tests.git
branch: rt-tests-dev

Thanks

Carsten Emde (1):
  Completely remove VERSION_STRING until we have a better solution.

John Kacur (3):
  rt-tests: Makefile - Changes to unify and simplify the Makefile
  rt-tests: Add a get_cpu() function to the library.
  rt-tests: Clean-up - protect rt-utils.h

 Makefile                              |   53 ++++++++++++++++++++------------
 src/backfire/backfire.c               |    2 +-
 src/backfire/sendme.c                 |    9 +++--
 src/cyclictest/cyclictest.c           |    1 -
 src/lib/rt-get_cpu.c                  |   25 +++++++++++++++
 src/lib/rt-get_cpu.h                  |   46 ++++++++++++++++++++++++++++
 src/lib/rt-utils.h                    |    5 +++
 src/pi_tests/pi_stress.c              |    7 +---
 src/ptsematest/ptsematest.c           |   12 +++----
 src/rt-migrate-test/rt-migrate-test.c |    2 +-
 src/sigwaittest/sigwaittest.c         |    8 +++--
 src/svsematest/svsematest.c           |   31 ++++---------------
 12 files changed, 135 insertions(+), 66 deletions(-)
 create mode 100644 src/lib/rt-get_cpu.c
 create mode 100644 src/lib/rt-get_cpu.h


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-12-21 23:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21 21:45 [PATCH 0/4] *** Add a get_cpu() library *** John Kacur
2009-12-21 21:45 ` [PATCH 1/4] rt-tests: Makefile - Changes to unify and simplify the Makefile John Kacur
2009-12-21 21:45   ` [PATCH 2/4] rt-tests: Add a get_cpu() function to the library John Kacur
2009-12-21 21:45     ` [PATCH 3/4] rt-tests: Clean-up - protect rt-utils.h John Kacur
2009-12-21 21:45       ` [PATCH 4/4] Completely remove VERSION_STRING until we have a better solution John Kacur
2009-12-21 23:09       ` [PATCH 3/4] rt-tests: Clean-up - protect rt-utils.h Carsten Emde
2009-12-21 23:19         ` Clark Williams
2009-12-21 23:43           ` Carsten Emde
2009-12-21 23:41         ` John Kacur
2009-12-21 22:54 ` [PATCH 0/4] *** Add a get_cpu() library *** Clark Williams

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).