]> git.ipfire.org Git - thirdparty/linux.git/commit
coresight: tmc: Decouple the perf buffer allocation from sysfs mode
authorYicong Yang <yangyicong@hisilicon.com>
Wed, 21 Jan 2026 10:15:43 +0000 (18:15 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 21 Jan 2026 10:32:27 +0000 (10:32 +0000)
commiteebe8dbd8630f51cf70b1f68a440cd3d7f7a914d
tree71d0305f395904bde03c9442be13cc55bd7ae7fb
parente6e43e82c79c97917cbe356c07e8a6f3f982ab53
coresight: tmc: Decouple the perf buffer allocation from sysfs mode

Currently the perf buffer allocation follows the below logic:
- if the required AUX buffer size if larger, allocate the buffer with
  the required size
- otherwise allocate the size reference to the sysfs buffer size

This is not useful as we only collect to one AUX data, so just try to
allocate the buffer match the AUX buffer size.

Suggested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/linux-arm-kernel/df8967cd-2157-46a2-97d9-a1aea883cf63@arm.com/
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Junhao He <hejunhao3@h-partners.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20260121101543.2017014-4-wangyushan12@huawei.com
drivers/hwtracing/coresight/coresight-tmc-etr.c