Umm, the easiest hint is probably to just look at the faulting address.
We have it available, after all.
Basically, if the faulting address is at offset 0 of the page, we're
probably walking upwards. If it's in the middle, we probably have
random access. And if it is at the end, the user is probably walking
downwards.
I suspect that such a simple heuristic would be fairly accurate, and it
can be coupled with other heuristics to further increase the accuracy.
Linus
-
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/