Hi,
I'm looking for some kind of tutorial for writing a tool that does the following:
It reads multiple values and compares them to a small database and then reads a string from the database...
Type: Posts; User: pgzh
Hi,
I'm looking for some kind of tutorial for writing a tool that does the following:
It reads multiple values and compares them to a small database and then reads a string from the database...
That's strange, because I did this after a tester of my tool reported the following error compiling my program:
error: can't find a register in class ‘BREG’ while reloading ‘asm’
With Google I...
The inline assembly for the GCC can't work with variables directly, so you have to use %0 for the first variable you will be using, %1 for the second and so on.
I guess that's what you already found...
Hi,
how can one read the PCI ID of the chipset built into a computer?
I know lspci can do it with "-n" and the first line contains the PCI ID of the chipset:
$ lspci -n
00:00.0 0600:...
Fair enough, you really got a point here.
So I'll simply stick with the /dev/cpu/*/msr interface which is sufficient for my needs.
Thanks for the info!
Peter
This is definitely true for writing to a MSR, but is there any point in making reading one a privileged operation here?
Peter
Hi,
I was writing some code to read the internal temperature sensor of an Intel Core2 Duo processor which requires to read some MSRs.
When I tried to read a MSR with inline assembly code I always...
Hi,
is there a way to select the CPU on which a program will run from within this program?
I'm looking for a way to run some test with the CPUID instruction on every logical CPU in the system,...
A much better solution to this would be using the CPUID instruction. Almost every CPU since the 486 support it (so all Hyperthreading/Multi-core Intel or AMD cpus). The following solution will only...
gettimeofday won't do me any good because it will only tell me what time it is or with a delta how much time has passed - I need a timer that counts the ticks of the CPU as well to calculate the CPU...
Yes, I need a timer for CPU frequency calculation - in my first try I used the TSC which works quite good, but does not work if running on a tickless Linux kernel because the TSC becomes unstable...
Hi,
is it possible to get the current jiffies value with a program running in userspace?
I found some source code on the net using "#include <linux/jiffies.h>", but I don't have a...
Where exactly in the Linux source code did you look? Maybe I can look for the way this is handled in 2.6 myself.
Peter
Are you sure Linux reads the TSC for frequency calculation? The cpu mhz info in /proc/cpuinfo changes when using cpufreq with ondemand, but the TSC does not tick constant if tickless is enabled - and...
Hi,
is there any way one can determine the current CPU frequency?
I was trying to figure out a way to do this but couldn't find a way that works. My approach was to use the TSC (Time Stamp...