aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2022-11-08 09:44:00 +0100
committerChristoph Hellwig <[email protected]>2022-11-15 10:56:09 +0100
commit2e87570be9d2746e7c4e7ab1cc18fd3ca7de2768 (patch)
tree2e71d4b346cab058efa05cdc5fc256f8640c4177 /tools/perf/scripts/python/bin/stackcollapse-record
parent081a7d958ce4b65f9aab6e70e65b0b2e0b92297c (diff)
nvme-pci: factor out a nvme_pci_alloc_dev helper
Add a helper that allocates the nvme_dev structure up to the point where we can call nvme_init_ctrl. This pairs with the free_ctrl method and can thus be used to cleanup the teardown path and make it more symmetric. Note that this now calls nvme_init_ctrl a lot earlier during probing, which also means the per-controller character device shows up earlier. Due to the controller state no commnds can be send on it, but it might make sense to delay the cdev registration until nvme_init_ctrl_finish. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Keith Busch <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Tested-by Gerd Bayer <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions