It's relatively common, used eg for timestamping events, often _every_ event
(strace a few X apps etc to see some examples).
It's also special because it does not need to switch domains -- on modern
cpus the required information is (or can be made) available to the caller,
hence it's possible to avoid entering the kernel at all. (in general, this
depends on cpu capabilities, security levels etc)
Note it's not about saving 100 cycles, it is about speeding up
gettimeofday() on a 686 by a factor of three.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/