Saturday, January 8, 2022

Get current CPU core frequency - linux

1. Get the current application's permission

"getuid()"

"geteuid()"


2. turbostat: https://github.com/torvalds/linux/blob/master/tools/power/x86/turbostat/turbostat.c 

 

  

No comments: