Example #1
0
int __init oprofile_arch_init(struct oprofile_operations *ops)
{
	/* provide backtrace support also in timer mode: */
	ops->backtrace		= arm_backtrace;

	return oprofile_perf_init(ops);
}
Example #2
0
int __init oprofile_arch_init(struct oprofile_operations *ops)
{
	/*
	 * A failure here, forces oprofile core to switch to Timer based PC
	 * sampling, which will happen if say perf is not enabled/available
	 */
	return oprofile_perf_init(ops);
}
Example #3
0
int __init oprofile_arch_init(struct oprofile_operations *ops)
{
	ops->backtrace = sh_backtrace;

	if (perf_num_counters() == 0)
		return -ENODEV;

	sh_pmu_op_name = kasprintf(GFP_KERNEL, "%s/%s",
				   UTS_MACHINE, perf_pmu_name());
	if (unlikely(!sh_pmu_op_name))
		return -ENOMEM;

	return oprofile_perf_init(ops);
}
Example #4
0
int __init oprofile_arch_init(struct oprofile_operations *ops)
{
	ops->backtrace		= arm_backtrace;

	return oprofile_perf_init(ops);
}