How about a user space interface that runs at machine speed and
extracts counters without any syscall overhead? This proposal got very
little attention at the time so we put it aside until more people
were interested.
http://marc.theaimsgroup.com/?l=linux-kernel&m=98578952028153&w=2
Ralf Baechle has pointed out one problem, virtually indexed caches :(.
That prevents a single user space mmap over the scattered kernel pages,
kernel and user space addresses have to be in sync in the cache. So
user space sees the scattered pages and has to run the structure
itself. No big deal, just a library function that converts an instance
name and cpu number into an address.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/