From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26895 invoked by alias); 15 Jun 2007 15:54:31 -0000 Received: (qmail 26869 invoked by uid 22791); 15 Jun 2007 15:54:30 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Jun 2007 15:54:26 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id l5FFsNh9189214 for ; Fri, 15 Jun 2007 15:54:23 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l5FFsNIs4124866 for ; Fri, 15 Jun 2007 17:54:23 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l5FFsMEN030614 for ; Fri, 15 Jun 2007 17:54:22 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l5FFsMCe030611; Fri, 15 Jun 2007 17:54:22 +0200 Message-Id: <200706151554.l5FFsMCe030611@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 15 Jun 2007 17:54:22 +0200 Subject: Re: [rfc/rfa] [1/4] SPU enhancements: preparation To: mark.kettenis@xs4all.nl (Mark Kettenis) Date: Fri, 15 Jun 2007 15:54:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <200706151549.l5FFnwYp021247@brahms.sibelius.xs4all.nl> from "Mark Kettenis" at Jun 15, 2007 05:49:58 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00294.txt.bz2 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