linux/drivers/hwtracing
Suzuki K Poulose a646ca099b coresight: perf: Output trace id only once
With the dynamic traceid allocation scheme in, we output the
AUX_OUTPUT_HWID packet every time event->start() is called.
This could cause too many such records in the perf.data,
while only one per CPU throughout the life time of
the event is required. Make sure we only output it once.

Before this patch:
  $ perf report -D | grep OUTPUT_HW_ID
  ...
  AUX_OUTPUT_HW_ID events:         55  (18.3%)

After this patch:

 $ perf report -D | grep OUTPUT_HW_ID
 ...
 AUX_OUTPUT_HW_ID events:          5  ( 1.9%)

Cc: Mike Leach <mike.leach@linaro.org>
Cc: James Clark <james.clark@arm.com>
Cc: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Reviewed-by: James Clark <james.clark@arm.com>
Link: https://lore.kernel.org/r/20230120103434.864318-1-suzuki.poulose@arm.com
2023-01-24 10:41:46 +00:00
..
coresight coresight: perf: Output trace id only once 2023-01-24 10:41:46 +00:00
intel_th intel_th: pci: Add Raptor Lake-S CPU support 2022-07-08 15:43:15 +02:00
ptt hwtracing: hisi_ptt: Only add the supported devices to the filters list 2023-01-19 10:06:35 +00:00
stm stm class: Use correct UUID APIs 2021-04-16 07:26:50 +02:00
Kconfig hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe Tune and Trace device 2022-09-08 16:26:17 -06:00