linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] cyclictest: Restore CPU affinity for non-NUMA builds
@ 2014-03-25 23:05 Gary S. Robertson
  2014-03-25 23:05 ` [PATCH 1/2] Restore CPU affinity function " Gary S. Robertson
  2014-03-25 23:05 ` [PATCH 2/2] Don't offer --numa option when unavailable Gary S. Robertson
  0 siblings, 2 replies; 3+ messages in thread
From: Gary S. Robertson @ 2014-03-25 23:05 UTC (permalink / raw)
  To: clark.williams, linux-rt-users; +Cc: Gary S. Robertson

From: "Gary S. Robertson" <gary.robertson@linaro.org>

These patches restore the ability to use the legacy CPU affinity functionality in cyclictest when built without NUMA support.  When cyclictest was patched to add bitmask CPU affinity support with NUMA V2, it broke the existing CPU affinity support for non-NUMA builds.  That patch mapped the legacy CPU affinity behavior (choosing a single core or else all cores) onto the bit-mapped framework when cyclictest was built against NUMA V1 libraries.  I simply extended this mapping to include also the case where cyclictest was built with no NUMA support.

Unfortunately the addition of the extra conditional compilation clauses into the function definitions from that patch made the resulting source code difficult to follow - so I also re-organized the code to make the end result more understandable.  I simply created conditional compilation clauses for the three NUMA-related build configurations (V2, V1, or none).  Then I created separate clean function definitions for each configuration... an extension of the method already used for the non-NUMA configuration case..

The restructuring of the code makes the patch containing changes to rt_numa.h difficult to follow.  If you prefer I can re-work these changes as three patches instead of two... splitting the rt_numa.h patch into one patch which re-organizes the code and a second which applies the changes that fix the CPU affinity bug.


Gary S. Robertson (2):
  Restore CPU affinity function for non-NUMA builds
  Don't offer --numa option when unavailable

 src/cyclictest/cyclictest.c |    2 +
 src/cyclictest/rt_numa.h    |  188 +++++++++++++++++++++++++++----------------
 2 files changed, 121 insertions(+), 69 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2014-03-25 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-25 23:05 [PATCH 0/2] cyclictest: Restore CPU affinity for non-NUMA builds Gary S. Robertson
2014-03-25 23:05 ` [PATCH 1/2] Restore CPU affinity function " Gary S. Robertson
2014-03-25 23:05 ` [PATCH 2/2] Don't offer --numa option when unavailable Gary S. Robertson

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