Hello,

Patched applied.
Thanks for your contributions.

On Mon, Oct 15, 2007 at 05:16:50PM +0900, Takashi02 Yamamoto wrote:
> Hi 
> 
> This patch is the pfmlib_cell_input_param_t's control/interval parameter 
> support for pfmon.
> It relates to my previous libpfm patch.
> Please apply it.
> 
> # When you apply this patch, please use attached file. 
> 
> Thanks, 
> Takashi Yamamoto. 
> 
> ------------------------------------------------
> This patch adds setting the Cell control/interval parameters of 
> pfmlib_cell_input_param_t.
> 
> Signed-off-by: Takashi Yamamoto <Takashi02_Yamamoto at hq.scei.sony.co.jp>
> ---
>  pfmon/pfmon_cell.c |   13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> --- a/pfmon/pfmon_cell.c
> +++ b/pfmon/pfmon_cell.c
> @@ -26,6 +26,17 @@
>  #include <pfmlib_cell.h>
>  #include "pfmon.h"
>  
> +/* PM_CONTROL REG macros */
> +#define CELL_DEFAULT_PM_CONTROL_REG_VALUE     0x80000000
> +#define CELL_PM_CONTROL_STOP_AT_MAX           0x40000000
> +#define CELL_PM_CONTROL_COUNT_TRACE           0x10000000
> +#define CELL_PM_CONTROL_PROBLEM_MODE          0x00080000
> +#define CELL_PM_CONTROL_EXTERNAL_TRACE_ENABLE 0x00008000
> +#define CELL_PM_CONTROL_PPE_ADDR_TRACE_ENABLE 0x00006000
> +#define CELL_PM_CONTROL_PPE_BOOKMARK_ENABLE   0x00001800
> +#define CELL_PM_CONTROL_SPE_ADDR_TRACE_ENABLE 0x00000600
> +#define CELL_PM_CONTROL_SPE_BOOKMARK_ENABLE   0x00000180
> +
>  static pfmon_cell_options_t pfmon_cell_opt;
>  
>  typedef struct {
> @@ -111,6 +122,8 @@ static int pfmon_cell_setup(pfmon_event_
>         DPRINT(("%s set:%p\n", __FUNCTION__, set));
>  
>         p = set->mod_inp;
> +       p->control = CELL_DEFAULT_PM_CONTROL_REG_VALUE;
> +       p->interval = 0;
>         p->triggers = 0;
>         for (i = 0; i < PMU_CELL_NUM_COUNTERS; i++) {
>                 p->pfp_cell_counters[i].pmX_control_num = 0;
> ------------------------------------------------
> 
> 
> 


> _______________________________________________
> perfmon mailing list
> [email protected]
> http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

-- 

-Stephane
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to