mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
failed sched_getaffinity_threads attempt
Better eigen naming.
This commit is contained in:
18
README.adoc
18
README.adoc
@@ -1997,6 +1997,24 @@ and we observe that `info threads` shows the actual correct core on which the pr
|
||||
|
||||
We should also try it out with kernel modules: https://stackoverflow.com/questions/28347876/set-cpu-affinity-on-a-loadable-linux-kernel-module
|
||||
|
||||
TODO we then tried:
|
||||
|
||||
....
|
||||
./run -c2 -F '/sched_getaffinity_threads.out'
|
||||
....
|
||||
|
||||
and:
|
||||
|
||||
....
|
||||
./rungdb-user kernel_module-1.0/user/sched_getaffinity_threads.out
|
||||
....
|
||||
|
||||
to switch between two simultaneous live threads with different affinities, it just didn't break on our threads:
|
||||
|
||||
....
|
||||
b main_thread_0
|
||||
....
|
||||
|
||||
Bibliography:
|
||||
|
||||
* https://stackoverflow.com/questions/10490756/how-to-use-sched-getaffinity-and-sched-setaffinity-in-linux-from-c/50117787#50117787
|
||||
|
||||
Reference in New Issue
Block a user