Thread (3 messages) flat view 3 messages, 1 author, 2021-02-23
STALE2033d

Revision v2 of 4 in this series.

Revisions (4)
  1. v1 [diff vs current]
  2. v2 current
  3. v3 [diff vs current]
  4. v4 [diff vs current]

[PATCH v2 0/2] rt-tests: cyclictest: Add option to specify main pid affinity

From: Jonathan Schwender <hidden>
Date: 2021-02-23 13:55:45

Hi John,

Changes in v2:
I moved the wrapper around numa_sched_setaffinity
to lib/rt-numa.c and added the pid as a parameter.
I called it try_numa_sched_setaffinity since it's basically
just a wrapper, that warns if an error occurs.
I'm not sure if this is what you had in mind, when you
suggested moving that section to rt-numa.c
The code-style should also be consistent now.


This patch adds the option --mainaffinity to specify the affinity of
the main pid. 
This is mainly useful if you want to bind the main thread to a 
different (e.g. housekeeping ) CPU than the measurement threads.

Regards

Jonathan


Jonathan Schwender (2):
  cyclictest: Move main pid setaffinity handling into a function
  cyclictest: Add --mainaffinity=[CPUSET] option.

 src/cyclictest/cyclictest.c | 28 +++++++++++++++++++---------
 src/include/rt-numa.h       |  2 ++
 src/lib/rt-numa.c           | 11 +++++++++++
 3 files changed, 32 insertions(+), 9 deletions(-)

-- 
2.29.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help