Re: Enable/disable hardware prefetcher via Oprofile

William Cohen <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 06/03/2015 10:57 AM, Mahmood N wrote:
> Thanks for your reply Will. So this question may be off the list but I appreciate if you help me to get on the wheel.
> 
> The files in /dev/cpu/* seem to be in binary format.
> 
> [root@tiger 0]# ls -l
> total 0
> cr--r--r--. 1 root root 203, 0 May 28 19:55 cpuid
> crw-rw----. 1 root root 202, 0 May 28 19:55 msr
> [root@tiger 0]# cat cpuid
> AuthcAMDenti`
>             "▒▒▒▒@@@▒@
> 
> q
> 
> 
> [root@tiger 0]#
> [root@tiger 0]#
> [root@tiger 0]#
> [root@tiger 0]# cat msr
> 
> 
> 
> [root@tiger 0]#
> 
> 
> Catting msr shows nothing. After pressing "enter" multiple times, I pressed ctrl+c!
>  
> Regards,
> Mahmood
> 
> 
> 
> 

Hi Mahmood,

The /dev/cpu/*/msr is not ascii/human readable, http://man7.org/linux/man-pages/man4/msr.4.html .  You might want to install the msr-tools package to access the msr.

-Will

------------------------------------------------------------------------------
_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.