linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Improve PTT filter interface and some fixes
@ 2023-03-15  9:43 Yicong Yang
  2023-03-15  9:43 ` [PATCH 1/4] hwtracing: hisi_ptt: Make cpumask only present online CPUs Yicong Yang
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Yicong Yang @ 2023-03-15  9:43 UTC (permalink / raw)
  To: mathieu.poirier, suzuki.poulose, jonathan.cameron, corbet,
	linux-kernel, linux-doc
  Cc: alexander.shishkin, helgaas, linux-pci, prime.zeng, linuxarm

From: Yicong Yang <yangyicong@hisilicon.com>

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(-)

-- 
2.24.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-03-30  8:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15  9:43 [PATCH 0/4] Improve PTT filter interface and some fixes Yicong Yang
2023-03-15  9:43 ` [PATCH 1/4] hwtracing: hisi_ptt: Make cpumask only present online CPUs Yicong Yang
2023-03-28 16:24   ` Jonathan Cameron
2023-03-30  3:53     ` Yicong Yang
2023-03-30  8:34       ` Jonathan Cameron
2023-03-15  9:43 ` [PATCH 2/4] hwtracing: hisi_ptt: Add support for dynamically updating the filter list Yicong Yang
2023-03-28 16:51   ` Jonathan Cameron
2023-03-29 12:52     ` Yicong Yang
2023-03-15  9:43 ` [PATCH 3/4] hwtracing: hisi_ptt: Export available filters through sysfs Yicong Yang
2023-03-28 17:02   ` Jonathan Cameron
2023-03-29 12:54     ` Yicong Yang
2023-03-15  9:43 ` [PATCH 4/4] hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU Yicong Yang
2023-03-28 16:53   ` Jonathan Cameron
2023-03-27 10:49 ` [PATCH 0/4] Improve PTT filter interface and some fixes Yicong Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).