diff options
author | Yicong Yang <yangyicong@hisilicon.com> | 2023-06-21 11:28:01 +0200 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2023-06-21 12:52:08 +0200 |
commit | 556ef09392dbc2d0b9aad5fd880d5d11addfc40d (patch) | |
tree | 1f5f38a026d930bbe3097329e35b042b14c01a49 /Documentation/trace | |
parent | hwtracing: hisi_ptt: Factor out filter allocation and release operation (diff) | |
download | linux-556ef09392dbc2d0b9aad5fd880d5d11addfc40d.tar.xz linux-556ef09392dbc2d0b9aad5fd880d5d11addfc40d.zip |
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
Diffstat (limited to 'Documentation/trace')
-rw-r--r-- | Documentation/trace/hisi-ptt.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/trace/hisi-ptt.rst b/Documentation/trace/hisi-ptt.rst index 4f87d8e21065..69c538153838 100644 --- a/Documentation/trace/hisi-ptt.rst +++ b/Documentation/trace/hisi-ptt.rst @@ -153,9 +153,9 @@ Endpoint function can be specified in one trace. Specifying both Root Port and function at the same time is not supported. Driver maintains a list of available filters and will check the invalid inputs. -Currently the available filters are detected in driver's probe. If the supported -devices are removed/added after probe, you may need to reload the driver to update -the filters. +The available filters will be dynamically updated, which means you will always +get correct filter information when hotplug events happen, or when you manually +remove/rescan the devices. 2. Type ------- |