Messages in this thread | | | From | (Matthias Urlichs) | Subject | Re: Linux kernel file name | Date | 10 Dec 1996 11:20:54 +0100 |
| |
In linux.dev.kernel, article <9612100241.aa07899@whimsy.udel.edu>, stenn@whimsy.udel.edu writes: > > Well, since the whole point of the exercise is so I can do an nlist() on > the kernel to read the values of tick and tickadj (or whatever they're > called under linux), there's no need for me to know the kernel name if I > can't do an nlist() on it because it's compressed. > nlist() on the kernel isn't a good idea, anyway.
"tick" aka "jiffies" is already available in /proc/stat (the sum of the first four values). A variable named tickadj is preset to 500/HZ (and never changed, as far as I can tell), though what you want seems to be named time_adjust_step and not yet externally available.
I'd suggest that, instead of random hacks like nlist which preclude Linus from ever changing the internal name of the variable, or even the way it works, that you export it with /proc/time or /proc/sys/kernel/tickadj or whatever.
-- That was not manual override. -- Data, "Contagion", stardate 42609.1 -- Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de 90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42
| |