This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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).

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]