diff options
| author | Francesco Pollicino <[email protected]> | 2019-03-12 09:59:33 +0100 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-04-01 08:15:40 -0600 |
| commit | 1e66413c4f68e2a61a210e4f5ff5df7a2ab86a5b (patch) | |
| tree | 49e5f455fa84648d09b82a92e114dfb6975adaca /tools/perf/scripts/python/sched-migration.py | |
| parent | 84a746891e1d8364485c0a37533fe6c1380270d4 (diff) | |
block, bfq: print SHARED instead of pid for shared queues in logs
The function "bfq_log_bfqq" prints the pid of the process
associated with the queue passed as input.
Unfortunately, if the queue is shared, then more than one process
is associated with the queue. The pid that gets printed in this
case is the pid of one of the associated processes.
Which process gets printed depends on the exact sequence of merge
events the queue underwent. So printing such a pid is rather
useless and above all is often rather confusing because it
reports a random pid between those of the associated processes.
This commit addresses this issue by printing SHARED instead of a pid
if the queue is shared.
Tested-by: Holger Hoffstätte <[email protected]>
Tested-by: Oleksandr Natalenko <[email protected]>
Signed-off-by: Francesco Pollicino <[email protected]>
Signed-off-by: Paolo Valente <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions