vfio/common: Use a single tracepoint for skipped sections
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 7 Mar 2023 12:54:41 +0000 (12:54 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 7 Mar 2023 14:20:32 +0000 (07:20 -0700)
commit1cd7fa7adc157c5ec8050a6fe31670bdf3f6c2a5
tree267c1698945b4b71c9783b60c38094af52815c78
parentfbc6c92134048cef7a9317119da4b6beea03138e
vfio/common: Use a single tracepoint for skipped sections

In preparation to turn more of the memory listener checks into
common functions, one of the affected places is how we trace when
sections are skipped. Right now there is one for each. Change it
into one single tracepoint `vfio_listener_region_skip` which receives
a name which refers to the callback i.e. region_add and region_del.

Suggested-by: Avihai Horon <avihaih@nvidia.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20230307125450.62409-7-joao.m.martins@oracle.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c
hw/vfio/trace-events