I'm new here, so I apologize if I'm asking the wrong question.
Introduction: I am writing code on Windows server 2022 and I need to get data from the instruction cache on the CPU, are there any ways to do this from Ring 3 or Ring 0 (in assembler or C++)?
My attempts to solve this problem: I tried to get this data from GetLogicalProcessorInformation, but I was only able to get the number of logical processors, etc. information. So the main problem is, how can I get the instruction cache?