Skip to content

Improve PTT filter interface and some fixes

Yicong Yang linux-doc linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hwtracing: hisi_ptt: Make cpumask only present online CPUsdrivers/hwtracing/ptt/hisi_ptt.c+11 -23 replies
2/4hwtracing: hisi_ptt: Add support for dynamically updating the filter listDocumentation/trace/hisi-ptt.rst drivers/hwtracing/ptt/hisi_ptt.c drivers/hwtracing/ptt/hisi_ptt.h+189 -42 replies
3/4hwtracing: hisi_ptt: Export available filters through sysfsDocumentation/ABI/testing/sysfs-devices-hisi_ptt Documentation/trace/hisi-ptt.rst drivers/hwtracing/ptt/hisi_ptt.c +1 more+297 -42 replies
4/4hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMUdrivers/hwtracing/ptt/hisi_ptt.c+1 -11 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchJonathan Cameron
1/4
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Improve PTT filter interface and some fixes

From: Yicong Yang <[email protected]>

This series tends to improve the PTT's filter interface in 2 aspects (Patch 2&3):
- Support dynamically filter updating to response to hotplug Previous the supported filter list is settled down once the driver probed and it maybe out-of-date if hotplug events happen later. User need to reload the driver to update list. Patch 1/2 enable the driver to update the list by registering a PCI bus notifier and the filter list will always be the latest.
- Export the available filters through sysfs
Previous user needs to calculate the filters and filter value using device's BDF number, which requires the user to know the hardware well. Patch 3/3 tends to export the available filter information through sysfs attributes, the filter value will be gotten by reading the file. This will be more user friendly.

Also includes a fix and an improve. Patch 1 tends to only export the online CPUs supported by the PTT, this will make perf work properly when there's offline CPUs within the node PTT locates. Patch 4 tends to set proper PMU capability to avoid collecting unnecessary data to save the storage.

Yicong Yang (4):
hwtracing: hisi_ptt: Make cpumask only present online CPUs
hwtracing: hisi_ptt: Add support for dynamically updating the filter
list
hwtracing: hisi_ptt: Export available filters through sysfs
hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU

 .../ABI/testing/sysfs-devices-hisi_ptt        |  50 +++
 Documentation/trace/hisi-ptt.rst              |  12 +-
 drivers/hwtracing/ptt/hisi_ptt.c              | 396 +++++++++++++++++-
 drivers/hwtracing/ptt/hisi_ptt.h              |  51 +++
 4 files changed, 498 insertions(+), 11 deletions(-)
Signature · 1 line
2.24.0