summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2026-02-27 13:23:50 -0700
committerKeith Busch <kbusch@kernel.org>2026-03-27 07:35:04 -0700
commitb465046c8cca9e418c7b39cfb41bb8e3b62f22f6 (patch)
tree472bbc2e4070d760fad940ab0ee791e96c7b27b7 /tools/perf/scripts/python/stackcollapse.py
parent823340b7e877b410a814177360df34810878e916 (diff)
nvme: add from0based() helper
The NVMe specifications are big fans of "0's based"/"0-based" fields for encoding values that must be positive. The encoded value is 1 less than the value it represents. nvmet already provides a helper to0based() for encoding 0's based values, so add a corresponding helper to decode these fields on the host side. Suggested-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions