Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42277
b: refs/heads/master
c: 18f2190
h: refs/heads/master
i:
  42275: ef36f36
v: v3
  • Loading branch information
Maynard Johnson authored and Paul Mackerras committed Dec 4, 2006
1 parent 2cb5f93 commit 00649f5
Show file tree
Hide file tree
Showing 11 changed files with 799 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0443bbd3d8496f9c2bc3e8c9d1833c6638722743
refs/heads/master: 18f2190d796198fbb5d4bc4c87511acf3ced7d47
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/configs/cell_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,8 @@ CONFIG_PLIST=y
#
# Instrumentation Support
#
# CONFIG_PROFILING is not set
CONFIG_PROFILING=y
CONFIG_OPROFILE=y
# CONFIG_KPROBES is not set

#
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/powerpc/kernel/cputable.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ static struct cpu_spec cpu_specs[] = {
PPC_FEATURE_SMT,
.icache_bsize = 128,
.dcache_bsize = 128,
.num_pmcs = 4,
.oprofile_cpu_type = "ppc64/cell-be",
.oprofile_type = PPC_OPROFILE_CELL,
.platform = "ppc-cell-be",
},
{ /* PA Semi PA6T */
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/powerpc/oprofile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ DRIVER_OBJS := $(addprefix ../../../drivers/oprofile/, \
timer_int.o )

oprofile-y := $(DRIVER_OBJS) common.o backtrace.o
oprofile-$(CONFIG_PPC_CELL) += op_model_cell.o
oprofile-$(CONFIG_PPC64) += op_model_rs64.o op_model_power4.o
oprofile-$(CONFIG_FSL_BOOKE) += op_model_fsl_booke.o
oprofile-$(CONFIG_6xx) += op_model_7450.o
15 changes: 13 additions & 2 deletions trunk/arch/powerpc/oprofile/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ static void op_powerpc_cpu_start(void *dummy)

static int op_powerpc_start(void)
{
on_each_cpu(op_powerpc_cpu_start, NULL, 0, 1);
if (model->global_start)
model->global_start(ctr);
if (model->start)
on_each_cpu(op_powerpc_cpu_start, NULL, 0, 1);
return 0;
}

Expand All @@ -80,7 +83,10 @@ static inline void op_powerpc_cpu_stop(void *dummy)

static void op_powerpc_stop(void)
{
on_each_cpu(op_powerpc_cpu_stop, NULL, 0, 1);
if (model->stop)
on_each_cpu(op_powerpc_cpu_stop, NULL, 0, 1);
if (model->global_stop)
model->global_stop();
}

static int op_powerpc_create_files(struct super_block *sb, struct dentry *root)
Expand Down Expand Up @@ -141,6 +147,11 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)

switch (cur_cpu_spec->oprofile_type) {
#ifdef CONFIG_PPC64
#ifdef CONFIG_PPC_CELL
case PPC_OPROFILE_CELL:
model = &op_model_cell;
break;
#endif
case PPC_OPROFILE_RS64:
model = &op_model_rs64;
break;
Expand Down
Loading

0 comments on commit 00649f5

Please sign in to comment.