PATCH[3/3 RFC] PERF, Add remapping support for jit'ed code to perf

2015-02-06 Thread Carl Love
This is a repost to LKML of the patches I sent to the linux-perf-users mailing list. I am reposting it to lkml per Arnaldo Carvalho's request. The following is the jit library for the callbacks to capture the jit code information. This version is just for test purposes. It causes a remapping

PATCH[1/3 RFC] PERF, Add remapping support for jit'ed code to perf

2015-02-06 Thread Carl Love
. The following patches are dependent on this patch. Carl Love --- This patch adds a PR_TASK_PERF_UEVENT prctl call which can be used by any process to inject custom data into perf data stream as a new PERF_RECORD_UEVENT record

PATCH[2/3 RFC] PERF, Add remapping support for jit'ed code to perf

2015-02-06 Thread Carl Love
development. The goal is the jit library will only call for a remap when it is really needed. Signed-off-by: Carl Love --- tools/perf/builtin-record.c | 2 ++ tools/perf/builtin-report.c | 1 + tools/perf/builtin-script.c | 5 +++ tools/perf/util/event.c | 81

PATCH[0/3 RFC] PERF, Add remapping support for jit'ed code to perf

2015-02-06 Thread Carl Love
in this patch set are: 1/3 Patch by Pawel Moll 2/3 Perf remap patch by Carl Love 3/3 jvmti library source code for testing the perf patch Carl Love -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

PATCH[3/3 RFC] PERF, Add remapping support for jit'ed code to perf

2015-02-06 Thread Carl Love
This is a repost to LKML of the patches I sent to the linux-perf-users mailing list. I am reposting it to lkml per Arnaldo Carvalho's request. The following is the jit library for the callbacks to capture the jit code information. This version is just for test purposes. It causes a remapping

PATCH[2/3 RFC] PERF, Add remapping support for jit'ed code to perf

2015-02-06 Thread Carl Love
development. The goal is the jit library will only call for a remap when it is really needed. Signed-off-by: Carl Love c...@us.ibm.com --- tools/perf/builtin-record.c | 2 ++ tools/perf/builtin-report.c | 1 + tools/perf/builtin-script.c | 5 +++ tools/perf/util/event.c | 81

PATCH[1/3 RFC] PERF, Add remapping support for jit'ed code to perf

2015-02-06 Thread Carl Love
. The following patches are dependent on this patch. Carl Love --- This patch adds a PR_TASK_PERF_UEVENT prctl call which can be used by any process to inject custom data into perf data stream as a new PERF_RECORD_UEVENT record

PATCH[0/3 RFC] PERF, Add remapping support for jit'ed code to perf

2015-02-06 Thread Carl Love
in this patch set are: 1/3 Patch by Pawel Moll 2/3 Perf remap patch by Carl Love 3/3 jvmti library source code for testing the perf patch Carl Love -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

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

2007-02-21 Thread Carl Love
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]>, Carl Love <[EMAIL PROTECTED]> This repost contains the change to move the notify_active flag from ctx->spu to ctx as discussed and agreed to by Arnd on 1/30/

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

2007-02-21 Thread Carl Love
Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED], Carl Love [EMAIL PROTECTED] This repost contains the change to move the notify_active flag from ctx-spu to ctx as discussed and agreed to by Arnd on 1/30/07. This patch

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

2007-02-15 Thread Carl Love
On Thu, 2007-02-15 at 15:37 +0100, 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/

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

2007-02-15 Thread Carl Love
On Thu, 2007-02-15 at 15:37 +0100, 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

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

2007-02-12 Thread Carl Love
On Sun, 2007-02-11 at 16:46 -0600, Milton Miller wrote: [cut] > > As far as I understand, you are providing access to a completely new > hardware that is related to the PMU hardware by the fact that it > collects a program counter. It doesn't use the PMU counters nor the > PMU event

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

2007-02-12 Thread Carl Love
On Sun, 2007-02-11 at 16:46 -0600, Milton Miller wrote: [cut] As far as I understand, you are providing access to a completely new hardware that is related to the PMU hardware by the fact that it collects a program counter. It doesn't use the PMU counters nor the PMU event selection.

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

2007-02-09 Thread Carl Love
On Thu, 2007-02-08 at 20:46 -0600, Milton Miller wrote: > On Feb 8, 2007, at 4:51 PM, Carl Love wrote: > > > On Thu, 2007-02-08 at 18:21 +0100, Arnd Bergmann wrote: > >> On Thursday 08 February 2007 15:18, Milton Miller wrote: > >> > >>> 1) sample rate

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

2007-02-09 Thread Carl Love
On Thu, 2007-02-08 at 20:46 -0600, Milton Miller wrote: On Feb 8, 2007, at 4:51 PM, Carl Love wrote: On Thu, 2007-02-08 at 18:21 +0100, Arnd Bergmann wrote: On Thursday 08 February 2007 15:18, Milton Miller wrote: 1) sample rate setup In the current patch, the user specifies

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

2007-02-08 Thread Carl Love
d only one of the entries in the table will ever be used. I think if we found the LFSR that was with in 2^10 of the desired value that would be good enough. It would be within 1% of the minimum N the user can specify. That would require a table with 2^14 entries. That seems unreasonably large. Anyway, the user controls how often sampling is done by setting N. > Carl Love > [cut] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

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

2007-02-08 Thread Carl Love
the user can specify. That would require a table with 2^14 entries. That seems unreasonably large. Anyway, the user controls how often sampling is done by setting N. Carl Love [cut] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

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

2007-02-06 Thread Carl Love
is 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 Cell-specific SPU profiling code. Signed-off-by: Carl Love <[EMAIL PROTECTED]> Signed-off-by: Maynard Joh

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

2007-02-06 Thread Carl Love
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 Cell-specific SPU profiling code. Signed-off-by: Carl Love [EMAIL PROTECTED] Signed-off-by: Maynard Johnson [EMAIL PROTECTED] Index

[RFC,PATCH] CELL PPU Oprofile SPU profiling updated patch

2007-02-05 Thread Carl Love
ectory was added to arch/powerpc/oprofile to hold Cell-specific SPU profiling code. Signed-off-by: Carl Love <[EMAIL PROTECTED]> Signed-off-by: Maynard Johnson <[EMAIL PROTECTED]> Index: linux-2.6.20-rc1/arch/powerpc/configs/cell_defconfig =

[RFC,PATCH] CELL PPU Oprofile SPU profiling updated patch

2007-02-05 Thread Carl Love
/powerpc/oprofile to hold Cell-specific SPU profiling code. Signed-off-by: Carl Love [EMAIL PROTECTED] Signed-off-by: Maynard Johnson [EMAIL PROTECTED] Index: linux-2.6.20-rc1/arch/powerpc/configs/cell_defconfig === --- linux-2.6.20

[PATCH] CELL PPU Oprofile cleanup patch (updated patch)

2007-02-02 Thread Carl Love
efine name found by Michael Neuling From: Maynard Johnson <[EMAIL PROTECTED]>, Carl Love <[EMAIL PROTECTED]> This is a clean up patch that includes the following changes: -Some comments were added to clarify the code based on feedback from the community.

[PATCH] CELL PPU Oprofile cleanup patch (updated patch)

2007-02-02 Thread Carl Love
found by Michael Neuling From: Maynard Johnson [EMAIL PROTECTED], Carl Love [EMAIL PROTECTED] This is a clean up patch that includes the following changes: -Some comments were added to clarify the code based on feedback from the community. -The write_pm_cntrl

Re: [PATCH] CELL PPU Oprofile cleanup patch

2007-02-01 Thread Carl Love
Mikey: Yes, that is an error. Thanks for the catch. Carl Love On Fri, 2007-02-02 at 09:52 +1100, Michael Neuling wrote: > Carl, > > > +#define NUM_TRACE_BUS_WORDS 4 > > +#define NUM_INPUT_BUS_WORDS 2 > > > > > - for (i = 0; i

[PATCH] CELL PPU Oprofile cleanup patch

2007-02-01 Thread Carl Love
element from a global variable. The argument was removed so the functions now just operate on the global directly. -The set_pm_event() function call in the cell_virtual_cntr() routine was moved to a for-loop before the for_each_cpu loop Signed-off-by: Carl Love <[EMA

[PATCH] CELL PPU Oprofile cleanup patch

2007-02-01 Thread Carl Love
This is the update to the patch previously posted by Maynard Johnson as PATCH 1/4. Add support to OProfile for profiling CELL. The patch was updated to not remove the MACROs per the discussion with Christoph Hellwig and Benjamin Herrenschmidt. From: Maynard Johnson [EMAIL PROTECTED], Carl Love

Re: [PATCH] CELL PPU Oprofile cleanup patch

2007-02-01 Thread Carl Love
Mikey: Yes, that is an error. Thanks for the catch. Carl Love On Fri, 2007-02-02 at 09:52 +1100, Michael Neuling wrote: Carl, +#define NUM_TRACE_BUS_WORDS 4 +#define NUM_INPUT_BUS_WORDS 2 snip - for (i = 0; i 4; i++) + for (i = 0; i NUM_INPUT_BUS_WORDS; i

[PATCH] CELL SPU task notification

2007-01-31 Thread Carl Love
's for SPU scheduling. Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson <[EMAIL PROTECTED]>, Carl Love <[EMAIL PROTECTED]> This patch adds to the capability of spu_switch_event_register so that the caller is also notified of currently acti

[PATCH] CELL SPU task notification

2007-01-31 Thread Carl Love
. Subject: Enable SPU switch notification to detect currently active SPU tasks. From: Maynard Johnson [EMAIL PROTECTED], Carl Love [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

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

2007-01-30 Thread Carl Love
Arnd: Well most of the patch is simply cleaning up the pm_rtas_activate_signals() routine. I would be think "pm_rtas_activat_signals routine cleanup" would be good. Carl Love On Tue, 2007-01-30 at 05:08 +0100, Arnd Bergmann wrote: > On Monday 29 January 2007 2

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

2007-01-30 Thread Carl Love
On Tue, 2007-01-30 at 15:41 -0600, Maynard Johnson wrote: [snip > [snip] > >>+ // process the collected SPU PC for each node > >>+ for_each_online_cpu(cpu) { > >>+ if (cbe_get_hw_thread_id(cpu)) > >>+ continue; > >>+ > >>+ node =

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

2007-01-30 Thread Carl Love
Christoph: In our earlier work on the PPU profiling patch, Benjamin Herrenschmidt said that we should remove macros that are only used once and just put the actual code in. That is why the macros were removed. Carl Love On Tue, 2007-01-30 at 11:39 +0100, Christoph Hellwig wrote

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

2007-01-30 Thread Carl Love
Christoph: In our earlier work on the PPU profiling patch, Benjamin Herrenschmidt said that we should remove macros that are only used once and just put the actual code in. That is why the macros were removed. Carl Love On Tue, 2007-01-30 at 11:39 +0100, Christoph Hellwig wrote

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

2007-01-30 Thread Carl Love
On Tue, 2007-01-30 at 15:41 -0600, Maynard Johnson wrote: [snip [snip] + // process the collected SPU PC for each node + for_each_online_cpu(cpu) { + if (cbe_get_hw_thread_id(cpu)) + continue; + + node = cbe_cpu_to_node(cpu); +

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

2007-01-30 Thread Carl Love
Arnd: Well most of the patch is simply cleaning up the pm_rtas_activate_signals() routine. I would be think pm_rtas_activat_signals routine cleanup would be good. Carl Love On Tue, 2007-01-30 at 05:08 +0100, Arnd Bergmann wrote: On Monday 29 January 2007 20:47, Maynard