Re: [PATCH v3 41/44] metag: OProfile

2013-01-10 Thread Maynard Johnson
On 01/10/2013 09:31 AM, James Hogan wrote: > Add oprofile support for metag. > > Signed-off-by: James Hogan > Cc: Robert Richter > Cc: oprofile-l...@lists.sf.net > --- > arch/metag/Kconfig|1 + > arch/metag/Makefile |2 + >

Re: [PATCH v3 41/44] metag: OProfile

2013-01-10 Thread Maynard Johnson
On 01/10/2013 09:31 AM, James Hogan wrote: Add oprofile support for metag. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Robert Richter r...@kernel.org Cc: oprofile-l...@lists.sf.net --- arch/metag/Kconfig|1 + arch/metag/Makefile |2

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-27 Thread Maynard Johnson
I have applied the "cleanup" patch that Arnd sent, but had to fix up a few things: - Bug fix: Initialize retval in spu_task_sync.c, line 95, otherwise OProfile this function returns non-zero and OProfile fails. - Remove unused codes in include/linux/oprofile.h - Compile warnings:

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-27 Thread Maynard Johnson
I have applied the cleanup patch that Arnd sent, but had to fix up a few things: - Bug fix: Initialize retval in spu_task_sync.c, line 95, otherwise OProfile this function returns non-zero and OProfile fails. - Remove unused codes in include/linux/oprofile.h - Compile warnings:

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-18 Thread Maynard Johnson
Maynard Johnson wrote: Arnd Bergmann wrote: On Friday 16 February 2007 01:32, Maynard Johnson wrote: config OPROFILE_CELL bool "OProfile for Cell Broadband Engine" depends on OPROFILE && SPU_FS default y if ((SPU_FS = y && OPROFILE = y) |

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-18 Thread Maynard Johnson
Maynard Johnson wrote: Arnd Bergmann wrote: On Friday 16 February 2007 01:32, Maynard Johnson wrote: config OPROFILE_CELL bool OProfile for Cell Broadband Engine depends on OPROFILE SPU_FS default y if ((SPU_FS = y OPROFILE = y) || (SPU_FS = m OPROFILE = m

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-16 Thread Maynard Johnson
Arnd Bergmann wrote: On Friday 16 February 2007 01:32, Maynard Johnson wrote: config OPROFILE_CELL bool "OProfile for Cell Broadband Engine" depends on OPROFILE && SPU_FS default y if ((SPU_FS = y && OPROFILE = y) || (SPU_FS = m &

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-16 Thread Maynard Johnson
Arnd Bergmann wrote: On Friday 16 February 2007 01:32, Maynard Johnson wrote: config OPROFILE_CELL bool OProfile for Cell Broadband Engine depends on OPROFILE SPU_FS default y if ((SPU_FS = y OPROFILE = y) || (SPU_FS = m OPROFILE = m)) help Profiling

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-15 Thread Maynard Johnson
Arnd Bergmann wrote: On Thursday 15 February 2007 00:52, Carl Love wrote: --- linux-2.6.20-rc1.orig/arch/powerpc/oprofile/Kconfig 2007-01-18 16:43:14.0 -0600 +++ linux-2.6.20-rc1/arch/powerpc/oprofile/Kconfig 2007-02-13 19:04:46.271028904 -0600 @@ -7,7 +7,8 @@ config

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-15 Thread Maynard Johnson
Arnd Bergmann wrote: On Thursday 15 February 2007 00:52, Carl Love wrote: --- linux-2.6.20-rc1.orig/arch/powerpc/oprofile/Kconfig 2007-01-18 16:43:14.0 -0600 +++ linux-2.6.20-rc1/arch/powerpc/oprofile/Kconfig 2007-02-13 19:04:46.271028904 -0600 @@ -7,7 +7,8 @@ config

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-15 Thread Maynard Johnson
Arnd Bergmann wrote: On Thursday 15 February 2007 00:52, Carl Love wrote: --- linux-2.6.20-rc1.orig/arch/powerpc/oprofile/Kconfig 2007-01-18 16:43:14.0 -0600 +++ linux-2.6.20-rc1/arch/powerpc/oprofile/Kconfig 2007-02-13 19:04:46.271028904 -0600 @@ -7,7 +7,8 @@ config

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-15 Thread Maynard Johnson
Arnd Bergmann wrote: On Thursday 15 February 2007 00:52, Carl Love wrote: --- linux-2.6.20-rc1.orig/arch/powerpc/oprofile/Kconfig 2007-01-18 16:43:14.0 -0600 +++ linux-2.6.20-rc1/arch/powerpc/oprofile/Kconfig 2007-02-13 19:04:46.271028904 -0600 @@ -7,7 +7,8 @@ config

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-08 Thread Maynard Johnson
by Maynard Johnson as "PATCH 4/4. Add support to OProfile for profiling CELL". [snip] Data collected The current patch starts tackling these translation issues for the presently common case of a static self contained binary from a single file, either single separate source file o

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-08 Thread Maynard Johnson
Michael, Thanks very much for the advice. Both issues have been solved now, with your help. -Maynard Michael Ellerman wrote: On Wed, 2007-02-07 at 09:41 -0600, Maynard Johnson wrote: Carl Love wrote: Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-08 Thread Maynard Johnson
Michael, Thanks very much for the advice. Both issues have been solved now, with your help. -Maynard Michael Ellerman wrote: On Wed, 2007-02-07 at 09:41 -0600, Maynard Johnson wrote: Carl Love wrote: Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-08 Thread Maynard Johnson
by Maynard Johnson as PATCH 4/4. Add support to OProfile for profiling CELL. [snip] Data collected The current patch starts tackling these translation issues for the presently common case of a static self contained binary from a single file, either single separate source file or embedded

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-07 Thread Maynard Johnson
Carl Love wrote: Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard Johnson <[EMAIL PROTECTED]> This patch updates the existing arch/powerpc/oprofile/op_model_cell.c to add in the SPU profiling capabilities. In addition, a 'cell' subdirectory was added to arch/p

Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

2007-02-07 Thread Maynard Johnson
Carl Love wrote: Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard Johnson [EMAIL PROTECTED] This patch updates the existing arch/powerpc/oprofile/op_model_cell.c to add in the SPU profiling capabilities. In addition, a 'cell' subdirectory was added to arch/powerpc

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-04 Thread Maynard Johnson
Arnd Bergmann wrote: On Sunday 04 February 2007 00:49, Maynard Johnson wrote: I seem to recall looking at this option a while back, but didn't go that route since struct spu_context is opaque to me. With such a teqnique, I could then use a simple 16-element array of pointers

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-04 Thread Maynard Johnson
Arnd Bergmann wrote: On Saturday 03 February 2007 21:03, Maynard Johnson wrote: I presume you mean 'object_id'. Right, sorry for the confusion. What you're asking for is a new requirement, and one which I don't believe is achievable in the current timeframe. Since

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-04 Thread Maynard Johnson
Arnd Bergmann wrote: On Saturday 03 February 2007 21:03, Maynard Johnson wrote: I presume you mean 'object_id'. Right, sorry for the confusion. What you're asking for is a new requirement, and one which I don't believe is achievable in the current timeframe. Since

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-04 Thread Maynard Johnson
Arnd Bergmann wrote: On Sunday 04 February 2007 00:49, Maynard Johnson wrote: I seem to recall looking at this option a while back, but didn't go that route since struct spu_context is opaque to me. With such a teqnique, I could then use a simple 16-element array of pointers

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-03 Thread Maynard Johnson
Arnd Bergmann wrote: On Monday 29 January 2007 20:48, Maynard Johnson wrote: Subject: Add support to OProfile for profiling Cell BE SPUs [snip] + * + * Ideally, we would like to be able to create the cached_info for + * an SPU task just one time -- when libspe first loads

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-03 Thread Maynard Johnson
Arnd Bergmann wrote: On Friday 02 February 2007 17:47, Maynard Johnson wrote: We also want to be able to profile the context switch code itself, which means that we also need one event buffer associated with the kernel to collect events that for a zero context_id. The hardware

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-03 Thread Maynard Johnson
Arnd Bergmann wrote: On Friday 02 February 2007 17:47, Maynard Johnson wrote: We also want to be able to profile the context switch code itself, which means that we also need one event buffer associated with the kernel to collect events that for a zero context_id. The hardware

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-03 Thread Maynard Johnson
Arnd Bergmann wrote: On Monday 29 January 2007 20:48, Maynard Johnson wrote: Subject: Add support to OProfile for profiling Cell BE SPUs [snip] + * + * Ideally, we would like to be able to create the cached_info for + * an SPU task just one time -- when libspe first loads

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-02 Thread Maynard Johnson
Arnd Bergmann wrote: On Tuesday 30 January 2007 22:41, Maynard Johnson wrote: Arnd Bergmann wrote: + kt = ktime_set(0, profiling_interval); + if (!spu_prof_running) + goto STOP; + hrtimer_forward(timer, timer->base->get_time(), kt); +

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-02 Thread Maynard Johnson
Arnd Bergmann wrote: On Tuesday 30 January 2007 23:54, Maynard Johnson wrote: Why do you store them per spu in the first place? The physical spu doesn't have any relevance to this at all, the only data that is per spu is the sample data collected on a profiling interrupt, which you can

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-02 Thread Maynard Johnson
Arnd Bergmann wrote: On Tuesday 30 January 2007 23:54, Maynard Johnson wrote: Why do you store them per spu in the first place? The physical spu doesn't have any relevance to this at all, the only data that is per spu is the sample data collected on a profiling interrupt, which you can

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-02-02 Thread Maynard Johnson
Arnd Bergmann wrote: On Tuesday 30 January 2007 22:41, Maynard Johnson wrote: Arnd Bergmann wrote: + kt = ktime_set(0, profiling_interval); + if (!spu_prof_running) + goto STOP; + hrtimer_forward(timer, timer-base-get_time(), kt); + return

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Benjamin Herrenschmidt wrote: I've given this some more thought, and I'm coming to the conclusion that a pure array-based implementation for holding cached_info (getting rid of the lists) would work well for the vast majority of cases in which OProfile will be used. Yes, it is true that the

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Christoph Hellwig wrote: On Tue, Jan 30, 2007 at 06:53:50PM +1100, Benjamin Herrenschmidt wrote: +/* Defines used for sync_start */ +#define SKIP_GENERIC_SYNC 0 +#define SYNC_START_ERROR -1 +#define DO_GENERIC_SYNC 1 + +typedef struct vma_map +{ + struct vma_map *next; + unsigned

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Maynard Johnson wrote: Arnd Bergmann wrote: On Monday 29 January 2007 20:48, Maynard Johnson wrote: Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard Johnson <[EMAIL PROTECTED]> This patch updates the existing arch/powerpc/oprofile/op_model_cell.c

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Arnd Bergmann wrote: On Monday 29 January 2007 20:48, Maynard Johnson wrote: Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard Johnson <[EMAIL PROTECTED]> This patch updates the existing arch/powerpc/oprofile/op_model_cell.c to add in the SPU profiling capabi

Re: [Cbe-oss-dev] [RFC, PATCH 3/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Arnd Bergmann wrote: On Monday 29 January 2007 20:48, Maynard Johnson wrote: Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_register so that the caller i

Re: [Cbe-oss-dev] [RFC, PATCH 3/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Arnd Bergmann wrote: On Monday 29 January 2007 20:48, Maynard Johnson wrote: Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability of spu_switch_event_register so that the caller is also

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Arnd Bergmann wrote: On Monday 29 January 2007 20:48, Maynard Johnson wrote: Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard Johnson [EMAIL PROTECTED] This patch updates the existing arch/powerpc/oprofile/op_model_cell.c to add in the SPU profiling capabilities

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Maynard Johnson wrote: Arnd Bergmann wrote: On Monday 29 January 2007 20:48, Maynard Johnson wrote: Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard Johnson [EMAIL PROTECTED] This patch updates the existing arch/powerpc/oprofile/op_model_cell.c to add in the SPU

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Christoph Hellwig wrote: On Tue, Jan 30, 2007 at 06:53:50PM +1100, Benjamin Herrenschmidt wrote: +/* Defines used for sync_start */ +#define SKIP_GENERIC_SYNC 0 +#define SYNC_START_ERROR -1 +#define DO_GENERIC_SYNC 1 + +typedef struct vma_map +{ + struct vma_map *next; + unsigned

Re: [Cbe-oss-dev] [RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-30 Thread Maynard Johnson
Benjamin Herrenschmidt wrote: I've given this some more thought, and I'm coming to the conclusion that a pure array-based implementation for holding cached_info (getting rid of the lists) would work well for the vast majority of cases in which OProfile will be used. Yes, it is true that the

[RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard Johnson <[EMAIL PROTECTED]> This patch updates the existing arch/powerpc/oprofile/op_model_cell.c to add in the SPU profiling capabilities. In addition, a 'cell' subdirectory was added to arch/powerpc/oprofile t

[RFC, PATCH 3/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_register so that the caller is also notified of currently active SPU tasks. It also exports spu_switch_event_re

[RFC, PATCH 2/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
profiling PPU cycles and another PPU event. This patch fixes the code to only setup the debug bus to route the performance signals for the non PPU CYCLE events. Signed-off-by: Maynard Johnson <[EMAIL PROTECTED]> Signed-off-by: Carl Love <[EMAIL PROTECTED]> Index: linux-2.6.20-rc1/arch/powe

[RFC, PATCH 1/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
the for_each_cpu loop Signed-off-by: Carl Love <[EMAIL PROTECTED]> Signed-off-by: Maynard Johnson <[EMAIL PROTECTED]> Index: linux-2.6.20-rc1/arch/powerpc/oprofile/op_model_cell.c === --- linux-2.6.20-rc1.orig/arch/powe

[RFC, PATCH 0/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
to apply and build the oprofile SPU support patch, it would be necessary to first apply the above patches. For convenience, I will post all three of the above patches, along with the oprofile SPU support patch. Comments appreciated. Thank you. Maynard Johnson IBM LTC Toolchain - To unsubscribe

[RFC, PATCH 0/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
to apply and build the oprofile SPU support patch, it would be necessary to first apply the above patches. For convenience, I will post all three of the above patches, along with the oprofile SPU support patch. Comments appreciated. Thank you. Maynard Johnson IBM LTC Toolchain - To unsubscribe

[RFC, PATCH 1/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
the for_each_cpu loop Signed-off-by: Carl Love [EMAIL PROTECTED] Signed-off-by: Maynard Johnson [EMAIL PROTECTED] Index: linux-2.6.20-rc1/arch/powerpc/oprofile/op_model_cell.c === --- linux-2.6.20-rc1.orig/arch/powerpc/oprofile

[RFC, PATCH 2/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
profiling PPU cycles and another PPU event. This patch fixes the code to only setup the debug bus to route the performance signals for the non PPU CYCLE events. Signed-off-by: Maynard Johnson [EMAIL PROTECTED] Signed-off-by: Carl Love [EMAIL PROTECTED] Index: linux-2.6.20-rc1/arch/powerpc/oprofile

[RFC, PATCH 3/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability of spu_switch_event_register so that the caller is also notified of currently active SPU tasks. It also exports spu_switch_event_register

[RFC, PATCH 4/4] Add support to OProfile for profiling Cell BE SPUs -- update

2007-01-29 Thread Maynard Johnson
Subject: Add support to OProfile for profiling Cell BE SPUs From: Maynard Johnson [EMAIL PROTECTED] This patch updates the existing arch/powerpc/oprofile/op_model_cell.c to add in the SPU profiling capabilities. In addition, a 'cell' subdirectory was added to arch/powerpc/oprofile to hold

Re: [Cbe-oss-dev] [PATCH] Cell SPU task notification - repost of patch with updates

2007-01-26 Thread Maynard Johnson
can send another patch later if/when the sched_flags changes appears in the kernel version we end up picking for final oprofile-spu development. Comments welcome. Thanks. -Maynard Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EM

Re: [Cbe-oss-dev] [PATCH] Cell SPU task notification - repost of patch with updates

2007-01-26 Thread Maynard Johnson
another patch later if/when the sched_flags changes appears in the kernel version we end up picking for final oprofile-spu development. Comments welcome. Thanks. -Maynard Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch

Re: [Cbe-oss-dev] [PATCH] Cell SPU task notification

2007-01-17 Thread Maynard Johnson
Christoph Hellwig wrote: Index: linux-2.6.19-rc6-arnd1+patches/arch/powerpc/platforms/cell/spufs/sched.c === --- linux-2.6.19-rc6-arnd1+patches.orig/arch/powerpc/platforms/cell/spufs/sched.c 2006-12-04 10:56:04.730698720

Re: [Cbe-oss-dev] [PATCH] Cell SPU task notification

2007-01-17 Thread Maynard Johnson
Christoph Hellwig wrote: Index: linux-2.6.19-rc6-arnd1+patches/arch/powerpc/platforms/cell/spufs/sched.c === --- linux-2.6.19-rc6-arnd1+patches.orig/arch/powerpc/platforms/cell/spufs/sched.c 2006-12-04 10:56:04.730698720

Re: [PATCH] Cell SPU task notification -- updated patch: #1

2007-01-15 Thread Maynard Johnson
switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_register so that the caller is also notified of currently active SPU tasks. It also exports spu_switch_event_re

Re: [PATCH] Cell SPU task notification

2007-01-15 Thread Maynard Johnson
Michael, Thanks for your comments! My responses are below. -Maynard Michael Ellerman wrote: Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_regis

Re: [PATCH] Cell SPU task notification

2007-01-15 Thread Maynard Johnson
Michael, Thanks for your comments! My responses are below. -Maynard Michael Ellerman wrote: Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability of spu_switch_event_register so

Re: [PATCH] Cell SPU task notification -- updated patch: #1

2007-01-15 Thread Maynard Johnson
switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability of spu_switch_event_register so that the caller is also notified of currently active SPU tasks. It also exports spu_switch_event_register and spu_switch_event_unregister

[PATCH] Cell SPU task notification

2007-01-12 Thread Maynard Johnson
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_register so that the caller is also notified of currently active SPU tasks. It also exports spu_switch_event_re

Re: [Cbe-oss-dev] [PATCH -- RFC]Add notification for active Cell SPU tasks -- update #2

2007-01-12 Thread Maynard Johnson
I've reworked this patch to resolve the problem I was seeing. I will post the new patch in a separate, new posting with subject line of "[PATCH] Cell SPU task notification". -Maynard - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [Cbe-oss-dev] [PATCH -- RFC]Add notification for active Cell SPU tasks -- update #2

2007-01-12 Thread Maynard Johnson
I've reworked this patch to resolve the problem I was seeing. I will post the new patch in a separate, new posting with subject line of [PATCH] Cell SPU task notification. -Maynard - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

[PATCH] Cell SPU task notification

2007-01-12 Thread Maynard Johnson
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability of spu_switch_event_register so that the caller is also notified of currently active SPU tasks. It also exports spu_switch_event_register

Re: [Cbe-oss-dev] [PATCH -- RFC]Add notification for active Cell SPU tasks -- update #2

2007-01-08 Thread Maynard Johnson
to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_register to notify the caller of currently active SPU tasks. It also exports spu_switch_event_register and spu_switch_event_unregister. Signed-off-by: M

Re: [Cbe-oss-dev] [PATCH -- RFC]Add notification for active Cell SPU tasks -- update #2

2007-01-08 Thread Maynard Johnson
to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability of spu_switch_event_register to notify the caller of currently active SPU tasks. It also exports spu_switch_event_register and spu_switch_event_unregister. Signed-off-by: Maynard

Re: [PATCH -- RFC] Add support to OProfile for profiling Cell BE SPUs

2007-01-02 Thread Maynard Johnson
Any comments on the attached patch would be appreciated. Thank you. -Maynard --- Maynard Johnson wrote: The attached patch extends OProfile's Cell support (committed into 2.6.20-rc1), adding the capability to do time-based profiling of the SPUs

Re: [PATCH -- RFC] Add support to OProfile for profiling Cell BE SPUs

2007-01-02 Thread Maynard Johnson
Any comments on the attached patch would be appreciated. Thank you. -Maynard --- Maynard Johnson wrote: The attached patch extends OProfile's Cell support (committed into 2.6.20-rc1), adding the capability to do time-based profiling of the SPUs

[PATCH -- RFC] Add support OProfile for profiling Cell BE SPUs

2006-12-15 Thread Maynard Johnson
investigating other options. All comments are welcome. NOTE: The availability of the developers of this patch is limited between now and Jan 2, 2007, so replies to comments may be delayed until then. Thanks. Maynard Johnson IBM LTC Toolchain Subject: Add support to OProfile for profiling Cell

[PATCH -- RFC] Add support OProfile for profiling Cell BE SPUs

2006-12-15 Thread Maynard Johnson
investigating other options. All comments are welcome. NOTE: The availability of the developers of this patch is limited between now and Jan 2, 2007, so replies to comments may be delayed until then. Thanks. Maynard Johnson IBM LTC Toolchain Subject: Add support to OProfile for profiling Cell

Re: [Cbe-oss-dev] [PATCH]Add notification for active Cell SPU tasks

2006-12-12 Thread Maynard Johnson
Luke Browning wrote: [EMAIL PROTECTED] wrote on 08/12/2006 01:04:30 PM: > Arnd Bergmann wrote: > > >On Wednesday 06 December 2006 23:04, Maynard Johnson wrote: > > > >No code should ever need to look at other SPUs when performing an > >operation on a given

Re: [Cbe-oss-dev] [PATCH]Add notification for active Cell SPU tasks

2006-12-12 Thread Maynard Johnson
Luke Browning wrote: [EMAIL PROTECTED] wrote on 08/12/2006 01:04:30 PM: Arnd Bergmann wrote: On Wednesday 06 December 2006 23:04, Maynard Johnson wrote: No code should ever need to look at other SPUs when performing an operation on a given SPU, so we don't need to hold a global

[Patch] Add necessary #includes to asm-powerpc/spu.h

2006-12-08 Thread Maynard Johnson
Subject: Add necessary #includes to asm-powerpc/spu.h. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds a couple of #includes to asm-powerpc/spu.h to prevent compilation warnings that can occur when spu.h is included from a source file where fs.h and notifier.h have not been in

Re: [PATCH]Add notification for active Cell SPU tasks -- updated patch

2006-12-08 Thread Maynard Johnson
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_register to notify the caller of currently active SPU tasks. It also exports spu_switch_event_re

Re: [Cbe-oss-dev] [PATCH]Add notification for active Cell SPU tasks

2006-12-08 Thread Maynard Johnson
Arnd Bergmann wrote: On Wednesday 06 December 2006 23:04, Maynard Johnson wrote: text(struct spu *spu, struct spu_context *ctx) Is this really the right strategy? First, it serializes all spu context switching at the node level. Second, it performs 17

Re: [PATCH]Add notification for active Cell SPU tasks -- updated patch

2006-12-08 Thread Maynard Johnson
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability of spu_switch_event_register to notify the caller of currently active SPU tasks. It also exports spu_switch_event_register

[Patch] Add necessary #includes to asm-powerpc/spu.h

2006-12-08 Thread Maynard Johnson
Subject: Add necessary #includes to asm-powerpc/spu.h. From: Maynard Johnson [EMAIL PROTECTED] This patch adds a couple of #includes to asm-powerpc/spu.h to prevent compilation warnings that can occur when spu.h is included from a source file where fs.h and notifier.h have not been included

Re: [PATCH]Add notification for active Cell SPU tasks

2006-12-06 Thread Maynard Johnson
Luke Browning wrote: [EMAIL PROTECTED] wrote on 12/04/2006 10:26:57: > [EMAIL PROTECTED] wrote on > 01/12/2006 06:01:15 PM: > > > > > Subject: Enable SPU switch notification to detect currently activeSPU tasks. > > > > From: Maynard Johnson <[EMAIL

Re: [PATCH]Add notification for active Cell SPU tasks

2006-12-06 Thread Maynard Johnson
Luke Browning wrote: [EMAIL PROTECTED] wrote on 12/04/2006 10:26:57: [EMAIL PROTECTED] wrote on 01/12/2006 06:01:15 PM: Subject: Enable SPU switch notification to detect currently activeSPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability

Re: [Cbe-oss-dev] [PATCH]Add notification for active Cell SPU tasks

2006-12-04 Thread Maynard Johnson
Arnd Bergmann wrote: On Friday 01 December 2006 21:01, Maynard Johnson wrote: +static void notify_spus_active(void) +{ + int node; + for (node = 0; node < MAX_NUMNODES; node++) { + struct spu *spu; + mutex_lock(_prio->active_mute

Re: [Cbe-oss-dev] [PATCH]Add notification for active Cell SPU tasks

2006-12-04 Thread Maynard Johnson
Arnd Bergmann wrote: On Friday 01 December 2006 21:01, Maynard Johnson wrote: +static void notify_spus_active(void) +{ + int node; + for (node = 0; node MAX_NUMNODES; node++) { + struct spu *spu; + mutex_lock(spu_prio-active_mutex[node

[PATCH]Add notification for active Cell SPU tasks

2006-12-01 Thread Maynard Johnson
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_register to notify the caller of currently active SPU tasks. It also exports spu_switch_event_re

[PATCH]Add notification for active Cell SPU tasks

2006-12-01 Thread Maynard Johnson
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED] This patch adds to the capability of spu_switch_event_register to notify the caller of currently active SPU tasks. It also exports spu_switch_event_register

[PATCH 1/1]OProfile for Cell cleanup patch

2006-11-27 Thread Maynard Johnson
the for_each_cpu loop Signed-off-by: Carl Love <[EMAIL PROTECTED]> Signed-off-by: Maynard Johnson <[EMAIL PROTECTED]> Index: linux-2.6.19-rc6-arnd1+patches/arch/powerpc/oprofile/op_model_cell.c === --- linux-2.6.19-rc6-arnd1+patch

[PATCH 0/1]OProfile for Cell cleanup patch

2006-11-27 Thread Maynard Johnson
I will be posting a Cell-OProfile cleanup patch against Arnd Bergmann's 2.6.19-rc6-arnd1 tree (see http://kernel.org/pub/linux/kernel/people/arnd/patches/2.6.19-rc6-arnd1/). Thanks in advance for any comments provided. -Maynard - To unsubscribe from this list: send the line "unsubscribe

[PATCH 1/1]OProfile for Cell cleanup patch

2006-11-27 Thread Maynard Johnson
the for_each_cpu loop Signed-off-by: Carl Love [EMAIL PROTECTED] Signed-off-by: Maynard Johnson [EMAIL PROTECTED] Index: linux-2.6.19-rc6-arnd1+patches/arch/powerpc/oprofile/op_model_cell.c === --- linux-2.6.19-rc6-arnd1+patches.orig/arch

[PATCH 0/1]OProfile for Cell cleanup patch

2006-11-27 Thread Maynard Johnson
I will be posting a Cell-OProfile cleanup patch against Arnd Bergmann's 2.6.19-rc6-arnd1 tree (see http://kernel.org/pub/linux/kernel/people/arnd/patches/2.6.19-rc6-arnd1/). Thanks in advance for any comments provided. -Maynard - To unsubscribe from this list: send the line unsubscribe

Re: [RFC, Patch 1/1] OProfile for Cell: Initial profiling support -- updated patch

2006-11-16 Thread Maynard Johnson
firmware RTAS call to reset the debug bus to the non pass thru state when the counters are not in use. Signed-Off-By: Carl Love <[EMAIL PROTECTED]> Signed-Off-By: Maynard Johnson <[EMAIL PROTECTED]> Index: linux-2.6.18/arch/powerpc/configs/ce

Re: [RFC, Patch 0/1] OProfile for Cell: Initial profiling support -- new patch

2006-11-16 Thread Maynard Johnson
opping our timer for the virtual counter. Thanks. -Maynard Maynard Johnson wrote: Hello, I will be posting a patch that updates the OProfile kernel driver to enable it for the Cell Broadband Engine processor. The patch is based on Arnd Bergmann's arnd6 patchset for 2.6.18 (http://kernel.org

Re: [RFC, Patch 0/1] OProfile for Cell: Initial profiling support -- new patch

2006-11-16 Thread Maynard Johnson
timer for the virtual counter. Thanks. -Maynard Maynard Johnson wrote: Hello, I will be posting a patch that updates the OProfile kernel driver to enable it for the Cell Broadband Engine processor. The patch is based on Arnd Bergmann's arnd6 patchset for 2.6.18 (http://kernel.org/pub/linux

Re: [RFC, Patch 1/1] OProfile for Cell: Initial profiling support -- updated patch

2006-11-16 Thread Maynard Johnson
firmware RTAS call to reset the debug bus to the non pass thru state when the counters are not in use. Signed-Off-By: Carl Love [EMAIL PROTECTED] Signed-Off-By: Maynard Johnson [EMAIL PROTECTED] Index: linux-2.6.18/arch/powerpc/configs/cell_defconfig