0

In arm64 Linux with the OPTEE, when the CA starts, the Linux kernel will invoke the SMC, and the CPU will trap in the secure world.

Will the CPU time used in the secure world be counted by the Linux kernel in /proc/stat and /proc/pid/stat?

I thought it would be included in the time (this was proven wrong, see the following update), but I am new to the Linux kernel and do not know how/where to confirm the detail, hope some professors could give me any suggestions.

Update: I write a TA just doing while true, when the TA is running, I use "sar -P ALL" to show the CPU stat, there is a core in 100% idle state. So it proves that the Linux kernel can not count the CPU time when the secure world is running.

sizzle
  • 173
  • 5

0 Answers0