bug#71191: od does unnecessary reads instead of seeking

2024-05-25 Thread Pádraig Brady
On 25/05/2024 08:05, Joseph C. Sible wrote: Consider running the following command, for looking at the pagemap bits of a given memory page: od -t x8 -N 8 -j 34359738368 /proc/PID/pagemap That file supports seeking, but od will unnecessarily read and discard 32GB worth of data instead of doing s

bug#71191: od does unnecessary reads instead of seeking

2024-05-25 Thread Joseph C. Sible
Consider running the following command, for looking at the pagemap bits of a given memory page: od -t x8 -N 8 -j 34359738368 /proc/PID/pagemap That file supports seeking, but od will unnecessarily read and discard 32GB worth of data instead of doing so. Looking at the skip function in od.c, it l