[Qemu-devel] [PATCH 04/12] linux-user: Reduce lseek+reads while loading elf files.

2010-07-27 Thread Richard Henderson
Define BPRM_BUF_SIZE to 1k and read that amount initially. If the data we want from the binary is in this buffer, use it instead of reading from the file again. Signed-off-by: Richard Henderson --- linux-user/elfload.c | 104 --- linux-user/linuxlo

[Qemu-devel] [PATCH 04/12] linux-user: Reduce lseek+reads while loading elf files.

2010-05-05 Thread Richard Henderson
Define BPRM_BUF_SIZE to 1k and read that amount initially. If the data we want from the binary is in this buffer, use it instead of reading from the file again. Signed-off-by: Richard Henderson --- linux-user/elfload.c | 104 --- linux-user/linuxlo