Skip to content

Improve PTT filter interface and some fixes

Yicong Yang linux-doc linux-pci lkml 5 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 1 replyApplied
  2. v55 patches 0 repliesSuperseded
  3. v45 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v34 patches6 repliesSuperseded
v24 patches1 replySuperseded

Changes in v6 from the cover letter

- PERF_PMU_CAP_EXCLUSIVE is still needed so keep it as is, thanks Junhao for pointing it

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/5hwtracing: hisi_ptt: Factor out filter allocation and release operationdrivers/hwtracing/ptt/hisi_ptt.c+39 -240 replies
2/5hwtracing: 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+205 -110 replies
3/5hwtracing: 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+279 -00 replies
4/5hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMUdrivers/hwtracing/ptt/hisi_ptt.c+1 -10 replies
5/5hwtracing: hisi_ptt: Fix potential sleep in atomic contextdrivers/hwtracing/ptt/hisi_ptt.c drivers/hwtracing/ptt/hisi_ptt.h+7 -70 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

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

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

Read the v6 thread

Cover letter [PATCH v6 0/5] 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.

In order to support above function, this series also includes a patch 1/4 to factor out the allocation and release function of PTT filters.

Also includes an improvement and a fix. Patch 4 tends to set proper PMU capability to avoid collecting unnecessary data to save the storage. Patch 5 fix an improper use of pci_irq_vector() which have potential problem.

Change since v5:
- PERF_PMU_CAP_EXCLUSIVE is still needed so keep it as is, thanks Junhao for pointing it

Change since v4:
- Add tags for Patch 2,3,5 and tweak some comments/docs in Patch 3

Change since v3:
- Addressed the comment from Jonathan. Add tags for Patch 1 and 4. Thanks.
- Add one bugfix in Patch 5/5

Change since v2:
- Fix one possible issue for dereferencing a NULL pointer

Change since v1:
- Drop the patch for handling the cpumask since it seems to be redundant
- Refine of the codes per Jonathan
- Add Patch 1/4 for refactor the filters allocation and release
- Thanks the review of Jonathan.

Yicong Yang (5):
hwtracing: hisi_ptt: Factor out filter allocation and release
operation
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
hwtracing: hisi_ptt: Fix potential sleep in atomic context

 .../ABI/testing/sysfs-devices-hisi_ptt        |  52 ++
 Documentation/trace/hisi-ptt.rst              |  12 +-
 drivers/hwtracing/ptt/hisi_ptt.c              | 444 ++++++++++++++++--
 drivers/hwtracing/ptt/hisi_ptt.h              |  56 +++
 4 files changed, 526 insertions(+), 38 deletions(-)
Signature · 1 line
2.24.0