hwtracing: hisi_ptt: Add support for dynamically updating the filter list
authorYicong Yang <yangyicong@hisilicon.com>
Wed, 21 Jun 2023 09:28:01 +0000 (17:28 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 21 Jun 2023 10:52:08 +0000 (11:52 +0100)
commit556ef09392dbc2d0b9aad5fd880d5d11addfc40d
tree1f5f38a026d930bbe3097329e35b042b14c01a49
parenta3ecaba7017f5d02d1ad60229cc14d5f0cda0c20
hwtracing: hisi_ptt: Add support for dynamically updating the filter list

The PCIe devices supported by the PTT trace can be removed/rescanned by
hotplug or through sysfs.  Add support for dynamically updating the
available filter list by registering a PCI bus notifier block. Then user
can always get latest information about available tracing filters and
driver can block the invalid filters of which related devices no longer
exist in the system.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230621092804.15120-3-yangyicong@huawei.com
Documentation/trace/hisi-ptt.rst
drivers/hwtracing/ptt/hisi_ptt.c
drivers/hwtracing/ptt/hisi_ptt.h