aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorJavier González <[email protected]>2018-10-09 13:12:09 +0200
committerJens Axboe <[email protected]>2018-10-09 08:25:08 -0600
commit40b8657dcc0bbd4a293cac1acd4b0b01c0359416 (patch)
tree132bc7832c197a44c16c38a59441803027fad974 /tools/perf/scripts/python/sctop.py
parentdde4aac20babee040875f76842a31b14b76dd369 (diff)
lightnvm: pblk: encapsulate rb pointer operations
pblk's read/write buffer is always a power-of-2, thus wrapping up the buffer can be done with a bit mask. Since this is an implementation detail internal to the write buffer, make a helper that hides pointer increment + wrap, and allows to transparently relax this assumption in the future. Signed-off-by: Javier González <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions