commit | 7338236ab386515bbcecf5c05bca6a034c12d0b9 | [log] [tgz] |
---|---|---|
author | Roman Pen <r.peniaev@gmail.com> | Sat Apr 23 13:44:09 2016 +0200 |
committer | Jens Axboe <axboe@fb.com> | Mon Apr 25 08:53:18 2016 -0600 |
tree | 461034e37be148ddd0a8ef0676b4a7b0635eb5dd | |
parent | f6541f75f2822252b057f08e9f5f0c40d4079a8c [diff] |
btreplay: fix sched_{set|get}affinity getpid() is a pid of a process, at least tid must be provided. But if zero is passed, then calling thread will be used. That exactly what is needed. Signed-off-by: Roman Pen <r.peniaev@gmail.com> Cc: Jens Axboe <axboe@fb.com> Cc: <linux-btrace@vger.kernel.org> Signed-off-by: Jens Axboe <axboe@fb.com>