Re: [PATCH] perf/x86/intel/bts: allocate bts_ctx only if necessary

From: Alexander Shishkin
Date: Wed Oct 30 2024 - 03:27:26 EST


Li RongQing <lirongqing@xxxxxxxxx> writes:

> Avoid unnecessary per-CPU memory allocation on unsupported CPUs,
> this can save 12K memory for every CPU

Looks reasonable, but have you tested it? This driver is in serious
danger of bitrot ever since KPTI. It might save even more if we simply
remove the whole thing.

Regards,
--
Alex