]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
nvme: add disk name to trace events
authorKeith Busch <keith.busch@intel.com>
Fri, 29 Jun 2018 22:50:03 +0000 (16:50 -0600)
committerChristoph Hellwig <hch@lst.de>
Tue, 24 Jul 2018 13:55:48 +0000 (15:55 +0200)
commit6268953e8977a23ca7512a2921e82a5d9252ec01
tree069eabf096b12e5d72844ebe9a6c9911d3eefdda
parentb80a55e246a1b817cb254d79d077f364a2419578
nvme: add disk name to trace events

This will print the disk name to the nvme event trace for io requests so
a user can better distinguish traffic to different disks. This can be used
to  create disk based filters. For example, to see only nvme0n2 traffic:

  echo "disk == \"nvme0n2\"" > /sys/kernel/debug/tracing/events/nvme/filter

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
[hch: turned __assign_disk_name into an inline function]
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/trace.c
drivers/nvme/host/trace.h