Implementing Hardware monitoring counters per process in Kernel Source

  • Thread starter Thread starter fauny
  • Start date Start date
F

fauny

I need to read and configure the performance counter registers in the Linux Source Code using x86 assembly language at Kernel level. I followed the post by Michael Guyuer "Some Assembly Required". I am unable to figure out how to use and incorporate the counters for profiling each running process to perform process scheduling in Kernel Source code.

In the post : mindfruit.co.uk/2012/11/fun-with-msrs-counting-performance.html
I want to know how to replace loadDriver (line 11) and closeDriver (line 21); what to use in place of fd for integrating the driver and the code at Kernel source Level or is there some other means to fulfil the objective then please let me know.

Any help in this regard will be highly appreciable.

Continue reading...
 
Back
Top