hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU
authorYicong Yang <yangyicong@hisilicon.com>
Wed, 21 Jun 2023 09:28:03 +0000 (17:28 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 21 Jun 2023 10:52:35 +0000 (11:52 +0100)
commit45c90292ad0e275ef4b870838b3b5273b3ef8ade
tree00bc2d696280e7296ee303e41aff847a7e8485af
parent6373c463ac894e41cab24469d1947ff91aaea486
hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU

The PTT trace collects PCIe TLP headers from the PCIe link and don't
have the ability to exclude certain context. It doesn't support itrace
as well. So replace PERF_PMU_CAP_ITRACE with PERF_PMU_CAP_NO_EXCLUDE.
This will greatly save the storage of final data. Tested tracing idle
link for ~15s, without this patch we'll collect ~28.682MB data for
additional information and with this patch it reduced to ~0.226MB.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Tested-by: Junhao He <hejunhao3@huawei.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230621092804.15120-5-yangyicong@huawei.com
drivers/hwtracing/ptt/hisi_ptt.c