This is the mail archive of the
mailing list for the GDB project.
Re: [rfc/rfa] [1/4] SPU enhancements: preparation
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: mark dot kettenis at xs4all dot nl (Mark Kettenis)
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 15 Jun 2007 17:54:22 +0200 (CEST)
- Subject: Re: [rfc/rfa] [1/4] SPU enhancements: preparation
Mark Kettenis wrote:
> > this is a small fix in preparation for adding extended SPU query support.
> > Some files in spufs accessed via the spu_proc_xfer_spu routines in
> > spu-linux-nat.c and gdbserver/spu-low.c are non-seekable. Currently,
> > any attempt to access those at non-zero offset results in a failure.
> Are these files inherently non-seekable (side-effects?) or is this
> just a Linux quirk you're trying to work around?
spufs is a pseudo-filesystem implemented by the Linux kernel
(similar to the /proc or /sys file systems); files in spufs
aren't actually real files, but provide information about
status of SPU contexts.
Most of those files simply do not support seeking; you can
only open them, and read their contents out (once). The
content typically represents a single data item (like the
current SPU event status).
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE