diff options
author | Ilkka Koskinen <ilkka@os.amperecomputing.com> | 2025-01-09 21:53:48 +0000 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2025-02-21 16:08:18 +0000 |
commit | 0e14e062f5ff98aa15264dfa87c5f5e924028561 (patch) | |
tree | 9a5e6ed6a658659ebfc84b21cbece0ac927d21bd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0ad2507d5d93f39619fc42372c347d6006b64319 (diff) |
coresight: catu: Fix number of pages while using 64k pages
Trying to record a trace on kernel with 64k pages resulted in -ENOMEM.
This happens due to a bug in calculating the number of table pages, which
returns zero. Fix the issue by rounding up.
$ perf record --kcore -e cs_etm/@tmc_etr55,cycacc,branch_broadcast/k --per-thread taskset --cpu-list 1 dd if=/dev/zero of=/dev/null
failed to mmap with 12 (Cannot allocate memory)
Fixes: 8ed536b1e283 ("coresight: catu: Add support for scatter gather tables")
Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250109215348.5483-1-ilkka@os.amperecomputing.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions