summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2019-02-09 07:52:56 +0300
committerJens Axboe <axboe@kernel.dk>2019-02-09 17:18:31 +0300
commitd4610456cfa412811b749f6215b9adae976ab4c3 (patch)
treeaed9005a0d5c2bfb10c9c4d19814e1cad54cb76d /tools/perf/scripts/python/stackcollapse.py
parent926d19465b66cb6bde4ca28fde16de775af4e357 (diff)
downloadlinux-d4610456cfa412811b749f6215b9adae976ab4c3.tar.xz
bcache: export backing_dev_uuid via sysfs
When there are multiple bcache devices, after a reboot the name of bcache devices may change (e.g. current /dev/bcache1 was /dev/bcache0 before reboot). Therefore we need the backing device UUID (sb.uuid) to identify each bcache device. Backing device uuid can be found by program bcache-super-show, but directly exporting backing_dev_uuid by sysfs file /sys/block/bcache<?>/bcache/backing_dev_uuid is a much simpler method. With backing_dev_uuid, and partition uuids from /dev/disk/by-partuuid/, now we can identify each bcache device and its partitions conveniently. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions